Categories: Tips & Tricks

A simple way to query posts

Here is a simple way to call query_posts with an array of options. For all options you my use visit: WordPress Codex.

<?php $my_query = array('showposts' => 4, 'post__not_in' => $do_not_duplicate); ?>

    <?php query_posts($my_query); ?>
Web Master

Hi, I am Miguel, I bought this site in 2009. So I now run or manage the site. Please visit my new website or follow me on twitter @W3i.

Recent Posts

Bloggers: Are You Procrastinating Right Now When You Should Be Working? This Article Will Get You Back To It

Procrastination is in many ways the blogger's worst enemy. You haven't uploaded a new post…

3 hours ago

5 Reasons You Should Look Into Your Graphic Designer’s Reputation Before Hiring

There are several reasons why you might turn to a graphic designer for help with…

15 hours ago

10 SEO Rules for Designers

SEO i.e. Search Engine Optimization is a very vital component of every website. Basically, as…

1 day ago

Content Marketing: 5 Tools to Help Drive Your Instant Results

The post discusses five essential tools for content curators: Scoop.it, Pinterest, Zemanta, Storify, and List.ly.…

2 days ago

Why Having Your Site Built In WordPress Is Essential For SEO

WordPress is a highly popular open source content management system that is not only best…

2 days ago

What to Consider When Choosing a WordPress Theme for Your Business

If you've started looking for themes for your business site, you will understand that there…

3 days ago