Using shortcode in question title & body, schema fail
-
I love this plugin it’s great
I wish you could help me with this.
I use a shortcode to put the dynamic year in the title and in the content of the questions, in general in the post.
It was a bit complicated for me because at first glance it works fine, but looking at the source code the [shortcode] appears, not the year (2022)
For the meta tags like title and description of the post I use the plugin dynamic-month-year-into-posts
But for the schema, I don’t know how to make the [shortcode] not appear, but the year.
I know that with filters like this
–add_filter( ‘the_title’, ‘do_shortcode’ );
It would work but I don’t have them from wpsso
An example code is this:
“name”: “All-Inclusive Vacation Packages [year]”
I need it to be like this
“name”: “All Inclusive Vacation Packages 2022”Thanks in advance
The topic ‘Using shortcode in question title & body, schema fail’ is closed to new replies.