Go to wordpress.com and go to the search page. check the box underneath the search input box for "forums" and type in "specify category" and run through the links until you find the relevant category tag for whatever version of WordPress you're using. One of these will invariably link to the codex explaining how the "the_category()" [or whichever particular loop call you need] will allow you to specify categories.This is just the default Latest posts widget that comes on most themes. The title (although it can be changed) of it is Recent News
I've messed with a bunch of stuff and did a few sample posts to try and get it right but its a no go so far.
Put it this way - I have general articles, and product reviews. I want the general articles to show in the "recent news" widget, but I do not want the product reviews to be visible in the same widget.
Thanks for your response abhorrent
Most of this stuff never changes. Unless he's using an extremely modified template or something it should all be standard wp stuff.There's no one exact answer - it depends on how your widget performs the category sort, what version of WordPress you're using and other stuff. I'm not being a smart ass with this answer, but without exposing your code it's going to be hard to get someone to do your homework on this.
About 8 lines below that you'll see this...$options = get_option('widget_recent_entries');
At the end of that lie add &cat=CATID (CATID being your category ID number).$r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0&post_status=publish");
Give that a try and let me know. It should work.$r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0&post_status=publish&cat=1");
They do try to stay consistent, but a fair amount of stuff changes version to version - I mentioned what I mentioned specifically because the other day I ran into the deprecation of one of the functions that I hadn't played with in a while and of course because 2.5 changed a lot of functions (someone maintains a list up to 2.3 here).Most of this stuff never changes. Unless he's using an extremely modified template or something it should all be standard wp stuff.
You're welcome and yes, You'd do it like the above in yellow to do more than one.I have fewer excludes than includes...
For multiples of either, how do I combine it?
&cat=-1,-3,-4
&cat=-1&cat=-2
Coming into WP not knowing anything about PHP, and being able to sift through and modify stuff is really helping me learn PHP gradually.
Thanks for all your help