Display Posts Shortcode
How to display Title below or Above Featured Image of Posts in grids (3 posts)

  1. sp1212
    Posted 2 years ago #


    I'm new to WP and would need some help here from you guys. I am trying to selectively display posts from categories on each Page. I am currently using the following code which lists the Titles one below the other along with the image Thumbnails in a list format. Here is the simple code I am using:

    display-posts title="Recent News" category = 'news" posts_per_page="50" include_date="true" order="DESC" orderby="date" image_size="thumbnail" wrapper="div"]

    However, I wish to display the posts in a Grid Layout with each post showing only the Featured Image and just the Title at the top (or bottom) of the image. All the images should be of a specific size (lets say 300 X 300).

    I'd really appreciate if anyone can please help me with how to do this with the Display Posts Shortcode plugin.


  2. sp1212
    Posted 2 years ago #

    I'd really appreciate if anyone please help me with this.

  3. rcvane
    Posted 2 years ago #

    You can easily add the grid by adding this code to your functions.php file:


    Once you've done that, as he's included, you can add column="3" or however many columns you want in your grid up to 6.

    You may need to modify the the output for the other part, and that has been a bit tricker for me to figure out, but here's a link to code kind of like that: http://www.billerickson.net/code/display-posts-shortcode-additional-fields/

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic