Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

learn more… | top users | synonyms (1)

1
vote
1answer
1k views

Wrap Post count in a span

I'm using this code: $args = array( 'hide_empty' => FALSE, 'title_li'=> __( '' ), 'show_count'=> 1, ); wp_list_categories($args); How ...
1
vote
2answers
4k views

How to search for categories and/or tags?

I have a search function on my blog. If I enter a value, say 'fruits' in the search box and it doesn't match in any of the posts but it is the name of a category in the blog then I want the posts that ...
0
votes
2answers
4k views

How to get child category list post in one template?

Here is what I want to have My category Structure in WP admin Cat Parent -Cat Child 1 -Cat Child 2 -Cat Child 3 -Cat Child 1 This what I want to have in one template: It show the list of ...
1
vote
2answers
354 views

Why would in_category only return one post in a specific category?

So... what I'm trying to do is simple - get the post content for all posts, but only in a given category. Simple - filter the loop using in_category. So I did this (this is actually a stripped version ...
0
votes
1answer
1k views

Display all posts from selected category

This is going to be tough to explain. I have created a custom theme and have a file called: categories.php, in this file i have: <?php $args = array('hide_empty' => FALSE); ...
0
votes
2answers
3k views

Show list of categories even if they have no posts

Is there a way to show a list of all categories available even if there are no posts associated with them. So if there is a post in that category then it echos a link and if not it just echos out the ...
0
votes
1answer
466 views

Count the posts number for every category

I'd like to count the number of posts created for every category, so: 12 Works (12 posts in works category) 36 Pictures (36 posts in pictures category) 17 Furnitures (17 posts in furnitures category) ...
0
votes
1answer
3k views

Posts URL structure like site.com/category/the-post-title

I'm new with wordpress and I would like to understand better if it's possible to create pages with an url based on the category and then the post title, so: something like ...
1
vote
1answer
329 views

Wordpress Post # of # filtered by category slug

I want to show post #4/100 at the top for each post for which I'm using following code function updateNumbers() { /* numbering the published posts: preparation: create an array with the ID in ...
0
votes
1answer
3k views

Category page showing posts from all categories

