Wrapping shortcode content in a span or link

Get out of the switch block before placing the final return statement. if you place return at the end of the switch block that way, the switch block already ends before it gets to the return statement (because of the previous matching break statements). The correct CODE will be: // just in case $summary is … Read more

do_shortcode for is_page(slug)

In this line if( is_page( ( ‘azubi’); you start but not end the round bracket [“(” OR “)”] and not used semicolon after the if condition used colon like if( is_page(‘azubi’)): <?php if( is_page(‘azubi’)): echo do_shortcode( ‘[contact-form-7 id=”274″ title=”Bewerbungsformular_beruf” ]’ ); else: echo do_shortcode( ‘[contact-form-7 id=”2741″ title=”Bewerbungsformular_berufe” ]’ ); endif; ?> Check this : https://developer.wordpress.org/reference/functions/is_page/ … Read more

How to display a page dependent on a url parameter supplied by a form/button page?

If you would show pdf in content dynamically, which page would you like to show page, post or wherever. You have to echo your shortcode in template file. For example, you have to print like below <?php echo do_shortcode(“[shortcode pdf=”. $_REQUEST[“pdf_id’] .”); ?> http://yourwebsite.com/post-title/?pdf_id=20 //your url would be like that