Skip Navigation

[Resolved] Initial filter by taxonomy on archive page

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by SteBlood 2 years, 6 months ago.

Author
Posts
#2363979

Alright boys and girls.

Pretty sure I've been here before, not too sure.

I have an archive page that shows property.

I allow my members to upload property and after they've sold the property I allow them to mark the property as 'Sold'.

However, on my property archive page, I would like to show only the property that is associated with 'For Sale' or 'Under Offer'.

Is there any way I can achieve this?

Thanks

Steve

#2364261

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2022-05-16 at 08.45.37.png

Hi Steve

Have you used the legacy editor for custom archives before?

The Query Filter options that you would use to add criteria such as which category of posts to include in the archive are not available in the block editor for custom archives, they are only available with the legacy editor (screenshot).

If you wanted to achieve the same with the block editor you would need to hook into the archive query programmatically and set the query arguments, e.g. using pre_get_posts (https://developer.wordpress.org/reference/hooks/pre_get_posts/).

Are you familiar with the legacy editor and want to try that?

#2364363

Hi Nigel,

Actually, I didn't realise I could use Legacy with the archive pages and assumed that 'switch to classic editor' meant, switch to classic block editor rather than legacy editor.

I think I can actually boss it from here because the power is unlimited with legacy.

Thank you for pointing me in the right direction!