We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Shortcodes within Post Content Reply To: Shortcodes within Post Content


Hey Tom, Thanks for your reply!

I’ve given that code a crack and it works great, I even put a conditional ‘is front_page’ on it which I was proud of. 😛

Just wondering if I can make this target specific instance of WP show posts?

At the moment I have 2 instances/lists on the homepage and one I want the player to show up on and the other I dont?

My code at the moment is:

add_action( 'wpsp_before_content', 'tu_add_before_wpsp_content' );
function tu_add_before_wpsp_content() {
    if ( is_front_page()) {
         echo do_shortcode("[audio mp3]");