Skip to content
Public Ticket #22650

Archive Templates

Conversation thread

planetofthepenguins replied

Customer Reply

Excellent, thank you!

I think we can finally close this one off ?

PenciDesign Supporter replied

Staff Reply

Hi,

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

Regards,
PenciDesign.


planetofthepenguins replied

Customer Reply

Fantastic, thank you!

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

PenciDesign Supporter replied

Staff Reply

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

Customer Reply

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

PenciDesign Supporter replied

Staff Reply

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

Customer Reply

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

PenciDesign Supporter replied

Staff Reply

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.


PenciDesign Supporter replied

Staff Reply

Hi,

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

Regards,
PenciDesign.


planetofthepenguins replied

Customer Reply

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!

PenciDesign Supporter replied

Staff Reply

Hi,

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

Regards,
PenciDesign.


planetofthepenguins replied

Customer Reply

Looks better, thanks.

What settings did you change, please?

PenciDesign Supporter replied

Staff Reply

Hi,

This is a small issue from the Elementor Settings.

I've fixed it for your site.

Please check.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

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 started the conversation

Conversation Start

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?

Want to join this conversation or access attachments? Sign in first.