Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    [display_posts post_type=”post, page, event, recipe, book” posts_per_page=”1″]

    This will display the most recent post found in any of those post types (so will return 1 post total).

    If you want to display the most recent post from each post type (so 5 posts total), just use the shortcode 5 times:

    [display_posts post_type=”post” posts_per_page=”1″]

    [display_posts post_type=”page” posts_per_page=”1″]

    Thread Starter diegooli

    (@diegooli)

    My case is the second. But how can I split in two columns in that way?

    With just 1 shortcode I can do this:

    http://www.billerickson.net/code/add-column-classes-to-display-posts-shortcodes/

    More than one doesn’t work

    Plugin Author Bill Erickson

    (@billerickson)

    <div class="one-fifth first">
    
    [display_posts]
    
    </div>
    
    <div class="one-fifth">
    
    [display-posts]
    
    </div>
    Thread Starter diegooli

    (@diegooli)

    WOW! you are a kind of modern hero, man! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display 1 latest post from 5 different custom post type’ is closed to new replies.