Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #759683

    justincourage
    Participant

    How can I edit my LearnDash lesson and course pages with Cornerstone?

    It doesn’t give me the option. Only Visual and Text editors are available. I even tried designing a lesson on a cornerstone page and copy/paste the shortcodes into Text of lesson editor, but it did not work.

    Thank you.

    #760233

    Christopher
    Moderator

    Hi there,

    Thanks for writing in !
    Only posts, pages, products and portfolio items are editable with Cornerstone.
    It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thanks.

    #895863

    fabiofava
    Participant

    Oh yes you can! On your Admin Dashboard, go to Cornerstone -> Settings, and select the types of “Allowed Post Types”. You can build Courses, Lessons, Topics and Quizzes pages with Cornerstone, just have to enable Cornerstone to these post types on this page. You may test to check if everything works, but as far as I know, it works.

    #896912

    Rad
    Moderator

    Thanks for helping Fabio! That’s correct, any valid post type should appear there and should be editable with the cornerstone. Though by default, it’s only applicable for page, post, and portfolio. Cheers!

    #1107216

    Kenrick C
    Participant

    This thread saved my project! I do however have a followup question. In order to truly be able to use Cornerstone with LearnDash, we need to be able to select different templates for those custom posts (i.e. Blank Header, Footer).

    I have this set of functions that allow me to add a template selector metabox to my posts: http://pastebin.com/0WdPAWM1. But when I tried to modify it to include the array for LearnDash custom post types (http://pastebin.com/755bEtJc) I could only get the box to show up, but the drop-down menu didn’t populate (it only shows the templates on the normal “post” editor).

    I know that it is just my ignorance of PHP keeping me back, but I tried to replace every instance of ‘post’ in the original set of functions to $types which is my array variable and that didn’t work either.

    These are the post types I need the selector to be visible for:

    sfwd-courses
    sfwd-lessons
    sfwd-quiz
    sfwd-topic

    #1107860

    Rad
    Moderator

    Hi Kenrick,

    Page templates are only available for built-in page type. It’s not possible with custom post types and it’s WordPress’s restriction.

    Thanks!