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
2answers
293 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
1
vote
2answers
3k views

How to Change the Categories Order in the Admin Dashboard?

The order of categories on dashboard is alphabetical. Can I change it to custom order?
1
vote
2answers
12k views

How do I make the category template display full posts instead of partial posts?

I'm using Wordpress 3.0.1 with the Twenty Ten theme. I'm trying to change the way the posts in the Category view are displayed (i.e. by going to a url like mywebsite.com/category/mycategory). ...
0
votes
1answer
37 views

Retrieve all posts within tag OR category?

I've created a simple loop. And I have the following array for the query: $live_tags = array( 'tag' => 'live', 'showposts' => 5, 'post_type' => 'post', 'post_status' => ...
0
votes
1answer
311 views

what is the action hook code to supporting product category condition in single product page of woocommerce?

I want to display product attributes of 2 different product category with the help of conditional tags. But the condition was not working This is the condition that i given ...
0
votes
1answer
824 views

Adding Colorpicker Field To Category

I want to add a custom field to my categories where the user can color code them. I've added the field but I want to use built in colorpicker (either tinyMCE or the farbtastic) to give the user an ...
0
votes
1answer
240 views

How to make a relationship between books and authors?

I have a book category, but now I would like each book could be concatenated with the author profile page. And the tab for the author to show, in addition to text, the list of books he has written. ...
0
votes
2answers
1k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
0
votes
3answers
2k views

wp_nav_menu not appearing for a couple pages

