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
216 views

Any way to assign Post Categories and Tags to Links?

I would like to assign post categories and post tags to the links in my 'Links' section, and (ideally) remove the link categories feature since it would be redundant. Anyone know how to do this?
1
vote
1answer
165 views

Calendar Solution: Handling upcoming Dates with Posts?

I'm not sure I'm allowed to ask a question like this on this forum, however I'll try. My question is not yet about a technical problem but how my complete theme-architecture might be build to fit my ...
0
votes
2answers
17k views

How to get Category Id from Post Id ?

I need to get any post category id from the post id(Not for current) Post. How can i ? Thanks
0
votes
1answer
190 views

each user having category with their name and can add sub categories post in that category

I am looking for help or plugin for the following conditions of my site I am using wordpress 3.0+ version. my site is about School where students will get register and post their experience and ...
0
votes
2answers
235 views

Get all custom_post_type posts + blog posts from one category in a single query

Is there a way to query posts from multiple post_type's and filter the normal blog posts by a category? I am trying to display the 10 latest custom_post_type posts and blog posts on my homepage in a ...
0
votes
1answer
4k views

How to get post category title within the loop?

I'm stuck in a rather simple task: to get the category title for the current post, within the loop, to be used in the function (not to be automatically printed). Any ideas?
4
votes
4answers
2k views

Different number of posts in each category

I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and ...
1
vote
3answers
6k views

Add Category Taxonomy Support to Custom Post Type

I'm writing some code that makes extensive use of custom post types- and I'm looking for a means of programatically adding a category to a defined custom post type, and then accessing its category ID. ...
-1
votes
1answer
718 views

Display category tree of a post in search results

Do anyone know how to display a category tree of a post in the search result. Foe example: If a post is in level 3 category level 1-> level 2 -> level 3 where the level one is the parent one.
4
votes
2answers
577 views

Redirecting specific category to subdomain

I have a problem in following situation: I have 2 separate Wordpress 3.3.1 instances, main at domain.com and one of them (which consists of simple Q&A type site) is available from subdomain ...
1
vote
1answer
92 views

Exclude category from fucntion

QUESTION Hey guys, I have this function and I need to exclude 2 categories: 81 and 82. Can You help? :) CODE function has_related_same_cat_posts(){ global $post; $categories = ...
-1
votes
1answer
904 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.'"]'; ...
0
votes
1answer
175 views

If no posts in category display Form instead of not found

I have a couple of categories that don't contain any posts (yet). What I would like to do is have a form which takes users details for future posts. Am I right I thinking I simply edit the page ...
1
vote
1answer
502 views

How to make a Thumbnails Mosaic

I would like to make a mosaic with all the post thumbnails of a category and use it as the heading image on the category page. How do I go about achieving this? Where do I start? Any suggestion about ...
0
votes
1answer
376 views

Detect category choice for posts with multiple categories

On my single template, I wish to show other posts in that category. Its essential that I use the route they chose, i.e. if they clicked Category 1, then Post A, if Post A is also Categorised as ...
0
votes
2answers
1k views

Exclude category from query

PROBLEM Hey everyone I have the wp loop to display posts, but I need to exclude category 81. I tried: query_posts('cat=-81'); ?> before the loop but the pagenavi is broken and it doesn't work ...
0
votes
1answer
638 views

how to display page title only for child category pages

I apologize if this is a dumb question, but I am just learning PHP and Wordpress. It's probably very simple. I have a site where the top-level nav is all parent categories, with the child categories ...
0
votes
1answer
1k views

add an image field to wordpress category

i am trying to add an image field to the wp_term table in the database, I'll call it icon. I want that filed to contain a URL to an image that will be the thumb for the category. I have already added ...
3
votes
3answers
934 views

How to control which category will be picked for the slug of a post?

I'm using the permalink structure "/%category%/%postname%/". What bothers me is that I have posts that belong to two categories. And of course, unfortunately, Wordpress always picks the wrong one for ...
0
votes
1answer
214 views

Subcategory is displayed before Parent Category

I'm current using the following code to echo the categories of my post : <?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?> So, for example, I have ...
2
votes
1answer
123 views

“Reversable” and “Re-useable” Subcategories (or other taxonomic structure)

Hope you can help a WP newbie :) It is my understanding (and please correct me if I'm wrong!) that I cannot use the same subcategory slug in multiple parent categories, i.e. this structure is ...
7
votes
4answers
689 views

Allow users to create their own feed from selected categories?

I've been wandering around on the web for the last couple of hours wondering if there's a way to allow users to build their own RSS feed by selecting categories within WordPress, that could then be ...
0
votes
1answer
663 views

How to Check if a Child Category is Being Queried

I need to change the number of posts queried for specific categories 'Recipes' or 'Product Reviews'. The below code works great for this, I have it in functions.php: function ...
0
votes
1answer
170 views

Remove the number of posts displayed in wp_list_categories()

When I use wp_list_categories(), it results in the number of posts in a category being shown, how do I hide the number? For example: I have xyz category, it has 3 posts, the result will be: xyz(3)
0
votes
1answer
99 views

wp_insert_link not working

Im using this code to insert links into my blog: $linkdata = array( 'link_name' => $title, 'link_url' => $url, 'link_catetory' => 3, // my cat ...
2
votes
2answers
11k views

Show posts of category in a page

I would like to be able to display all the posts in a certain category on a page so that all posts are on that one page and there is no pagination. If possible, I would also like to display a short ...
0
votes
5answers
3k views

Automatically assign posts by author to a specific category

Some of the authors in my blog must always add their posts to a specific category each time they post. Sometimes they forget this so therefore I'm wondering if there are any ways to automatically ...
0
votes
1answer
531 views

wp_list_categories with show_count, except for specific categories

I want to show post count for all child categories shown, but not for their parent categories. Or, since there are only 3 parent categories, this exclusion could be per category id. Is there a way ...
0
votes
2answers
689 views

Get Child category “name” of post

I have this piece of ode in a buy template. I like to know what to add to get the child name of the category the mais display category is sponsor. but in the sponsor category, there is : gold, ...
0
votes
1answer
864 views

I use same slug name for category and page

I added one slug and page with the same name and they worked fine, but when creating a second WP forced me to rename the page (being created after the category) with an additional "-2" how to clear ...
3
votes
2answers
5k 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 ...
0
votes
1answer
2k views

Shortcode to display all the post from a category in a page

I have 10 category, and when i select a category in the sidebar il list all the post from that category.... FINE, beautiful Now, i like a page, with some text and photos and then after that content, ...
4
votes
5answers
7k views

Wordpress and isotope filtering

Im trying to use Isotope(http://isotope.metafizzy.co/) to filter my Wordpress posts, http://i44.tinypic.com/fco55k.jpg this is how my site looks like, i would like to filter posts depending on a post ...
1
vote
2answers
420 views

Custom post type getting wrong categories and tags

Ok i have a custom post type on my blog called videos, where i only post a video. There's a sceen cap below On the right are the latest post from the custom post type, on the left is the video, ...
0
votes
1answer
43 views

Add 1 category more to If_in_category statement

Hey everyone, a simple question. Question I need to add one more category: Events in the if statement along with News which is stated in the code. How can I add it? Thank You very much :) Code ...
1
vote
4answers
5k views

Exclude the category from the WordPress loop

I have this code for the loop, and I need to exclude a category 4 from this loop. Any suggestions on how to achieve this? Code that starts the loop <?php if(have_posts()): ?> <ol ...
0
votes
1answer
88 views

Exclude the category in Wordpress

My question: This code retrieves the categories. I need to exclude the category number:81. Is there an easy way to exclude it in this code? <?php $cat_lists = retrieve_cat_data_sp( ...
1
vote
0answers
48 views

Local to testing server now the category gives a page not found? [closed]

With my locally created WP theme i used the wrong category for some posts, so i changed it to another one. Everything worked ok. But on my testing website it gives me a 404 page not found. i just ...
0
votes
1answer
497 views

wp_list_pages() not showing on posts

I have the following code showing up a sub-menu on my website (in my header.php file) that shows all well and good, however when I open up a post it dissapears: <div id="dep-menu"> <?php ...
0
votes
1answer
88 views

How to list post as buch of category, and all of them

I like my homepage not to list only one category, but to list all category, group by post. Here is the request : Cat 1 2 3 4 5 and the post will be : post 1 (cat=2) 2(cat=2) 3(cat=1) ...
0
votes
1answer
75 views

Getting categories to change appropriately when using $cat = ' ';

The code below is based on a couple of forum posts from a couple of places. To a certain extent, it works. The issue I am having is that it only shows "Activities", no matter what parent category I'm ...
1
vote
1answer
530 views

wp_parse_args & category parameter

Am trying to use this code: function wp_custom_archive($args = '') { global $wpdb, $wp_locale; $defaults = array( 'cat' => 6, //doing nothing 'format' ...
-1
votes
2answers
390 views

Moving Categories submenu to Media, but still opens Posts menu

I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories. I am displaying a sub-menu item ...
0
votes
1answer
119 views

How can assign posting to Subscriber to specific category?

I'd like to permit posting(writing) to "Subscriber"group to a specific category. How can I do it?
1
vote
2answers
230 views

Is having thousands of unique categories a concern?

I'm in the process of creating a lyrics website using WordPress. Each post consists of a song, and I figured for ease to make each category represent the song artist. With this in mind, the site will ...
0
votes
1answer
132 views

Get post related on category

it's a catalog website for different product. I need a function that will get the category of the selected product, and get all the product from that category Let see an example. A table, is in wood ...
1
vote
2answers
1k views

wp e-commerce group product by category [closed]

Sorry for my bad english. I have WP 3.3.1 & wp-e-commerce.3.8.7.6.2. On the products page (which use wpsc-products_page.php template) I have list of products. I want to group this products by ...
1
vote
1answer
194 views

Post specific text based on category displayed

So I'm working on a site and I need a news page that is slightly different. It is a post category but I want the text echoed at the top of the news category listing. <?php endif; ?> <?php /* ...
1
vote
5answers
11k 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 ...
3
votes
2answers
1k views

How do I create a way for users to assign categories to a post from the frontend?

Basic idea is for any post on the site, I'd like users to be able to assign a category for it by selecting from a set of checkboxes on the frontend. This would be a kind of crowd-sourced ...