Saltar navegación

[Resuelto] Adding search options as titles

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to display what was being search for on the results page example "Search Results for : ...."
Solution:

This can be done by using the shortcode below.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

This support ticket is created hace 5 años, 5 meses. 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
- 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)

Este tema contiene 17 respuestas, tiene 2 mensajes.

Última actualización por leilaG hace 5 años, 5 meses.

Asistido por: Shane.

Autor
Mensajes
#1299795

Thanks for the fix!

I have added a date format but it's still showing the date as format - 2019-07-31 and not d/m/Y

// Attributes
$atts = shortcode_atts(
array(
'timestamp' => '',
'format' => 'd/m/Y',
),
$atts

Should that work?

#1299799

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Leila,

The format information is placed in the shortcode itself example
[wp_convert_timestamp timestamp="[wpv-search-term param='wpv-wpcf-target-date']" format="d-m-Y"]

Where you see i have the format parameter.

Thanks,
Shane

#1299817

Awesome. Thank you!