Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3152972
Archive Templates
Closed

Comments

  • planetofthepenguins started the conversation

    I would like to use one Archive Template across multiple categories.

    However, when I set the query on Penci post elements for Elementor to "Archive Builder/Current Query" there are some posts missing from the page.

    Is this a bug?

  •  2,487
    PenciDesign replied

    Hi,

    For this case, please send me your WordPress admin account in a PRIVATE reply.
    I'll log in and try to help you check it.

    Regards,
    PenciDesign.



  •   planetofthepenguins replied privately
  •  2,487
    PenciDesign replied

    Hi,

    This is a small issue from the Elementor Settings.

    I've fixed it for your site.

    Please check.

    Regards,
    PenciDesign.


  • planetofthepenguins replied

    Looks better, thanks.

    What settings did you change, please?

  •  2,487
    PenciDesign replied

    Hi,

    I've reset the query settings on the Penci Latest Posts elements.

    Regards,
    PenciDesign.


  • planetofthepenguins replied

    Hi there.

    I'm not sure this is completely fixed. I've restored my "Big Grid" that I previously had at the top of the page and I am still getting posts being skipped.

    I would have expected the query to be per item, but they seem to be interacting with each other in some way. Is this because of the way that the control manipulates the current page query?

    At this stage it's starting to look like I might need to build a custom archive template per category to get what I was expecting, which seems like a lot of additional work as a workaround.

    Can you offer any advice please?

    Thanks!

  •  2,487
    PenciDesign replied

    Hi,

    Please re-send me the admin account, I need to check your query settings.

    Regards,
    PenciDesign.


  •   planetofthepenguins replied privately
  •   planetofthepenguins replied privately
  •  2,487
    PenciDesign replied

    Hi,

    1. I can't log in because of the wrong password,

    2. You can set the category template for each category by going to Posts > Categories, selecting the category you want to edit then changing the template at the "Select Custom Archive Template for this Category" option.

    Regards,
    PenciDesign.


  • planetofthepenguins replied

    Hi

    1. I've checked the account and it is working.

    2. I am aware of that option but it is not practical for me with a large number of categories.

    Best wishes,

    Chris

  •  2,487
    PenciDesign replied

    Hi,

    1. I've fixed the query for the entire site,

    2. In general, you can set the archive template at Appearance > Customize > General > Category, Tag, Search, Archive Pages > Archive Builder Template.

    Regards,
    PenciDesign.


  • planetofthepenguins replied

    Hi

    Thanks for this - please can you tell me specifically what you changed in case this happens again as I've got more changes to make on this site yet.

    Thanks,

    Chris


  •  2,487
    PenciDesign replied

    Hi,

    Please go to Appearance > Theme File Editor:

    - Select theme to edit: Soledad,

    - Navigate to inc/elementor/modules/query-control/module.php, find:

    return $GLOBALS['wp_query']->query_vars;

    Replace it with:

    $query_args = $GLOBALS['wp_query']->query_vars;
    $query_args['post__in'] = '';
    return $query_args;

    82Myshb.png

    Regards,
    PenciDesign.



  • planetofthepenguins replied

    Fantastic, thank you!

    Will I need to repeat this process myself if the theme gets updated or will that fix make it into core?

  •  2,487
    PenciDesign replied

    Hi,

    We'll add this code to the theme files in the future theme update.

    Regards,
    PenciDesign.


  • planetofthepenguins replied

    Excellent, thank you!

    I think we can finally close this one off 🙂