- This topic has 29 replies, 7 voices, and was last updated 6 years, 4 months ago by Tom.
-
AuthorPosts
-
June 4, 2017 at 1:33 pm #328505v4ncouver
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! đŸ™‚
June 4, 2017 at 10:10 pm #328616TomLead DeveloperLead DeveloperGreat news! Thanks for reporting back đŸ™‚
December 12, 2017 at 4:50 am #447648AndrĂ©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é
December 12, 2017 at 5:08 pm #448199TomLead DeveloperLead DeveloperDecember 12, 2017 at 11:14 pm #448307AndrĂ©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?
December 13, 2017 at 12:31 pm #448869TomLead DeveloperLead DeveloperYou 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.
December 13, 2017 at 2:37 pm #448968AndrĂ©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)?
December 13, 2017 at 2:44 pm #448972AndrĂ©… 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 ); }
December 13, 2017 at 10:18 pm #449124TomLead DeveloperLead DeveloperNot 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' ); }
December 13, 2017 at 10:59 pm #449137AndrĂ©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/
December 14, 2017 at 8:41 am #449479TomLead DeveloperLead DeveloperThat’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?
December 14, 2017 at 3:33 pm #449794André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?
December 14, 2017 at 3:37 pm #449799TomLead DeveloperLead DeveloperSo you would add
course_unit
into the array đŸ™‚December 17, 2017 at 5:37 am #451320AndrĂ©Tom, worked perfectly! .. thx a ton đŸ™‚
December 17, 2017 at 9:33 am #451487TomLead DeveloperLead DeveloperYou’re welcome đŸ™‚
-
AuthorPosts
- You must be logged in to reply to this topic.