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
3answers
780 views

Show posts on a page based on a category and tag(s)

I have been looking all over the internet for this, and have not yet found an answer I could use. Found out that I may can use something called query_posts or get_posts, but I have no idea how to use ...
0
votes
1answer
5k views

How to include category name/id in wp_query for retrieving “custom post type” from a particular category?

Here is the code I'm using right now. It fetches the posts from all the categories in the 'sp_events' post type. <?php $feat_art = new WP_Query(array('post_type' => 'sp_events','post_status' ...
2
votes
2answers
349 views

Display types of posts in edit.php instead of All, Published, Scheduled and Draft

By default, the post list (edit.php) in the admin panel displays a couple of options. It looks like this: All (10) | Published (8) | Scheduled (1) | Draft (1) I want to change this to display ...
0
votes
4answers
256 views

Can you have a single set of “canonical” categories shared by all blogs?

When a site gets to a certain scale, storing categories on a per-blog basis starts to get a little messy. Assuming someone would want all WPMU blogs to share a single set of categories, how might one ...
1
vote
1answer
876 views

Modify Wordpress SQL Query to pull from within a category

I am using a wordpress plugin called "kf most read" which stores a count of how many times a post was read, and lets you output a list of most read posts. This works well. The issue is, I am trying ...
0
votes
1answer
594 views

Why do I have stray bullet from <?php wp_list_categories>?

On this page, I have a stray bullet at the right of the side search jobs navigation? Why is this? It may that I am missing something simple. I just have been at for awhile. ...
2
votes
2answers
814 views

Using categories & “stickyness” together

I've got a custom query on my homepage showing all posts in a certain category. I need this query to respect sticky posts, but it seems from my research that category queries ignore stickyness. My ...
0
votes
1answer
1k views

List Child Categorie and hide the parent

Greetings! I'm trying to list child categories in a sidebar, but also hide the parent cat. I'm using this at the moment: <?php ...
0
votes
1answer
267 views

Which are the hooks run before/after when a category's deletion?

What are the actions that a plugin can hook on to for processing when the user deletes a category?
0
votes
1answer
2k views

query order by category

i have this line.. in sidebar.. <?php query_posts ( ( array('orderby' => 'rand', 'showposts' => 12)));?> i want to order by category not random.. so if i am in a post from category ...
0
votes
3answers
475 views

How can I create a permalink with two categories, with the order based on the parent category?

Basically, I'd like to create a category permalink like example.com/books/adventure without having to make adventure a child-category because it will apply to other categories as well. So the end ...
3
votes
1answer
4k views

Remove parent category from permalink? Basically only have the child category?

I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer ...
1
vote
1answer
1k views

Best and Cleanest way to remove /category/ from category permalinks? [duplicate]

Possible Duplicate: Remove parent category from permalink? Basically only have the child category? We've seen plugins to do this, and a lot of people with different code modifications. We ...
2
votes
1answer
1k views

Is there a way to use regular categories with custom post types?

Is there a way to use regular categories with custom post types? It seems like there is better functionality and options with regular categories (such as permalink options, etc.).
0
votes
1answer
815 views

Remove slug from Custom Category Permalink + dual-category permalinks

I'll try to make this as clear as possible. I'm am trying to figure out a few things to clean up the permalinks on a large website project. We're using custom post types and ~200+ custom categories ...
0
votes
1answer
1k views

echo category description in single.php

i asked this on SO but got no where. i will try asking here. this works fine in category.php <?php echo category_description(the_category_id()); ?> but it does not work in single.php, just ...
1
vote
4answers
4k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...
1
vote
2answers
880 views

Page navigation within a category

I would like to know why my page navigation within a particular category doesn't work. The code seems correct but I never see the pagination links. <?php $my_query = new ...
8
votes
1answer
2k views

Is there an easy way to make a meta box have the tabs like the Categories meta box has?

My question is pretty much summed up in the title. I'm dropping a meta box in the New Post / Edit Post admin page, and I want to be able to set it up with tabs like the Categories meta box has. I ...
0
votes
1answer
271 views

Displaying posts of given category

I'm facing a strange problem: <?php $loop = new WP_Query( array( 'post_type' => 'ff', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => 10 ) ); while ( ...
2
votes
1answer
1k views

Create terms when registering taxonomy?

I'm registering taxonomy in my functions.php file: register_taxonomy("our_gallery_types", array("gallery"), array("hierarchical" => true, "label" => "Categories", "singular_label" => ...
2
votes
2answers
171 views

How to control template resolution if both Author and Category filter in place?

The following url resolves to the category template: http://localhost/author/myusername/?category_name=somecategory I have a category-somecategory.php template and just a generic author.php template. ...
1
vote
2answers
2k views

Set menu active state for custom posttype and category, given custom taxonomy term

How to set the menu active state for a custom posttype and category, given a custom taxonomy term? I have a custom taxonomy: region, a custom posttype: business, and use the categories taxonomy. My ...
1
vote
3answers
2k views

How to create non-unique sub-category slugs?

What’s the best way to make Wordpress accept non-unique sub-category slugs? By default, Wordpress ensures that every ‘slug’ portion of permalink URLs is unique, and is very savvy about using this to ...
0
votes
1answer
2k views

Adding category dropdown list to theme options page

I am tyring to add a category drop down list to my theme options page. I am try it this way: <p> Select a style from the list <?php $amp_categories_obj = ...
0
votes
2answers
258 views

