Home › Forums › Pro Support › Shortcodes within Post Content › Reply To: Shortcodes within Post Content
June 27, 2018 at 4:23 am
#5050
Participant
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]");
}
}