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

categories on attachment page

I am using this function to display categories specified to a post having gallery on the image attachment page. <p>CATEGORY: <?php the_category(', '); ?></p> The problem is that ...
0
votes
1answer
883 views

Display custom taxonomy attached to the post on post single page

I need to display the first custom taxonomy attached to the post on post single page. The custom taxonomy is similar to category attached to the posts. I need to display the first custom taxonomy with ...
0
votes
2answers
1k views

How do I stop the loop from repeating in my category template?

For some reason, when viewing a category, the posts are repeated - basically the whole loop repeats as many times as there are posts for that category. E.G.: If category_a has 3 posts, the page will ...
1
vote
1answer
86 views

How can i sort the categories by ID

Hi all I am newbie to wordpress I am using the wp_list_categories in the sidebar to display the categories . How can i display thus categories sort by id any one much appreciated... <?php ...
0
votes
2answers
9k views

How to get category id in single.php wordpress?

I need to get category id in single.php. I tried this: $cat_ID = get_query_var('cat'); It didn't work. What should I use instead?
4
votes
2answers
967 views

Category checkbox list tree changes when editing a post

I'm setting up the categories for my website and I have them like so: That's it, I have children of the same name but they are not interchangeable. If that bugs you just think that they have ...
0
votes
1answer
68 views

Modify functions.php to add a term 'uses-theme' set to theme name on post save

I need to automatically (without anything visible to the user in the UI and without user intervention) 'mark' a post in a sub-blog with the theme it was set to when the user posted. As I understand ...
0
votes
1answer
5k views

List all posts in a category with query_post() function

I'm a C programmer, konw little about PHP. I built a Blog with wordpress. Yestoday, I try to create the page www.abc.com/server, this page would list all posts which belong to server category. I ...
2
votes
2answers
112 views

Categories Template Assistance

I have found a tutorial online for creating a custom categories template for my archived posts within a particular category. This however is targetting a specific category ID (see below), is there ...
1
vote
1answer
30 views

Category location styling

http://www.milknhny.co.uk/DVine/?page_id=19 Please can someone help, i have added the categories, however it appears to be off line. I have tried to style this in a class but this screws up the whole ...
3
votes
1answer
147 views

Excluding posts from a category but only if they're not in multiple categories

I am looking to exclude a category in Wordpress. I am referring to the Wordpress Codex page on wp_query but I am having the following problem: I want to exclude posts from category 1, but if a post ...
0
votes
1answer
99 views

Site 'Categories': save an admin global setting with post metadata [closed]

In WPMU, we are using Site Categories (with Sitewide Tags), but for the life of me I can't see how the category of the sub-site (say, departments in a school) to which each blog belongs ends up in the ...
0
votes
1answer
399 views

Showing posts from 2 categories only on category.php

got myself in a bit of a pickle. I want to display posts on category.php from the categories 'latest news' and 'custom models' only. The other category, 'press releases' is shown in a separate column. ...
0
votes
2answers
164 views

How to display a single(current) post from a category

How do I get the code below to display just the current post that corresponds to the current URL and not all the post from the same category? Barakadam, It works but it brings all the posts in the ...
0
votes
1answer
109 views

WordPress 3.5 how to determine if user is on category listing or category edit screen?

I have a custom bit of code that I need to place on the category edit screen but not on the manage categories screen. Prior to WordPress 3.5, I was able to set a global $action variable to check for ...
1
vote
1answer
3k views

Show category children, one level

I am coding a pretty complex wordpress site (at least, taxonomically speaking), and i need to display a list of categories, children of a parent category, but I am struggling with getting the code to ...
1
vote
1answer
331 views

A single category with a specific permalink structure differing from the standard set for the rest of the site

I'm interested to know if there's a method to specify a specific link structure for only a single category. Currently I have my install set to /2012/12/post-title. However there is a single category ...
-1
votes
1answer
618 views

How to Organize my Photo Albums?

