WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Yet Another Featured Posts Plugin (YAFPP)] Doesn't seem to work with custom post types

[Plugin: Yet Another Featured Posts Plugin (YAFPP)] Doesn't seem to work with custom post types

Viewing 1 replies (of 1 total)
  • ianmcabee
    Member

    @ianmcabee

    I’m looking to do the same. I would like to target a specific post type and pull 1 featured post from it.

    <?php
    get_featured_posts( array('post_type' => 'promotions') );
    $my_query = new WP_Query('post_type=promotions');
    while ($my_query->have_posts()) : $my_query->the_post();
    the_content();
    endwhile;
    ?>

    I can’t it to work though. Are custom post types supported with the plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Yet Another Featured Posts Plugin (YAFPP)] Doesn't seem to work with custom post types’ is closed to new replies.