DISPLAY RECENT POSTS ON STATIC PAGE IN WORDPRESS

Many at times it is required to display a static page on a wordpress site. Well its too easy to do that, but sometimes on that static page if we wish to display recent posts or recent posts of any particular tag, then it would require some special efforts (Plugin !!) to do so. Here in this article I am going to share how to do this.

Wordpress Tools

To display a static front page, follow the steps below :-

  1. Login to wordpress dashboard.
  2. Go to Readings section in Settings Panel.
  3. In the “Front Page Displays” option select “A static page” option.
  4. From the dropdown list select the page you want to be diaplayed on the front.

To display Recent posts on a Static Page :-

  1. Download GetPosts plugin. [Link]
  2. Use [get_posts] tag to display recent posts, where ever you want it to.
  3. By default this tag displays 10 posts in reverse chronological order.

If you want to display recent posts of a particular tag then use the following tag :-

[get_posts tag="my favorite tag" numberposts=5 orderby="title]

This tag will display recent posts from “my favorite tag” and will display 5 recent posts.

Hope you will find this useful, do share your views with us

0 comments:

Post a Comment