Hello @alfajr2099,
The plugin is created to display shortcodes in the SEO title and description of the posts/pages/products. The only thing it does is to get the text with the shortcodes and convert them only in those location in the <head> tag. We do not support shortcodes in other locations.
However if you need to use shortcodes for specific WordPress “hooks”, you can do it by adding some code your child theme’s functions.php including the desired hooks. For example:
// For the titles.
add_filter(‘wp_title’, ‘do_shortcode’, 10);
add_filter(‘the_title’, ‘do_shortcode’, 10);
// For the menu.
add_filter(‘walker_nav_menu_start_el’, ‘do_shortcode’, 10);
etc.
-
This reply was modified 2 years, 6 months ago by Denra.com.
Hi @denra
Thanks for your quick reply
The plugin works for me like a charm in title and description of the posts/pages/products
But my problem is only with the “Post/Page Content” option.
When I activate this option, it works perfectly on the home page, but it does not work with categories
You can see the example from my website right now
Home (See Product Labels working like a charm here)
https://damnos.com/
Category (See Product Labels not working here)
https://damnos.com/resources-category/ios/
Is there any solution for that?
Hi again,
This product labels have nothing to do with our plugin. Nevertheless you may try a few filters with the do_shortcodes hook, like esc_html for example:
add_filter( 'esc_html', 'do_shortcode', 11 );
or another hook name. It depends which function is used to display the label.
Please ask a WordPress programmer to see this support thread to understand how to do it, if you do not know how.
There are no new responses, so this support thread will be closed.