page shows short code not output

I change the array in get_children() and foreach loop with below reference url and code work fine. please check the argument that you have passed also use echo statement like they shown in the example. reference url : https://developer.wordpress.org/reference/functions/get_children/ let me know result or errors $args = array( ‘posts_per_page’ => 1, ‘order’ => ‘ASC’, ‘post_mime_type’ … Read more

Featured Story Shortcode not outputting content

First thing : initialize variable $content=””; before the while loop. other than that your code is right. there is something you are doing wrong to use shortcode. you should check this link https://developer.wordpress.org/reference/functions/do_shortcode/#user-contributed-notes and make changes. also if using for custom post type please add post_type argument in $args