• robyk

    (@robyk)


    Hi,

    I’m currently working on a course-selling website as a personal project. I’m using Divi because I’m most familiar with it, and it allows me to make customizations easily. Recently, I started creating a single-course page template. Initially, I faced some issues with shortcodes, such as [learn_press_course_curriculum], which was displaying the curriculum twice.

    However, the biggest challenge came after completing the single-course page template: the lesson links stopped working. Whether I accessed the links from the backend or frontend, the page would simply reload back to the course page instead of navigating to the lesson.

    • This topic was modified 2 months ago by robyk.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi robyk,

    Thank you for reaching out to us and sharing the details of your project!

    To help identify the root cause of the issue, please try switching to one of WordPress’s default themes, such as Twenty Twenty-Five, and check if the problem persists:

    1. Go to Appearance > Themes in your WordPress dashboard.
    2. Activate the Twenty Twenty-Five theme.
    3. Test the lesson links again from both the backend and frontend.
    • If the issue is resolved after switching to the default theme, we recommend contacting the Divi theme developers for further assistance. They can help pinpoint any compatibility issues between their theme and LearnPress.
    • If the issue persists even after using the default theme, please let us know, and we’ll provide an alternative solution to address the problem.

    We look forward to hearing from you!

    Best regards,
    Brianvu-tp

    Thread Starter robyk

    (@robyk)

    Hi,

    Thank you for your response. I’ll contact Divi support regarding the issue.

    In the meantime, could you please check if the [learn_press_course_curriculum] shortcode works correctly? When I use it on my single-course template page, it displays the curriculum but also throws the error:

    Warning: Undefined array key “id” in /home4/wibvvywp/public_html/info/wp-content/plugins/learnpress/inc/Shortcodes/class-lp-shortcode-course-curriculum.php on line 41.

    I assume this is because I didn’t specify an id. However, since this is a template page, I cannot define one. Even when I try setting an ID manually, it shows the curriculum twice with slight differences (see attached screenshot). How can I create custom pages using Learnpress elements?

    Thank you in advance!

    View post on imgur.com

    Plugin Support brianvu-tp

    (@briantp)

    Hi robyk,

    Thank you for your detailed response and for sharing the additional information!

    We’ve tested the [learn_press_course_curriculum] shortcode by assigning it to a specific post and including the course ID as a parameter. The result displayed a single curriculum section without duplication or errors. This test was conducted using the default Twenty Twenty-Five theme and LearnPress version 4.2.7.5.

    If you’re encountering issues with this shortcode in your setup, it’s possible that:

    1. There might be a conflict with your theme (e.g., Divi).
    2. The shortcode is being called multiple times inadvertently in your template.

    We recommend the following steps:

    1. Double-check your single-course template to ensure the shortcode is not included more than once.
    2. Try using the shortcode with an ID parameter, like this:
      [learn_press_course_curriculum id="123"]
      Replace 123 with the actual course ID to verify if this resolves the warning.
    3. Test again using a default theme like Twenty Twenty-Five to confirm if the issue is related to the theme or template.

    If the problem persists, please share your findings with us.

    Thank you for your understanding!

    Best regards,
    Brianvu-tp

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.