Make WordPress Obey: List Posts on Static Pages

Posted: Oct 13, 2009 |Comments: 3 | Views: 703 |

WordPress is a great tool with ton of community support.  But sometimes, when you just can’t make it do your bidding, nobody has written a plugin to do what you want, and Google reveals no acceptable hacks, you just have to fire up Notepad and summon your inner PHP hacker.  Coaxing WordPress into displaying certain posts on a static page is just one of those times.

WordPress static pages are not supposed to show dynamic stuff. But, sometimes, you want them to anyway.  Here’s a plugin that does just that. This plugin adds the ability to put a tag in your page entry and have it display a list of posts using the get_posts template tag.

By default it will show the 10 most recent posts ordered in reverse date order, but it will accept any of the options provided by the get_posts template tag.  To use it, just put the following into the HTML of any page or post, use as many times as you like
on the same page:

[get_posts]

This default usage will return the last 10 posts in reverse chronological order. Along with all the options provided by the get_posts template tag, it will also accept one additional option:

ul_class: This is the class assigned to the bullet list. Default of “get_posts_class”.

An example with a few options:

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

Shows 5 posts with the tag “my favorite tag” ordered by title.

There are quite a few more options … check the wordpress.org extensions page for more detailed documentation on all the options.

Download the plugin here, and please let us know with a comment if you have any suggestions, comments, requests or questions.  And, if you like it, hit the plugin page and give it a nice rating :-)

Questions and Answers

Ask
200 Characters left
Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    Print
    Re-Publish
    Source:  http://www.articlesbase.com/blogging-articles/make-wordpress-obey-list-posts-on-static-pages-1335059.html

    Article Tags:

    wordpress

    ,

    posts

    ,

    plugins

    ,

    plug in

    WordPress enthusiasts have always found it hard to work with Magenta, another popular Open Source platform. However, with the introduction of the Magento WordPress Integration plugin for WordPress, it will now be a lot easier to initiate an instance of your local Magento installation within your WordPress theme.

    By: Pamela Adresonl Computers> Softwarel Mar 24, 2012

    Wordpress, probably, the very best and many used blog on the internet is well loved not only reason for its usability, but its addons plug ins, which enhance your blogs performance and effectiveness. Wp has hundreds of 'plugins' - all created to suit writers needs largest they may be blogging and site-building for. Several gadgets in your Wordpress blog will not only assist you to successfully and easily write your articles, but will keep it easy to use. Gadgets can help deliver all...

    By: Tommie Popel Internetl Jan 12, 2011
    Viahal Arora

    Entertainment plugins make WordPress one of the most powerful content management systems in the world.

    By: Viahal Aroral Computers> Programmingl Apr 18, 2011
    equaliz3r

    WordPress shortcodes are powerful but yet but fairly undiscovered WP functions. Envision you could just type "adsense" to display an AdSense ad. WordPress shortcodes can do this plus much more all of which will definitely help make ones own blogging existence much easier. In the following paragraphs, we'll teach you how you can make and use shortcodes, and also offer colossal WordPress shortcodes which will increase your blogging experience.

    By: equaliz3rl Computers> E-Learningl Dec 10, 2010

    WordPress plugins give you an amazing ability to easily use any of the thousands of plugins to bring a wide assortment of functionality to your website. There are plugins for e-commerce, SEO, banner ads, Analytics, managing your users, integrating with email lists, showing galleries of images, embedding audio or video, and on and on and on. Learn in this article how to find and install plugins for your site or blog.

    By: Philip Lightl Computersl May 15, 2010

    For the most effective use of your website you need focused, targeted website traffic and if you're not a strong programmer or fluent in HTML I would recommend to learn how to use WordPress cms. I highly recommend downloading the Wordpress Unleashed home study video course from seogoogle.biz to get the most out of Wordpress. You get over 2 hours of professional training videos also get free Wordpress plugins with the course enabling you to ...

    By: Cameron Gomezl Internetl Aug 21, 2010
    vi le thanh

    7 Steps Important to Make Best Strategy Blog to Development for Your Business Online

    By: vi le thanhl Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    Getting into social media marketing is a smart idea for any business owner. No matter whether your business is online or offline, this still remains true. With so many businesses reaping the benefits of social marketing, it's a shame to see so many others losing out. Just looking at it from this angle highlights the value of using a blog for your business. A blog can give any business an immediate benefit when it comes to social media.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    Getting into social media marketing is a smart idea for any business owner. No matter whether your business is online or offline, this still remains true. The web environment for business is focusing on social marketing so much that it becomes imperative. Just looking at it from this angle highlights the value of using a blog for your business. A blog can give any business an immediate benefit when it comes to social media.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    If you want to see real results from your online marketing efforts, a blog for any business is the perfect choice. Seriously, you can build the simplest blog and do well depending on your business. When you have your blog running, you can focus on some serious marketing for it. A blog will support just about any kind of content format, so a video blog will work very well indeed. This article will look at some simple strategies for building up a blog for your business.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    Choosing a blog for your business is a total no-brainer for those who have been using them. While that may seem completely obvious to you, it should be important for those who are not sure.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012

    Discuss this Article


    Comments on this article

    0
    mX35Amy Dec 31, 2009
    Thank you, it's very astounding information about this topic it might be very kind for students.
    Recently i needed resume writing. To my awesome surprise, resume was worthy the price I paid for it.
    0
    Liz Nov 16, 2009
    Can you Clarify what you need? Do you want the entire article to show up on their page?
    0
    Mark Nov 13, 2009
    I added the plugin to my site and the posts display on the "static" home page. How do I get the content of those posts to show also?
    Author Box
    Articles Categories
    All Categories
    Quantcast