Skip Navigation

[Resolved] Post Status

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

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1604543
Capture.PNG

I was wondering if there was a way of customising the [wpv-post-status] output.

When a post is published, I want it to say on the front end that the post has the status: Approved.

If I use the shortcode [wpv-post-status] then it outputs the word publish which doesn't make sense in my context.

Thanks!

#1604681

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

Thank you for getting in touch.

While you can't display the Approved text using the [wpv-post-status] shortcode you can use our conditional shortcode to check what the [wpv-post-status] shortcode returns and then display the text Approved.

Example


[wpv-conditional if=" ('[wpv-post-status]' eq 'published')"]
Approved
[/wpv-conditional]

Please let me know if this helps.
Thanks,
Shane