Site logo

Archived topic

Was anyone successful with getting GeneratePress and LifterLMS to work?

29 replies · Started by v4ncouver on April 29, 2017

Viewing posts 16–30 of 30

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! :)

Great news! Thanks for reporting back :)

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é

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?

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.

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)?

... 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 );
}

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' );
}

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/

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?

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?

So you would add course_unit into the array :)

Tom, worked perfectly! .. thx a ton :-)

You're welcome :)

This archived topic is closed to new replies.