Skip Navigation

[Resolved] Dynamic page title tag

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 1 year, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2612025

I have a Page: mysite.com/blah/blah/product-ad/

It is used to show dynamic content pulled from a Product Ad Post Type: mysite.com/blah/blah/product-ad/?wpvproductlist=mycontent
where 'productlist' is a view, and where 'mycontent' is a Post.

By default, all title tags are 'Product Ad' as it is the title of the page the dynamic content is on.
How can I rewrite that title tag to a shortcode after Loop (i.e. My Content)?

Prefer to do this in custom_functions.php instead of each post with that post type.
Such that anytime a /product-ad/ page displays, the title tag auto rewrites itself to a toolset shortcode found in the loop (i.e. 'My Content' ... the Post title).

#2612113

Hello,

Please elaborate the questions with more details:

How can I rewrite that title tag to a shortcode after Loop

Are we talking about post slug?
Which loop are we talking about?
What shortcode are we talking about?

#2612185

How can I rewrite that title tag USING a toolset shortcode? Currently the shortcode displays the post title, 'mycontent'. And by 'title tag' I mean what shows up in the browser tab.

#2612527

Here is a sandbox website:
Login URL: hidden link

To avoid misunderstandings, you can reproduce the same problem in above sandbox website, and point out the problem post URL, and describe details for the problem:

How can I rewrite that title tag to a shortcode after Loop

#2612683

I don't speak chinese and you obviously don't understand english. Pass this question on to an american.

#2612867

Unfortunately, there isn't any American supporter for now.
And according to our support policy, we don't provide custom codes support:
https://toolset.com/toolset-support-policy/

As my understanding, you want to override the specific page title with other post's title.
There isn't such kind of built-in feature, you will consider custom codes, for example:
If your theme supports WordPress built-in filter "wp_title":
https://developer.wordpress.org/reference/hooks/wp_title/
You can use it to customize the page title to what you want.
And you can use WP function to get the specific post information by URL parameter:
https://developer.wordpress.org/reference/functions/get_posts
hidden link

For your reference.