Issue with Elementor grid loop in archive template when query is Current Query

Support Meta Box AIO Issue with Elementor grid loop in archive template when query is Current Query

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #45824
    Jackie LeeJackie Lee
    Participant

    Hi, when creating a template in elementor for the courses category pages, courses do not show up when the query is set on current query. When I edit the template I can see the courses listed, when going to the front-end page I do not see the courses. See https://centuries-of-leadership.com/category/government

    We have created the custom content type courses in Metabox

    If we set the query manually to fetch a specific category that the courses show up accordingly see other categories pages https://centuries-of-leadership.com/category/commercial/

    I have resaved the permalink structure and that did not help.

    I have also tried to create a view and add that to the template in Elementor with the shortcode but that did not helped either.

    Thanks

    #45831
    PeterPeter
    Moderator

    Hello Jackie,

    I see that the course is a custom post type created with Meta Box. If you create another post type with code, does the issue persist? Please follow the documentation
    https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/

    #45834
    Jackie LeeJackie Lee
    Participant

    Hi Peter, it seems that when creating the custom content type with code, the archive page template set to current query pick ups the posts. See https://centuries-of-leadership.com/products/

    Would you mind to take a close look? Thanks

    #45836
    PeterPeter
    Moderator

    This is the taxonomy archive page https://centuries-of-leadership.com/category/government
    This is the post type archive page https://centuries-of-leadership.com/products/

    Can you create a taxonomy archive page for the new CPT wporg_product as you do for the category government and see how it goes?

    #45855
    Jackie LeeJackie Lee
    Participant

    Hi Peter, https://centuries-of-leadership.com/category/military/

    The taxonomy (category) are picked from the post ones. I thought they should belong only to the custom content type.

    Would you mind to receive the credentials and have a closer look?

    #45863
    PeterPeter
    Moderator

    Hello,

    Please share your site credentials by submitting this contact form https://metabox.io/contact/
    I will take a look.

    #45872
    Jackie LeeJackie Lee
    Participant

    Hi, I have just shared the credentials through the contact form.

    Thanks.

    #45874
    PeterPeter
    Moderator

    Hello Jackie,

    As I mentioned above:

    1. This is the post type archive page https://centuries-of-leadership.com/products/ - where you can use the current query option of Elementor template to show posts.

    2. This is the taxonomy archive page
    https://centuries-of-leadership.com/category/government
    https://centuries-of-leadership.com/category/military/
    where you have to use the query course and select a specific taxonomy to show posts.

    It is the feature of Elementor template itself and I don't think it is related to Meta Box in this case. You can try to contact Elementor support to get more information.

    #45887
    Jackie LeeJackie Lee
    Participant

    Hi Peter, we know that those are the category archive pages.

    Have you checked the queries?

    Can you tell us why when setting the query to current query no content type is showing?

    #45895
    PeterPeter
    Moderator

    Hello,

    Yes, I check the source: Current query and understand the issue https://imgur.com/WAkJYY1

    It happens when you share the taxonomy (Category) between CPTs. By default, category taxonomy is assigned to Post. But there is no post belonging to the Post CPT, there are some posts belong to Course and Product CPTs.

    If you use the Current query source, then there is no post (Post CPT) displayed in the frontend. It should be an issue between Elementor and WordPress, Meta Box is not related in this case. You can deactivate Meta Box, create some CPTs with code and recheck this.

    #45905
    Jackie LeeJackie Lee
    Participant

    Hi, thanks for the effort and explanation. Is there a way to not share the taxonomy (categories)?

    #45914
    PeterPeter
    Moderator

    Hello,

    When creating or editing the custom post type, you can go to the Taxonomies tab and unset the Category taxonomy. Here is the screenshot https://imgur.com/MSw5Zt1

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