Skip Navigation

[Resolved] Display Publish Date in Toolset Document Archives (specific category – sdbip)

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 4 replies, has 1 voice.

Last updated by tafadzwaK-2 2 weeks, 4 days ago.

Assisted by: Minesh.

Author
Posts
#2858117

We want to display the “Date Published” (or document date metadata) for each PDF item listed in the archive view of SDBIP documents. Currently, this metadata exists on individual document pages but is not shown in the archive listing. The goal is to have this date directly in the listing for better usability and transparency.

We are working based on Toolset’s standard archive/listing functionality for custom post types and fields. Specifically, we are trying to expose existing post metadata (publish date or custom field) within the archive template.

Is there a similar example that we can see? Yes — individual document pages already display a “Published” date :
shows on the hidden link

What is the link to your site? hidden link

#2858119

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Please share admin access details and you want to display the published date for the following specific archive link?
- hidden link

Or you want to display the published date for all the terms belongs to "george-doc-categories" taxonomy?

I have set the next reply to private which means only you and I have access to it.

#2858132

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

I've added the following code to your archive's first conditional block:
=> hidden link

[wpv-conditional if="( '[wpv-taxonomy-archive info='slug']' eq 'sdbip' )"]
<p>Date Published: [wpv-post-date format="F j, Y"] </p> 
[/wpv-conditional]
#2858135

Hi Minesh, thank you for this. Is it possible to reduce the font of the date a little. Thank you. Thats all.

#2858150

Minesh
Supporter

Languages: English (English )

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

Please check now: hidden link

I've adjusted the code as given under:

[wpv-conditional if="( '[wpv-taxonomy-archive info='slug']' eq 'sdbip' )"]
<p>Date Published: <span style="font-size: 0.95em;"> [wpv-post-date format="F j, Y"] </span> </p> 
[/wpv-conditional]

Please note that we can help you with issues (bugs, compatibility) or any thing that is not working with Toolset as expected but we can not build and do such customizations that you will have to do on your own.

Thank you for understanding.

#2858157

Thank you so much for being so helpful. Thats all.