Skip Navigation

[Resolved] Adding search options as titles

This thread is resolved. Here is a description of the problem and solution.

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 5 years, 4 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.

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)

This topic contains 17 replies, has 2 voices.

Last updated by leilaG 5 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#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

Languages: English (English )

Timezone: 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!