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)

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
444 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 ...
2
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 ...
1
vote
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
797 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
846 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
1k 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
170 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
1k 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
248 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
306 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
356 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
144 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
768 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
565 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 ...
1
vote
1answer
7k 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
775 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
22k 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
164 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
419 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
246 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
573 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
645 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 ...
3
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
405 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 ...
1
vote
2answers
751 views

How to enable category hierarchy for links?

It looks that by default WordPress had hierarchy only for page/post categories and not for links categories. How can I enable that?
2
votes
1answer
176 views

Adding categories to all blogs at once

I am using WordPress mu 2.9.2 and have the same category structure on all my blogs. How do I add categories to all my blogs simultaneously? Is there a plugin that does this effectively?
1
vote
2answers
546 views

List Posts by Category for a Non-Zero, Non-NULL Custom Field Value?

(Moderators note: The original title was: "Need help identifying and looping through categories where posts have custom field set") I need to loop through my categories however I need to limit the ...
3
votes
1answer
801 views

Qtranslate displays empty categories with get_categories()

I am using qtranslate (Wordpress Plugin) on a website and I don't want to display categories that don't contain posts for a language. So when I do get_categories() (without qtranslate) the ...
1
vote
1answer
935 views

Custom sidebar category listing?

I am trying to make a custom Category Display on my side bar and for that I need some way to get both, the category list and the child list in 2 different arrays or something alike... First, I tried ...
1
vote
2answers
127 views

My Category is too big on the Menu what can i do?

Currently I have a small amount of 100 categories and my MENU goes crazy big and I would like to be able to do 2 things if possible: First category menu with limited amount categories sorted by hits ...
1
vote
3answers
1k views

anything like add_meta_box for categories?

I want to add few custom fields to categories. So I am looking for something like add_meta_box but for categories. Is there any WP function like that for categories?
2
votes
2answers
713 views

Wordpress: category page not for post's

Please at first let me explain my question. I use wordpress to create web sites for flash games, so I don't have certain page for post's. I add each game by post-new.php?post_type=game and u can see ...
0
votes
3answers
994 views

How to totally get rid of Category in my blog?

I prefer using tags and have no interest in using the categories. All my posts now are labeled with a category named "Uncategorized" and I want to turn them off! I want no more categories at all. How ...