Support » Plugin: LearnPress - WordPress LMS Plugin » Does not follow WP template hierarchy

  • This big plugin and does not even follow WordPress template hierarchy. All contents are displayed using page.php template. What???

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ken Nguyen

    (@kendy73)

    Hi Nilambar Sharma,

    I think there is a misunderstanding here. All those LearnPress templates are located in folder /learnpress/templates/. Almost plugins do the same (WooCommerce, bbPress, BuddyPress…).

    I am pretty sure that the issue came out from your current WordPress time, somehow (a conflict maybe) it process LearnPress templates via page.php.

    I really hope you can continue the discussion so we can find a solution for that.

    Regards,

    Ken

    I dont think there is misunderstanding. Like you said yourself, using page.php for rendering everything is the biggest flaw. This means single-*.php and archive-*.php does not work. And also is_single() and is_tax() does not work as expected.
    Yes, plugin provides template overriding but it should not hijack the template hierarchy.

    Plugin Author Ken Nguyen

    (@kendy73)

    Hi Nilambar,

    I didn’t fully get your point before.

    Those LP templates didn’t use page.php.

    And single-*.php and archive-*.php still working fine.

    Can you please check again?

    Regards,

    Ken

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