• Resolved Brad Griffin

    (@burlesonbrad)


    Is the /course/ ID set in /wp-admin/admin.php?page=llms-settings&tab=courses ? YES

    Is the [lifterlms_courses] shortcode entered on the page? YES

    Even when I make a completely new page, delete the existing one, and enter the [lifterlms_courses] shortcode again, then again go back into LifterLMS > Settings > Courses tab & set the new page, the same affect keeps happening.

    Any idea why?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @burlesonbrad,

    TLDR; remove the shortcode, it’s not necessary and the shortcode is causing the duplicates.

    The page selected as your course catalog page automatically outputs your courses without the shortcode. Why? Because using shortcodes is crude and archaic and requires you, the user, to write pseduo-html in order to do things that we can do automatically via code in the plugin.

    It used to be required back in version 2.x but we changed that a while ago.

    We added the ability to add content to your catalogs by adding content directly to the page you specify as your catalog page back in 3.16 (I think, I looked back through the changelog and I couldn’t find the exact point where this was added, sorry). This allows you to do all sorts of simple customizations without having to write any code.

    The thing I didn’t realize is that although adding the shortcode has not been a necessity for YEARS, many users still add the shortcode anyway. Before this 3.16 update it didn’t cause any issues because the content of the page was ignored / disregarded. Users though they were making the catalog work and no one though anything of it (and I didn’t realize users were adding the shortcode unnecessarily).

    Now users report duplicates, I tell them to remove the unnecessary shortcode, and life goes on. I’ve considered writing code to suppress the shortcode on this page but it seems like a lot of effort. As we burn shortcodes away with Gutenberg we’ll start to see this issue less and less (and we really don’t see it all that often).

    Hope that helps,

    Thread Starter Brad Griffin

    (@burlesonbrad)

    ok, done. But there’s still something a bit wonky going on.
    There was 5 courses before I removed the shortcode. And, I’m not sure if you noticed or not, but only two of them were duplicated.
    Now, once the shortcode is gone, there’s only 2 courses showing.
    Yet, looking in the backend, clearly I’ve got 3 published: 2 on SEO & one for Variations.

    Also, look up there in the breadcrumb area & you’ll see something else strange. _(Not sure if it’s related though or not)_ See where it says course in the breadcrumb area? The name of the page though is Courses (with an S)
    Plus, that breadcrumb title is pulling from the page name, right? So why’s it showing course _(with no S)_

    2 courses + weird breadcrumb issue = ???

    Thread Starter Brad Griffin

    (@burlesonbrad)

    Belay My Last.
    Found an old row of tables that a plugin didn’t delete. Now all the courses are showing up correctly.
    Thanks Thomas~

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Courses Showing’ is closed to new replies.