Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Make posts pulling from all categories except one WordPress


This blog page is pulling from a Page Template called full-width-blog.php. The left of the content is where the supposed general posts should appear. On the right is the sidebar.

How could you make the main left area pulling from Recent Articles and not from Testimonials?

See image for an example.

full-width-blog: [[LINK href=""]][[/LINK]]
sidebar.php: [[LINK href=""]][[/LINK]]

Here's the live example: [[LINK href=""]][[/LINK]]

Answers (1)


Luis Abarca answers:

Use [[LINK href=""]]query_posts[[/LINK]]


Wheres 2 is the ID of Testimonials

Luis Abarca comments:

in sidebar.php

query_posts("cat=$News,-2&showposts=".get_option("newspostlimit")); ?>