WordPress shortcode for a section Template

I have found the Solution with another Code but still not know what was the Problem with the First Code . It is solved . the Code which I will use will be : <div class=”card-deck”> <?php // the query $wpb_all_query = new WP_Query(array( ‘post_type’=>’grants’, ‘scholarship_degree’=> ‘bachelor’, ‘post_status’=>’publish’, ‘posts_per_page’=> 4, ‘tax_query’ => array(array( ‘taxonomy’ => … Read more

Shortcodes not working in category or tag description

You entered the quotation marks wrong, I fixed it, maybe it will help: add_filter( ‘term_description’, ‘do_shortcode’ ); add_filter( ‘category_description’, ‘do_shortcode’ ); add_filter( ‘post_tag_description’, ‘do_shortcode’ ); function my_shortcode() { ob_start(); require_once(get_template_directory() . ‘/html/htmlcontent.php’); $content = ob_get_contents(); ob_end_clean(); return $content; } add_shortcode(“shortcode”,”my_shortcode”);