Skip Navigation

[Resolved] Selecting an An Archive category and a Post

This support ticket is created 6 years, 11 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
- 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)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#608303

Tell us what you are trying to do?

1. Display a View of a specific CPT post on a wordpress page [ my-toolset-view post-id=123 ]

2. Display an Archive on a worpdress page of a specific category [my-toolset-archive category="my-category"]

Looking for the right syntax.

Thank you,
Ethan

#608501

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

1. Display a View of a specific CPT post on a wordpress page [ my-toolset-view post-id=123 ]
==> Well - for this you should create a new view and filter your view by post id, filter by shortcode attribute: "postid"

For example:

[wpv-view name="your-view" postid="123" cached="off"]

2. Display an Archive on a worpdress page of a specific category [my-toolset-archive category="my-category"]
==> As I understand you want to filter your post with specific taxonomy term. To do so, you should create a new view and add taxonomy filter and add query filter for your taxonomy - filter by shortcode attribute "category", then create a new page and add your view's shortcode as:

[wpv-view name="your-view" category="my-term-slug" cached="off"]

Please refer to the following link that may help you:
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

More info:
=> https://toolset.com/documentation/user-guides/passing-arguments-to-views/#controlling-the-filter-with-shortcode-attributes