Accueil › Toolset Professional Support › [Résolu] Conditional display based on post-id
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.
Marqué : Content Templates, Views plugin
Documentation connexe :
This topic contains 3 réponses, has 2 voix.
Last updated by Shane Il y a 1 an et 8 mois.
Assigned support staff: Shane.
I have an existing site which uses Views shortcodes.
Within a content template, is it possible to make the display of some text dependent upon a specific post-id? I mean using the wpv-conditional shortcode?
Anglais (English )
Thank you for getting in touch.
Yes you can using our wpv-conditional shortcode to check the post's ID.
Could you assist with an example shortcode please. For example, if the post-id is 356, then what would the wpv-conditional code line be?
So that the field would be displayed if the post-id was 356?
Here is an example
[wpv-conditional if="('[wpv-post-id]' eq '356')"]
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support