Hi Tom,
I though about your answer and changed the PHP code with this one:
add_shortcode( ‘slider-post_slug’, function() {
global $post;
if ( is_object( $post ) ) {
return ‘[smartslider3 alias=”slider-‘ . $post->post_name . ‘”]’;
}
} );
The new PHP code seems to to be working as returning what I need getting an output like this:
[smartslider3 alias=”slider-the-authentic-madrid-tapas-tour”]
The problem I’m facing now is that I don’t really know how to add the call to my slider-post_slug into the my Header Element.
Do you know how could that be done?
Thanks
PS: Sorry, I’m not sure if I’m going in loops here.