• Hello,

    I did the latest WordPress 4.2.2 upgrade last week.
    I just spotted that my featured page not showing up.

    Here is my code.

    function show_featured_posts() {
    global $post;
    $arg = array(‘featured’=>’yes’,’post_status’=>publish,’post_type’=> array( ‘post’, ‘page’));
    //get $numbers of featured posts
    $featured_posts_array = get_posts( $arg);
    $output .= ‘<div class=”slider-wrapper theme-default”>’;
    $output .= ‘<div id=”slider” class=”nivoSlider”>’;
    foreach ($featured_posts_array as $post) : setup_postdata($post);
    $nivo_title = “#nivo”.get_the_ID(); //assign the postID as title of the image
    if ( function_exists(“has_post_thumbnail”) && has_post_thumbnail() ) {
    $output .= get_the_post_thumbnail(get_the_ID(), array(580,248), array( “class” => “post_thumbnail”, ‘title’ => $nivo_title )); }
    $caption .= “<div id=’nivo”.get_the_ID().”‘ class=’nivo-html-caption’>
    <h5>“.get_the_title().”</h5>

    </div>”;
    endforeach;
    $output .= ‘</div>’;
    $output .= $caption;
    $output .= ‘</div>’;
    return $output;

    //reset WP query
    wp_reset_query();
    }

    Do you have any suggestions?

    Thank you

    Ton

    https://www.ads-software.com/plugins/featured-post/

  • The topic ‘Featured Posts Type "Page" not showing’ is closed to new replies.