Saltar navegación

[Resuelto] 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 4 respuestas, tiene 1 mensaje.

Última actualización por tafadzwaK-2 1 month, 1 week ago.

Asistido por: Minesh.

Autor
Mensajes
#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 enlace oculto

What is the link to your site? enlace oculto

#2858119

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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?
- enlace oculto

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
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please check now: enlace oculto

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

[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
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Please check now: enlace oculto

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.