I solved the problem with the page, the correct answer is ptriek's comment below. Well I'm having a bit of an odd problem here, wp_nav_menu works on all pages EXCEPT my category pages (probably my ...
0
votes
1answer
593 views

Equivalent to in_category() for subcategories

Wordpress provides conditionals like is_home() and is_category(). I'd like a function to tell me if the current context belongs to a category that is a subcategory (so, not a parent). I tried this, ...
0
votes
2answers
2k views

How to? Redirect /category/sci-fi/ to /category/scifi/?

I changed the wordpress category slug from "sci-fi" to "scifi" a few months back by accident. How can I redirect /category/sci-fi/ to /category/scifi/ so that /category/sci-fi/page/2/, ...
0
votes
3answers
1k 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 ...
-1
votes
2answers
441 views

How can I use AJAX with check-box categories?

How can I build a search filter (something like this) with WordPress? I have a custom post type name: "Locatii". It is a custom post type with categories. Ex: Cat 1 , Cat 2 ... and so on. How can ...
-1
votes
1answer
551 views

how to set category name for a post

how to set category name for post: this is my code ,this is not working ,why? $post_title = $vname; $categ='category name'; $post_content = '[newpage link="'.$videos.'"]'; ...
-1
votes
5answers
7k views

Get all categories and posts in those categories

I am looking for a solution that allows me to print the following: Cat 1 Cat 2 Cat 3 Post 1 Post 1 Post 1 Post 2 Post 2 Post 2 Post 3 Post ...
6
votes
2answers
4k views

Adding Categories to a WordPress Custom Post Type?

Is it possible to add categories to a Custom Post Type in WordPress?
5
votes
1answer
944 views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
2
votes
2answers
818 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 ...
1
vote
1answer
2k views

How to get permalinks with category base working with sub-categories

I ran into an issue with a site that needs the category base also included in the custom permalink structure. I know this is an issue and I have read many posts like this that gave me some insight... ...
4
votes
3answers
5k views

add_action hook for completely new post?

publish_post Runs when a post is published, or if it is edited and its status is "published". Action function arguments: post ID. -Plugin API Documentation I've added the publish_post ...
3
votes
4answers
26k views

How to Display Product specific to a category with WooCommerce Plugin?

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
3
votes
2answers
3k views

Get the first Category / Term only in single-custom-post.php

found close stuff but none that exactly answers my question.. so.. How do i get the only the first taxomony (category) of a custom post type... i can get all - no problem.. this what i am using to ...
1
vote
1answer
2k views

Create subdomains for tags and categories

I'd like to find a way to make subdomain addresses work for some of my important tags and categories. For instance foo.thesite.com would show content for thesite.com/category/foo. I've been trying to ...
8
votes
2answers
225 views

Individual rss feed entry length for categories?

I know how to retrieve the rss2 feed from a category in wp, namely adding /feed behind the category name. However when I do this, not all entries from that feed are included in the rss, this is ...
3
votes
1answer
5k views

Group WP_Query by category

OK, here's my setup: Custom post type called "issues" (for a magazine) Posts with custom meta field matching the post ID of the corresponding issue. When I'm on a single "issue" post page, I want to ...
2
votes
1answer
910 views

Only list categories that contain posts of a specific custom post type

I have three custom post types set up, articles, videos and photos. I am using standard categories for these post types, and sharing the categories across all post types. I am trying to create a nav ...
2
votes
1answer
160 views

How to create tabled index of posts in a certain category

I have a tech blog, what I want to do is to create an index page for articles in a certain category. For example, I want all the articles under the category "WordPress BasiX" to be arranged in an ...
2
votes
1answer
1k views

Plugin for changing a post's category based on it's post date?

Is there a plugin for Wordpress that will change a post's category based on how long that post has existed? I have seen other Wordpress plugins that use a library called "simple pie" to manage a ...
2
votes
2answers
2k views

Removing the number in a category slug

I have a category that ends with -2, and there's no way I can change it back to the plain word. I know there are problems with numeric slugs, but this is just a word. I also know that a common answer ...
1
vote
1answer
214 views

Display comments on a comment page without form

I'm using this to allow me to display my comments for posts on category pages: <?php $wp_query->is_single = true; comments_template(); $wp_query->is_single = false; ?> However I don't ...
1
vote
0answers
151 views

Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX

I need to be able to do the following: List all terms in a custom taxonomy (categories for custom post type) When a user clicks on a category, a listing of all posts in that category appears When a ...
1
vote
1answer
728 views

Plugin to set all Posts in a certain Category to a certain Post Format

I want to setup my WordPress so that whenever I create a post with the category "Tweet", my wordpress installation automatically changes the post format from post to aside. This will help me because I ...
1
vote
3answers
1k views

Category archive by year with permalink support /category/YYYY

I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year. I am hoping to build a ...
1
vote
2answers
1k views

Show recent posts in menu?

I'm building a menu which contains categories. Is there a way to make each menu option show a list of recent posts in that category when you hover over it?
1
vote
3answers
2k 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?
0
votes
1answer
1k views

Update term count using a callback function

With the wp_update_term_count_now, how can I use the update_count_callback to specify my own count. I need to include counts from another database that the current database category is able to ...
5
votes
1answer
529 views

Weird behaviour when adding terms/term_taxonomies programmatically

This certainly looks like a bug to me. I put together the following code for you to test it on a fresh install. Basically, the code will add two sub categories under the "uncategorized" to achieve ...
2
votes
1answer
106 views

get custom post type categories

From http://codex.wordpress.com: $categories = get_categories( $args ); $args = array( 'type' => 'post', 'child_of' => 0, 'parent' => ...
2
votes
2answers
724 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 ...
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
1answer
574 views

Add custom field to all posts in specific category

I want to bulk add a custom field (category) with value (photography) to all posts in a specific category (photography, with Category ID 5). I have used the code below to bulk add a custom field to ...
1
vote
1answer
322 views

How to show posts of an columnized different categories on the same line or row?

I use a custom query retrieving the two categories of the post type, each column show only 6 posts of the category, if was more use pagination. Than I like to do is to show each post on each column ...
1
vote
1answer
2k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
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
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 ...
1
vote
1answer
987 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 ...
0
votes
2answers
2k views

WooCommerce - Display product child categories from specific parent

I want to edit the following piece of code: <?php if ( (!$theretailer_theme_options['category_listing']) || ($theretailer_theme_options['category_listing'] == 0) ) { ?> <!-- Show ...
0
votes
2answers
1k views

Only show category to certain user levels without plugin

I'm building a site for some army guys to share photos, and one thing keeps stumping me. They have some photos that they'd like everyone who is signed up for the site to view, and others that just ...
0
votes
3answers
4k views

Exclude the category from the Wordpress loop

Question Hi everyone, I have this code for the loop, and I need to exclude a category 4 from this loop. Please help :) Code that starts the loop <?php if(have_posts()): ?> ...
0
votes
2answers
2k views

Displaying custom post type on category pages but not on blog listings

I think this is a fairly simple issue but I haven't got my head around it. Question: how do I get my custom posts to show only on the category archives, but not in the blog post listing page? ...