Support Forums for LiveMesh Themes & Plugins › Forums › Invent Theme Support › When using shortcode can not mark lesson complete
- This topic has 8 replies, 3 voices, and was last updated 10 years, 2 months ago by
Raghavendra.
-
AuthorPosts
-
February 8, 2015 at 8:00 pm #12211
lwrkrol
MemberI use the LearnDash plugin. When I create a lesson and on the bottom of this lesson I insert some posts with a shortcode, the button mark as complete does not appear.
So lesson contains:
“bla bla bla”
[divider_line style=””]
[show_post_snippets layout_class=”” post_type=”post” taxonomy=”category” terms=”rebounden” number_of_columns=”3″ post_count=”999″ display_title=”true” display_summary=”true” show_excerpt=”true” excerpt_count=”50″ show_meta=”false” image_size=”medium” hide_thumbnail=”false” title=”Gerelateerde Oefeningen” no_margin=”false”]
[divider_line style=””]
After the last divider there should be the Mark Complete button.
February 9, 2015 at 10:03 am #12216Veena
ModeratorI can see Mark Complete button in page “http://www.streetballacademy.com/topic/boxing-out/”.
Hope you have managed to resolve this issue.February 9, 2015 at 10:18 am #12217lwrkrol
MemberYes but that’s because there is no related post snippet to show. I added one and now the Mark Complete button is not visible.
February 9, 2015 at 2:51 pm #12231Veena
ModeratorCould you pls share temporary login credentials to your site as a private reply here?
February 9, 2015 at 4:28 pm #12237lwrkrol
MemberThis reply has been marked as private.February 10, 2015 at 11:10 am #12248Raghavendra
ModeratorI will need to examine LearnDash plugin to see what’s happening. Any shortcode with a alternate posts loop is making the original lesson post to lose its context, even though we have made sure to reset the posts data so that the original context is not lost.
Before I dig in deep into LearnDash and find out the reason, can you pls check with LearnDash support on this? They may have an answer already and may have seen something like this before. Thanks
February 10, 2015 at 12:00 pm #12251lwrkrol
MemberComment LearnDash
It seems like the theme’s shortcodes are conflicting with the mark complete button in LearnDash. I’d recommend raising this with the theme developer as well. To answer your question, I haven’t heard of a conflict with this theme in particular, but I’ll admit that I’m not overly familiar with it.
February 12, 2015 at 2:10 pm #12285Raghavendra
ModeratorI will do some internal code testing to see what’s happening. Will get back to you in next few hours. Thanks.
February 13, 2015 at 4:36 am #12297Raghavendra
ModeratorI did some testing on my side and looks like the way LearnDash handles the content filter is the issue. Any nested loop you insert into content of a lesson, their content filter kicks in and fails the make the filter work on the original post (original lesson post) and instead tries to filter the posts retrieved as part of nested query.
I suggest you tell LearnDash to fix this issue. To make it easier for you to convince them about the problem and make it easier for them to do testing, I inserted this shortcode of LearnDash –
[ld_course_list]
and same issue occurs. The mark complete button or other navigation elements go missing since their template content filter fails to kick in for the original lesson post even with their own shortcodes which involves a nested loop.
If they fix the issue with their shortcode, the theme shortcodes (or of any other plugin/theme for that matter) should work fine since the loop is being reset correctly.
-
AuthorPosts
- The forum ‘Invent Theme Support’ is closed to new topics and replies.