Passer la navigation

[Résolu] Display Publish Date in Toolset Document Archives (specific category – sdbip)

This support ticket is created Il y a 1 month, 1 week. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 1 voix.

Dernière mise à jour par tafadzwaK-2 Il y a 1 month, 1 week.

Assisté par: Minesh.

Auteur
Publications
#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 lien caché

What is the link to your site? lien caché

#2858119

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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?
- lien caché

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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Can you please check now: lien caché

I've added the following code to your archive's first conditional block:
=> lien caché

[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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Please check now: lien caché

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.