I want to organize my photo galleries. Photos > Personal > Professional For each sub page, I want to organize the photo albums with thumbnails. eg Personal > [thumbnails image with dimensions ...
5
votes
3answers
2k views

Category page doesn't use category.php, instead it redirects to homepage

I am currently modifying a theme. This theme doesn't had a category.php I needed a custom category page. So, I made one. It works on my local server, but when I uploaded it to a real server, this page ...
0
votes
2answers
2k views

multiple categories and breadcrumbs problem

Let me explain my problem. I have this post that uses multiple categories... and categories are being shown as breadcrumbs I there a way where I can display 1 specific tree? example I have game ...
1
vote
3answers
2k views

How do I get the category slug from wp_dropdown_categories

I am customizing a plugin. I needed it to show a list of the categories in hierarchy, which I got working with all of the functions of the plugin. I'm using wp_dropdown_categories, but I'd like to ...
1
vote
1answer
355 views

How can I hide tags on a child-category page, if that tag has not been used?

I have a section of my site where I'm using child-categories and tags to sort content. I'm have a tertiary navigation for the tags (templates/nav-tags.php): <nav class="side left"> <ul ...
0
votes
3answers
332 views

Get current category details the user is currently on in category.php

I want to get the current category details that the user is on in category.php. $category = get_the_category(); $slug = $category[0]->slug; // Why is this an array ? In most cases (where there ...
1
vote
1answer
1k views

Archive listing of posts by publish year (multiple years)

I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I'd like the following: ...
0
votes
1answer
671 views

Using multiple variables to assign categories to an array

I have php set up in a template file to check a form and see if 1 or more of 5 categories is selected. Based on which one is selected, I want the custom query I'm using to change in that the array for ...
1
vote
1answer
74 views

Count to how many categories a post belongs to

Is there a possibility to count to how many categories a post belongs to?
1
vote
2answers
456 views

Query Posts Exclude Entire Category

I am using the standard wordpress loop that looks like: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><?php the_title(); ?></h2> ...
13
votes
3answers
8k views

Only one category per post

How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each.
0
votes
1answer
37 views

Is the part “category” fixed to an URL to an archive or post?

I'm asked to set up a WordPress-based site, which is not intended to run as blog mainly but anyway we want to use the common article area sometimes. Now my client resents that the URL to an article or ...
0
votes
1answer
676 views

How to get Next/previous_post_link to go through articles in top parent category

I have a magazine format where a parent category is an issue, sub categories are the sections and the articles go into their respective sections. When viewing an article in a magazine, I would like to ...
0
votes
1answer
874 views

Custom post type specific category box

Is it possible to give a custom post type its own category box? If I use 'taxonomies' => array("category") or register_taxonomy_for_object_type('category', post_type); I get the desired box but ...
0
votes
1answer
155 views

How to add all categories into an array and extract the categories names and use it with a custom meta box

Basically I need to add custom meta boxes to pages and one of this options must be a list of categories from previous posts. I've managed to add the metaboxes and wrapped the categories in a array, ...
0
votes
1answer
539 views

Posts not listing out sub category in hierarchy

I have a magazine like post structure like so: Parent -> Sub category -> Article. The parent is the issue, the sub categories are the sections within the magazine like news and interviews etc ...
1
vote
1answer
115 views

How to get the id from the custom category?

How do i get the ID from the current custom taxonomy (category) the user is browsing? It uses a custom post type called "products" The categories are called "pcategories" With normal categories i ...
2
votes
1answer
1k views

Get tags specific category

I use this code to get tags from category. get all tags from category I want to display in the category page the specific tags. I have 8 categories and this is my code: <?php if ...
1
vote
1answer
109 views

Show Available Taxonomy List with Current Category

As you can see from the image, I am listing all categories and the cities (taxonomy list). What I want to do is : If Car classifieds is selected on cities list show the city name which has car ...
0
votes
1answer
166 views

Change rss title of individual feeds?

I want to set a custom title to indiviual rss feeds. Right now my post feed runs under a page called podcasts and the title of my rss feed then becomes <blog name> » podcasts because it is the ...
0
votes
1answer
1k views

creating categories programmatically

I'm creating a batch uploader and it would be good if I could also add categories with parent categories to my posts. I have the following code: $my_cat = array( 'cat_name' => ...
-1
votes
1answer
269 views

Sticky post for all pages and categories

I want to have a sticky post for all my pages and categories. The choice of "sticky post" in the edit post, didn't work. I found many pieces of code but I haven't the result that I want. I prefer to ...
-2
votes
1answer
371 views

Weird html output of single_cat_title - is not inside of the html element?

I'm displaying a single "featured" post at the top of the blog index page, and category pages. I'm using this conditional to display the category name of the category page if it is a category page, ...
0
votes
1answer
3k views

Get 1st parent category id from post

I have this structure for my categories: Issue 4 - News - Supporting our troops - Breaking news <?php $category = get_the_category(); $parent = ...
0
votes
1answer
309 views

Post to inherit custom category background image from parent

I have a custom field on a category where you can add an image. I have it as a background image to show on the category's archive page, like so: archives.php <body style="background:url('<?php ...
1
vote
0answers
425 views

Custom category URL rewriting

Here is the situation: let say I have a page called Press and that page has this url: www.example.com/press-center Now, let say that I have a category Press (slug is press) and subcategory called ...
0
votes
1answer
86 views

Exclude categories from homepage but not from sidebar

I would like to exclude categories from my homepage, but I want them to still display in the sidebar shown on the homepage, how can I do that? At the moment my code excludes from both the content ...
2
votes
4answers
2k views

How to show custom static content at top of each category page?

I want to display custom static content, essentially an image and a small description, at the top of each category page (different for each category and sub category), displayed above a list of titles ...
0
votes
2answers
687 views

Reversing the order of items in a category rss feed?

Is there an easy way to reverse the default item order of a category rss feed? Default: Last posted item first Wanted: First posted item first No plugins please, plain wp api function calls (such ...
3
votes
1answer
12k views

Get the children of the parent category

I'm trying to get all the children categories to display in this loop but I'm struggling with the code. This is what I have so far. <?php $args=array('orderby' => 'name', 'order' => 'ASC'); ...
0
votes
2answers
2k views

Pagination for a category

Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category. How do I do this? I cant seem to get it ...
0
votes
2answers
152 views

Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?

I want to use WordPress for a Company Site which is not a blog; that will have regular pages, such as "About Us", "our Products", "Our Services", etc. What is the best way to use WordPress for this ...
1
vote
1answer
443 views

category.php displays ALL posts instead of just those with the current category

I'm simply trying to display a list of categorised posts (with the custom post type of 'project') on the default category.php page. I can't get it to work! If I simply use the base theme category.php ...