I am trying to set up a category archive (editing category.php) that displays a list of posts from one single category. If I left the twentyten default code (get_template_part( 'loop', 'category' ...
0
votes
2answers
632 views

Recent posts per category loop?

I need a loop/plugin/widget to display latest posts from the category the user is browsing and at the same time if he visits the home page, it should show posts from all categories (not a specific ...
0
votes
1answer
189 views

Displaying Custom Posts

I came across a strange problem while working on my dev environment for a site we're making. We have custom post types, so I'm not sure if that's the reason why it's not working correctly. However, I ...
6
votes
3answers
8k views

How do you add categories to custom post types in WordPress?

I'd like to be able to have categories of a custom post type, how do you set this up? update I want to keep the default categories for regular blog posts, but a separate set of categories just CPT. ...
2
votes
1answer
6k views

How can I limit WordPress editor roles to a specific category?

We're trying to use WordPress as a light CMS system and we need to be able to section off parts of WordPress so that editors for one product aren't able to edit other products. Seems like out of the ...
0
votes
2answers
2k views

WP E-Commerce WPEC 3.8 Sort Categories

I'm running Wordpress 3.1, with the WP E-commerce plugin (3.8.2) with Gold Cart 2.9.1. I posted this question a while back on the getshopped.org forum, with no solution unfortunately... I have a list ...
0
votes
2answers
3k views

Why Pagination is not working on Category.php

There are two different category "Life Sciences" and "General Lab" and there are sub-categorical product on "Life Sciences". Now "General Lab" category want to fetch all the sub-category and products ...
0
votes
5answers
238 views

Wordpress for Podcast Network

Is there a theme or some hack of the categories system that I can use to create a site for a podcast network? I want it similar to This Week in Tech in that all the podcasts will appear on the front ...
1
vote
1answer
732 views

functions.php conditional tag - only show in single.php?

//Geo Map add_action( 'woo_post_inside_after', 'my_geo_mashup' ); function my_geo_mashup() { global $post; if ( in_category('listings') ) { echo GeoMashup::map(); } } Works to ...
1
vote
2answers
530 views

Bulk category update is not updating

I am using wordpress 3.1. and I have to reorganize categorize my posts. For this purpose, I am willing to remove some categories. Therefore, after login to admin section of my blog, I go to post > ...
0
votes
1answer
284 views

How do I list all child categories that apply to current post?

On my site, I am working on categorizing pictures based on what is in them and am having trouble listing the categories that apply to the post. For instance: A post might include a picture of an ice ...
1
vote
2answers
1k views

Filter Home Page Posts in Buddypress [closed]

I would like to remove blog posts from the home page if they belong to a certain category. How can I go about this in Buddypress (preferably without a plugin)?
1
vote
1answer
2k views

Does “show_option_all” in wp_list_categories do anything?

So I have this code: <?php wp_list_categories(array( 'show_option_all' => 'All Categories', 'orderby' => 'ID', 'order' ...
0
votes
1answer
345 views

Category Icon on custom post type

I am using custom post types "listings" and I have a category called "type" and 3 sub cats, "available", "pending", "sold". I want to display an image/icon on each post in the loop (not the ...
0
votes
1answer
2k views

How to let users choose posts order in categories?

Hi to all I'm running a wordpress based website and I need to let the users choose how to show the posts inside categories pages. I would like to have a button inside a category page that can be ...
1
vote
2answers
193 views

Do I have to use categories?

I don't want my blog to use "categories" is there a way to turn them off? I can just not define any but then they are still listed as "uncategorized"
-5
votes
1answer
771 views

How to create an automatic MultiColoumn MegaMenu with Categories WordPress

I'm looking for an easy to use step by step guide on how to create a MultiColoumn menu for categories on wordpress. Actually in my blog I have 10/12 "main" categories and a couple of them have ...
1
vote
2answers
135 views

Warn me about 'uncategorized' posts

I always want new posts to have a category, but sometimes I forget. How can I make Wordpress warn me when I'm about something 'uncategorized'?
1
vote
1answer
3k views

How to create new category for custom post type?

I have create a custom post type named "jobs", and I want to create a set of category for that, ie like "PHP Jobs", "Python Jobs" etc. $args = array( 'labels' => $labels, 'public' => ...
0
votes
1answer
491 views

Grouping post-types in loop

When a user selects a specific category from a drop-down a list of multiple post types is displayed. I'd like to display the data in groups with the post-type title above in a heading. I'm unsure how ...
0
votes
2answers
85 views

Is there any better/faster code than this ? It shows the categories that an author had ever posted in

I have this query that shows the categories that a user had posted in. For example if I have 3 cats, name NEWS, MEDIA, PUBLICATIONS and the author had only posted in the first two, it will show NEWS ...
0
votes
2answers
414 views

Featured image for links and categories

Is there a ready plugin or solution for implementing Featured Image function to Categories and Links? At Pages and Posts I use the feature image as a background image, using the full size original ...
2
votes
2answers
781 views

Calling clean_term_cache() fails when called in the same plugin that creates terms, succeeds when called separately?

My plugin code is below. In the myPlugin_cleanup() function, I'm creating some categories and assigning term id 1 as the parent. Due to the known bug with creating categories via script (the ...
0
votes
1answer
240 views

Exclude the category of the current post

I have a simple site that shows one random post when you reach it. This post then has a link below it that, when clicked, will pull in another random post to that homepage, excluding all posts from ...
1
vote
2answers
472 views

Missing “category_children” option when dynamically creating categories via a plugin

I've isolated the source of a fatal error that's been occurring when a brand new site is previewed just after installing and activating the plugin I'm working on. The problem appears to be that the ...
3
votes
5answers
4k views

Hide Category from Blog?

I am using the Boldy theme from Site5 on a v3.1.2 site. The way this theme works, is that there is a portfolio, (which I am using as a case studies gallery) that pulls in posts from a specific ...
-1
votes
2answers
159 views

Why does my category page display “posted on…” when all I want it to do is display categories?

Refer to: http://blog.studentlife.uiowa.edu/svp/categories/ I just used a blank category template. What can I add to/change the code to make it so that it doesn't put in the category page like it's a ...
0
votes
1answer
173 views

Possible?! A contextually titled back link

The dilema: I have a category menu in sidebar.php that highlights the category one is in. I need to keep that highlight ON when one dives into a post of that category. The blogs posts are usually ...
1
vote
2answers
3k views

Multiple Domain Names - One WP Install (non-Multisite) - Default Each Domain name to Category Archive

Use case is somewhat simple - here goes: Five people share a single wordpress install - not multi-user Each person blogs and puts their posts in a their own unique category Each person has their ...
0
votes
1answer
57 views

Structure with category setting

OK, it's more a philosophic question that a programming question, but at the end it will have a huge impact on code... I have 5 main product, a,b,c,d,e those 5 products have options those products ...
1
vote
1answer
694 views

wordpress multisite… collect all posts on main blog - exclude category?

hey guys, I'm using the sitewide tags Multisite plugin on my wordpress setup. I'm collecting all blogposts of multiple subblogs on my mainblog. Any idea how I could manage to exclude a certain ...
0
votes
1answer
41 views

Is changing post from category in a large blog a good practice?

I was reading this question "Changing post category based on its post date" because I have some similar situation... Also the majority of "featured post" plugins on wordpress works by specifying a ...
2
votes
1answer
154 views

Add a specific category at a specific place to the menu that uses wp_list_pages

I have a main menu where I display pages. All the pages have associated sub-pages, however in the menu some of them are displayed by themselves without sub-pages and some are displayed with a submenu ...
5
votes
1answer
2k views

Force category choice before creating new post?

How can I force the user to first choose a category before continuing to the editor when creating a new post? I want to set some default content, but this is based on the category, so I need to know ...
0
votes
1answer
742 views

How do I list only children of a specific category in a drop-down?

Okay, I think I'm pretty close. I have the following going on: $cat_id = get_cat_id('library'); wp_dropdown_categories('hierarchical=1&parent=$cat_id'); However, it doesn't work with $cat_id ...
-1
votes
1answer
236 views

Build page base on category

I know how to hardcode that... but i like to have a plugin with shortcode that will make it for me... do you know any... If not, i will have to make it myself Have a page (blank) and build it base ...
0
votes
1answer
371 views

wp_dropdown_categories by date?

Is there any way to specify a time period for wp_dropdown_categories or wp_list_categories or something else...? I want to create a archive page, so that if your in the archive of 2010, you'll see ...
4
votes
2answers
2k views

Show Sticky Posts in Category Archive

I'd like to be able to show sticky posts at the top of category pages. I'm using archive.php for my category page. I'm using the code below to display sticky posts at the top of my category archive ...
2
votes
1answer
743 views

Allow contributors to add categories, but not delete

I used a plugin called "User Role Editor" to allow contributors to add categories, but it also lets them delete categories. Any suggestions?
0
votes
1answer
447 views

1 post per category on homepage and counting those posts

What I'm trying to do on my homepage is to pull the latest post from each of 6 categories but then I need the variable $counter to increase (+1) for each post so that I can style them properly. I've ...
1
vote
1answer
1k views

How to select posts from multiple categories and metavalues?

I need to select posts who are in multiple categories and have certain post metavalue. I can select multiple categories with query_posts( array( 'category__and' => array(1,2,3) ) ); But also I ...