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).
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?
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.
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
I don't speak chinese and you obviously don't understand english. Pass this question on to an american.
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.