How to not treat categories as tags in feeds

Basically we're (ab)using Category to determine whether a post is a News post or a Blog post, and so it's not a category in the traditional sense to the outside world. I'd like the category to not be ...
1
vote
1answer
307 views

Sitewide category terms

I'm looking to implement standard category terms across a network of multisite blogs. The aim is: create a category on one blog (or the root blog), and it is created on all blogs each blog will ...
1
vote
1answer
361 views

redirecting from a general category page to another specific one

can anyone tell me what's the best way to redirect a general category page to a specific one? for example: categoryName1 -> subcategoryName1 -> subCategoryName2 ...
0
votes
1answer
151 views

Location Based Permalink

I'm having trouble creating a location based url for my site. Here is the url format I wanted: http://domain.com/topic/united-states/new-york-ny/brooklyn/5th%20Ave%20Gym/123 The topic is the custom ...
2
votes
1answer
833 views

show posts names and links in the sidebar list as categories child

i'm using this plugin to show an exapandable/collapsible widget-menu in my sidebar. http://wordpress.org/extend/plugins/folding-category-widget it works very well! the question, not directly ...
5
votes
4answers
1k views

What is a good robots.txt?

What is the "best" setup for robots.txt? I'm using the following permalink structure /%category%/%postname%/. My robots.txt currently looks like this (copied from somewhere a long time ago): ...
0
votes
3answers
576 views

How to setup a membership system in Wordpress?

I have been setting up a wordpress for a business memberships, where the business sign up and list their company information to our site. Once they become a member their company listing and what they ...
2
votes
1answer
8k views

Getting Wordpress custom taxonomy/category?

Well, I'm using my own taxonomy for custom post type. It looks like this: register_taxonomy("our_gallery", array("gallery"), array("hierarchical" => true, "label" => "Types", "singular_label" ...
0
votes
1answer
820 views

How to automatically generate custom menu item from categories?

I would like to display all my category items under a single parent but I failed to do so now I'm creating a new menu link for each category and dragging it into place in the custom menu screen. Is ...
9
votes
7answers
23k views

Can I set a default featured image for a category?

I'm setting up a site with a theme that takes advantage of the "featured image" feature of WordPress. Since my end users are not the most tech saavy in the world, I'd like to set things up so that the ...
1
vote
1answer
166 views

Making the category & tag Description textarea bigger

Which files do i edit to make the textarea for tag & cat description bigger? Or maybe there's an easier way through functions.php to save having to do it every-time i update wp? Thanks
0
votes
2answers
427 views

Related Tags not in category

I'm using this piece of code to show related posts based on the tag of the post you are viewing. I'd like to modify is a little to exclude the related posts from the loop if they are in the same ...
2
votes
8answers
9k views

Filter get_categories() for taxonomy term in WordPress

I want to show a category only if a (custom) post is in that category AND region = $name for that post. So, e.g. I have a custom post (type "business") named "Mamma Mia" in child-category: ...
0
votes
2answers
1k views

Display posts separated by Category in Author's page

I created an author's page using: <?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?> ...
1
vote
2answers
2k views

How can I make all subcategories use the template of its category parent?

(Satisfying minimum text requirement)
0
votes
2answers
248 views

WordPress Category Question

I cannot figure out how to use the wp_list_categories function to do what I need it to: <?php if(is_page('realisations')) { ?> <ul id="subpage"> <li><strong>Les ...
2
votes
1answer
608 views

how do I filter single_cat_title to remove all instances of a particlular word

I have certain names in my category title (that need to stay there for other reasons). I am displaying all category titles with the blog name prefixed, but on categories that already have this name I ...
3
votes
1answer
672 views

How to set up sub-categories for author pages?

I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc). I know that ...
0
votes
3answers
4k views

Use a wordpress page to display a certain category

I'm trying to set up a portfolio page on my wordpress website, and I would like the following construct: /blog/ where I blog all kinds of things, including portfolio entries /portfolio/ where I show ...
1
vote
2answers
2k views

Query posts by category AND custom field, then ORDERBY another custom field - help!

OK I need to query posts using the following criteria: category_name=office, meta_key=featured_post, meta_value=Yes and order these results using a second custom field which has a numerical value ...
4
votes
2answers
2k views

Filtering categories in the permalink structure

Using /%category%/%postname%/ for the permalink I get a URL string of all the categories that the specific post is included in. I would like the categories in the url to be filtered down to only one ...
0
votes
3answers
2k views

Having problems with paging

My category.php lists articles on the first page, and on the bottom I have a pager. When I click page 2, the index.php page is loaded and the url looks like this: http:// ...
0
votes
2answers
410 views

how do I use the walker class to display categories in their correct heirarchy?

One would think that returning categories using wordpress functions would automatically display them in their heirarchy? Ive noticed that categories dont necessarily do this, so I am trying to find a ...
0
votes
3answers
2k views

Have multiple category queries from the URL been fixed yet?

Is it now possible to query multiple categories from the URL? http://www.mywpsite.com/?cat=1+7 ? I think this has worked for tags for some time. If not, is there another way to achieve this?
1
vote
2answers
2k views

Select category in custom query

I'm sure this question is asked alot, but I cannot figure it out, since all the different ways to query posts are confusing me.. Here is my current code. How can I tell the code to only get posts ...