I have some shortcodes which work fine inside a WordPress post or page. Is there anything I can add to functions.php to enable a shortcode to work inside a WordPress post title?
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
- Facebook Login With WP JWT Auth
- Wordpress development process
Add the following filter to
functions.php
as mentioned by DavidHowever, this approach may not work if you are using the Yoast SEO plugin. For that, you need to add the following filter too:
You could try adding a filter to the title in the
functions.php
file such as:Seems to work for me, however it may play havoc with your permalink's and I wouldn't recommend it.
In future WordPress related questions might be better directed at https://wordpress.stackexchange.com/.