Skip Navigation

[Resuelto] Filter a View and display it in a sidebar Widget

This support ticket is created hace 7 años, 6 meses. 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

Etiquetado: ,

This topic contains 1 respuesta, has 2 mensajes.

Last updated by Minesh hace 7 años, 6 meses.

Assisted by: Minesh.

Autor
Mensajes
#445853

I would like to display some of the fields from a CPT in the sidebar of my page.

I have a CPT called "Care Homes". This CPT has fields for Phone, Address, Images (Repeating Image Field).

I have created a new Care Home in my CPT called "Oakwood Park".

Now I create a Page called "Oakwood Park", I want to display some of the CPT fields in a Widget in the sidebar of the page.

I realise I would have to create a View to contain the fields I want to display, but how do I make sure only the Oakwood Park CPT information shows in the Widget on the Oakwood Park Page?

#446093

Minesh
Supporter

Languages: Inglés (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As you want to display content from specific post, I suggest you should filter your view by post ID:

Post ID filter
Include only posts with the following IDs: 184

Where:
184 is the post id of your CPT post "Oakwood Park"

We have detailed Doc about how you can filter your view by post ID.
=> https://toolset.com/documentation/user-guides/filtering-views-query-by-post-id/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.