Skip Navigation

[Resolved] Custom query

This support ticket is created 4 years, 2 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 4 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#1814423

Hi,
I am trying to make a "index" page from a CPT, where only posts with a spesifique value from a spesifique custom field is shown. The posts with other values from that custom field should not display.

Is this a view, template or page approach? I am using blocks.

#1814679

Hello and thank you for contacting the Toolset support.

I wonder if by "index" you meant the primary page on your website? Or just in general terms, an index of posts?

In both cases, you will need to create a page, and inside of that page, create a view block. In the view, block configure a query filter on the custom field. Check our tutorials about views here https://toolset.com/course-lesson/?wpv-related-lesson=view&wpv_view_count=1599013

And check our Glossary page about the Toolset/WordPress terms meaning https://toolset.com/glossary/

I hope this helps. Let me know if you have any questions.