@rehtset
I have a possible “bug” report that I wanted to submit. I am using the Elementor Pro plugin with LifterLMS and was told by Elementor support to contact Lifter about a “missing has_archive in CPT [Custom Post Type] initialization/registration” with the Lesson post type.
This isn’t a bug, exactly. LifterLMS doesn’t support archives for the lesson post type. We are not missing the has_archive parameter during post type registration. We intentionally don’t declare it because archives are not supported. The default value of has_archive is false (denoting archives are not supported) and we don’t pass it because the parameter is not required by the WordPress core method in question.
Source: https://developer.ww.wp.xz.cn/reference/functions/register_post_type/#has_archive
I’m still working with Elementor support but wanted to reach out and see if there is anything Lifter can do. I know Lifter says it supports Elementor integration but wondered if there is an integration issue on either the Elementor or Lifter side of the equation.
We don’t actually maintain anything that adds support for Elementor. Although, generally Elementor functions with LifterLMS.
It sounds like Elementor only allows templates for post types that support archives? In which case this isn’t really something we can fix. If we’re to add support for archives then we expose functionality we don’t intend to expose.
Archives display a paginated list of all posts of the given post type. For example, the “Blog page” in default WordPress is the “blog” post type archive page. This lists all your blog posts.
The “Course catalog” page is the course post type archive. It lists all your courses.
A lesson archive page would list all your lessons which is *not* how lessons are intended to work. Thus we don’t enable them during post type registration.
Update: Received the following from Elementor regarding the LifterLMS integration:
Everything about this integration was developed by them, so we do not have any control over this integration.
Can this be reviewed by someone from the Lifter team?
We don’t have an elementor integration that we maintain. You may be referring to the 3rd party integration plugin, “Lifter Elements” which is developed by another team (Tangible plugins). If you’re looking for help with this integration plugin you can reach out to Tangible directly: https://tangibleplugins.com/products/lifter-elements/
Hope that clears things up and let us know if you have any other questions