[Resolved] Was anyone successful with getting GeneratePress and LifterLMS to work?

Home Forums Support [Resolved] Was anyone successful with getting GeneratePress and LifterLMS to work?

Home Forums Support Was anyone successful with getting GeneratePress and LifterLMS to work?

Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • #328505
    v4ncouver

    Update!
    A few weeks ago, WP Courseware run a promotion during which they offered their plugin at a 30% discount.
    I bought it and have uninstalled LifterLMS.

    LifterLMS is a very good plugin but for my needs, WP Courseware is more suitable because it just works with the GeneratePress theme. No time wasted with tweaking the theme.

    I am especially happy with the pingdom results which confirm how well GP and WP Courseware get along.
    https://tools.pingdom.com/#!/VSAGn/https://www.littlecomposers.com/

    I never had a WordPress theme which achieved such high ratings.

    Finally, all is well! đŸ™‚

    #328616
    Tom
    Lead Developer
    Lead Developer

    Great news! Thanks for reporting back đŸ™‚

    #447648
    André

    We have WP Courseware working for us with GP (works out the box) – only part missing is “Sections”.

    The option just isn’t here. I enabled Sensei (by WooCommerce) just to check if it was just an issue with WP Courseware (we have both), and that too doesn’t displace the “Sections” option.

    Tom – any idea why sections is not displaying for the WP Courseware / Sensei custom post types?

    André

    #448199
    Tom
    Lead Developer
    Lead Developer
    #448307
    André

    Tom, I added the coded snippet to the Snippets plugin and enabled it – but Sections still aren’t showing on the WP Courseware and Sensei lesson pages.

    Or do I do something else with the code?

    #448869
    Tom
    Lead Developer
    Lead Developer

    You need to adjust the post types to work with the post types you need to support.

    So when you edit a post in one of those post types, you’ll see the post type ID in the URL. That’s the ID you would add to the array.

    #448968
    André

    Tom, okay, gotcha .. I think – so I would need to add post IDs *individually* for each new custom post (and of course all previous ones)?

    #448972
    André

    … if so, do I add to the array like this, for example (which doesn’t seem to be working):

    add_filter( 'generate_sections_post_types', 'tu_add_section_post_types' );
    function tu_add_section_post_types() {
          return array( 'page', 'post', 'download', 5346, 5343 );
    }
    #449124
    Tom
    Lead Developer
    Lead Developer

    Not post IDs, but the slug of the post type:

    add_filter( 'generate_sections_post_types', 'tu_add_section_post_types' );
    function tu_add_section_post_types() {
          return array( 'page', 'post', 'download', 'another-post-type-name', 'one-more' );
    }
    #449137
    André

    I must be still doing something wrong or not understanding (d’oh).

    I have (tried) this:

    add_filter( 'generate_sections_post_types', 'tu_add_section_post_types' );
    function tu_add_section_post_types() {
          return array( 'page', 'post', 'download', 'soi-preselling-part-4' );
    }

    … but that doesn’t work.

    Here’s the permalink and URL of a WP Courseware unit (lesson) page:

    https://tinylittlebusinesses.com/wp-admin/post.php?post=966&action=edit
    Permalink: https://tinylittlebusinesses.com/module-3/soi-preselling-part-4/

    #449479
    Tom
    Lead Developer
    Lead Developer

    That’s still the post ID, not the custom post type name.

    When you go into view all of your posts in the custom post type, what’s the URL?

    #449794
    André

    Tom, when I click through to the WP Courseware lessons (unites), this is the URL:

    https://tinylittlebusinesses.com/wp-admin/edit.php?post_type=course_unit

    Does that help?

    #449799
    Tom
    Lead Developer
    Lead Developer

    So you would add course_unit into the array đŸ™‚

    #451320
    André

    Tom, worked perfectly! .. thx a ton đŸ™‚

    #451487
    Tom
    Lead Developer
    Lead Developer

    You’re welcome đŸ™‚

Viewing 15 posts - 16 through 30 (of 30 total)
  • You must be logged in to reply to this topic.