Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1300585
    Jason
    Participant

    Hi Guys/Gals

    I bought and activated the Cornerstone plugin on my site. The theme i am using has a custom post type not searchable via the cornerstone settings to be able to add it as an option of something that cornerstone can edit. I have a LMS platform and want to edit the units of the courses I am creating using cornerstone. The theme allows Visual Composer to be used but cornerstone is not showing up as a editor option when I click (in my theme) LMS > SETTINGS > UNIT > ADD NEW UNIT

    My question is HOW can I make cornerstone an editor option to be able to edit my units?

    Not sure if this is helpful but I have pasted what the WP “new unit” controls look like. See screenshot here:
    Cornerstone settings – http://prntscr.com/dm7i9v
    LMS unit backend editor – http://prntscr.com/dm7k2h

    PLEASE can you let me know what solution I could try. this is SUPER important for me. πŸ™‚

    Thanks,

    Jason

    #1300634
    Christian
    Moderator

    Hey Jason,

    Your LMS’ post type might not be searchable. Please contact the developer if the post type could be queried with this

    $post_types = get_post_types( array(
    	'public'   => true,
    	'show_ui' => true,
    	'exclude_from_search' => false
    ) , 'objects' );

    Since this involves third party plugin integration, please note that we could not guarantee or promise an immediate or future fix.

    Thanks.

    #1301561
    Jason
    Participant

    Hi Christian

    Thank you, I contacted the theme author of the theme I am using (WPLMS) they gave me a tip which I tried and it worked, with some tweaks. So I am going to paste below here what I did in the event that it is helpful to anyone else that bought the Cornerstone plugin and wants to use it with the WPLMS theme, using Cornerstone to edit UNITS. So here goes…

    Here is what they said to me:

    This query will not work with wplms because we have set the "exclude_from_search => true".
    
    As a quick fix you can change it to false for units from vibe-customtypes plugin->custom-post-types.php file, refer: http://prntscr.com/dmin1v
    
    -----------
    
    But it will make units searchable in your website, now by default units are not searchable in the website because single unit is not directly accessible to the students. If you make this change then the units will be searchable and whenever the students will click on the unit link they will get an error to contact administrator (as the units are not accessible for them).

    For anyone else who has this issue and wants to use cornerstone with WPLMS here is the process I followed to get this working for units, and still NOT HAVE THEM searchable by the students.

    What you need to do:

    1. Installed Cornerstone.
    2. Made the change mentioned by Vibethemes above ( http://prntscr.com/dmin1v )
    3. Navigate back to CORNERSTONE>SETTINGS>ALLOWED POST TYPES
    Added ‘units’ (which is now discover-able) and clicked update inside of the Cornerstone settings area.
    4. Then changed the custom-post-types.php file BACK to ‘true’ (remember we changed it to ‘false’) and via ftp uploaded the custom-post-types.php in its original condition to its original location.
    5. You are still able to now edit units (existing and new ones) with cornerstone – even though you will now not see ‘units’ in the cornerstone settings.

    As a side note if you want to DISABLE editing of units with cornerstone after you do this, you will have to repeat the above steps and when inside of cornerstone then DELETE the ‘units’ from custom post types, update Cornerstone and then put back the custom-post-types.php in its original condition.

    Why this works:
    When you make this change you are essentially making units ‘discover-able’ by the Cornerstone plugin, so that you can add the ‘units’ custom post type, so after saving this inside of Cornerstone, this setting has been saved INSIDE of cornerstone, so changing back the custom-post-types.php to its original state makes it look like the units are not being able to be edited by cornerstone becasue you cant see this post type inside of Cornerstone setting BUT they are there. So essentially its a WIN WIN! Units are still NOT searchable on your installation of WPLMS but you can edit them with Cornerstone!

    This is the best news of my morning today! Thank you H.K for the above insights, and I hope whoever reads this in the future finds it useful.

    Take care,

    Jason

    #1301624
    Christian
    Moderator

    You’re welcome and thanks for sharing, Jason.

    #1304024
    fabiofava
    Participant

    Hello Christian,

    I would like to do that for LearnDash LMS that I use. I can’t figure out how to make them available for Cornerstone to edit (courses, lessons, topics, quizzes, so on). Please let me know if you can help me on that.

    Thanks and best regards!

    #1304033
    Thai
    Moderator

    Hi @fabiofava,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1304035
    fabiofava
    Participant

    Thank you Thai,

    I have this Topic by myself, but no results until now:

    https://community.theme.co/forums/topic/learndash-cpts-not-showing-on-cornerstone-settings/

    As I understand, is all about a few lines of code to allow those post types to appear on Cornerstone Settings. These LearnDash CPT’s were editable until some point in the past (few weeks ago), and I don’t know if it was a change on LearnDash’s side, or on Cornerstone side.

    I’ve been trying even to put LearnDash Developer in contact with Themeco people: I’m sure is a matters of hours (if not, minutes) for you to have this working…

    Can’t understand why it didn’t yet happened. Thanks!

    #1304232
    Rad
    Moderator

    Hi there,

    Let’s discuss it on your topic. But you can link your topic back on this thread.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1300585 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>