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

latest post showing up twice on posts page

Can someone please help me alter my coding to eliminate my problem? I am using this line before the loop: <?php query_posts('cat=3&showposts='.get_option('posts_per_page')); ?> for ...
1
vote
2answers
1k views

Category template to show different categories based on parent

Ok so i've got categories like setup like this. Products Category A Sub Category 1 Sub Category 2 Category B Category C What i need is to have the Products category page ...
0
votes
3answers
176 views

How do I include the category next to the title of a post?

On the main page in WordPress all I want is the category to come before the title of the article posted. So for example if it's a Review, I'd like the article name to be Review: Super 8. Okay so if ...
1
vote
1answer
480 views

Display Only One Category

On my WordPress theme, it displays all of the categories a post is in on the homepage for the post block, I only want to display one category even if a post is under multiple categories. i.e. ...
0
votes
1answer
229 views

Give Children Unique ID's

Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but :nth-child isn't supported by ...
2
votes
1answer
69 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
2
votes
1answer
6k views

How can I limit WordPress editor roles to a specific category?

We're trying to use WordPress as a light CMS system and we need to be able to section off parts of WordPress so that editors for one product aren't able to edit other products. Seems like out of the ...
-1
votes
1answer
980 views

How to control order when displaying child categories

I'm working on displaying a series of child categories in the meta of each post. For instance, after the post appears an array, depending on category selection, describing the post content: Color: ...
1
vote
1answer
372 views

get_post_meta not working on category.php

I'm referencing an attached image in my header.php page which is displayed as a full screen background on my posts: global $wp_query; $page_id = $wp_query->get_queried_object_id(); ...
0
votes
3answers
310 views

Category related -> excerpt, title and thumb in sidebar on article page

I've done some research and tried different solutions but this snippet gets me the actual post content in sidebar, when on a single/article page, from the category the post belogs to. But I need to ...
0
votes
1answer
302 views

Relative number of post in category

For a post x in a category y, how can the following output be achieved: Post x is the nth out of m posts in the category y. where m is the total number of posts in the category, and n is the ...
2
votes
1answer
145 views

Force category-slug.php to show page, even if it doesn't exist

I have a custom query in category-slug.php, which works fine unless the category doesn't have that number of pages itself. If the category only has 5 pages of posts, but the query I put in has 7, ...
1
vote
1answer
2k views

Display WordPress Parent Categories Only?

I have the following code on a custom wordpress page: <?php $cat_array = array(); $args=array( 'post_type' => 'post', 'post_status' => 'publish', ...
1
vote
1answer
112 views

How do I add a function on a specific post category?

I am using theme Twenty Eleven and am trying to add a vote up script in the content.php which only displays on a certain category.
0
votes
2answers
161 views

Change div background acording to the selected category

I'm coding a graphic menu that consist in five divs with a background each. On mouseover the background changes and the child div disappears. On click, each one works like a link to the correspondent ...
0
votes
1answer
230 views

Can't assign another category other than Uncategorized int he following front end post submission form?

I'm using this front end post submission form that I took from this question: <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; $category = ...
0
votes
1answer
397 views

Load the last post of a category

I would like to load the last post when I go to the selected category. For example if I go to http://site.com/category it loads http://site.com/category/35/this-is-the-last-post Does exist some ...
0
votes
2answers
963 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
-1
votes
2answers
115 views

What defines a post as portfolio page content?

I have three types of content, Posts which I have defined as Blog and categorise accordingly, Slider Images defined by a specfic category, and Pages. I want to have content as portfolio on a profolio ...
6
votes
3answers
9k views

How do you add categories to custom post types in WordPress?

I'd like to be able to have categories of a custom post type, how do you set this up? update I want to keep the default categories for regular blog posts, but a separate set of categories just CPT. ...
1
vote
1answer
2k views

Link Attachment Image to Category

How do you link an attachment image to its category? function wp_attachment_image($size = thumb) { if($images = get_children(array( 'post_parent' => get_the_ID(), ...
3
votes
1answer
867 views

How can you make permalink work for custom post type and taxonomy?

I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following: ...
-1
votes
1answer
385 views

How can I get on the same row two post of different categories?

Let me explain better, I have two categories and I want to show a page with two columns one for each category, after this I like to show in the same row each post of each category on each column, just ...
0
votes
2answers
142 views

Restricting certain blog posts by date?

I'm building my friends blog and he asked me a rather odd request. He wants the latest five blog posts to be visible to non-registered members but not to others. I'm using s2Member for membership ...
0
votes
1answer
2k views

how to call the category of the post

I jus want to create a gallery which shows either all or certain number of posts in that category under each post and i found a working code <?php $displayposts = new WP_Query(); //get posts ...
0
votes
1answer
52 views

Need help deciding on a taxonomy

I'm working on a project that mimics a product Catalog, all products belong to a Collection and they all have a Type and Attributes. For instance, a shirt belongs to the Apparel Collection, so I ...
12
votes
5answers
5k views

Can I add a Category Metabox to attachment?

I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so: add_action('init', 'reg_tax'); function reg_tax() { ...
0
votes
2answers
134 views

Categorie parents and childs displayed

I'm trying to create a menu directly hard-coded, basically I need to display the parent category and below its child categories, however I have to do this several times meaning something like this: ...
1
vote
1answer
702 views

hide specific categories from showing

I'm trying to hide specific categories from showing up on a portfolio home page. I was told that this was the concerned line of code on the php template file <span ...
0
votes
2answers
326 views

How do I use just one category' posts on my home page?

I have mainly protected categories, but I have one open category, how can I set it up so I load only the open catgeory posts to show on my home page
0
votes
1answer
89 views

How do I hide posts in a category from all listings but still allow the posts to be viewed?

Let's say I have a category named "Hidden". I'd like to prevent all posts in "Hidden" from appearing within The Loop on the main blog listing page. Also, I'd like to prevent those posts from ...
0
votes
2answers
98 views

Are tags different than categories?

I'm having a really weird issue where certain tags and categories seem to be linked: "Linux" in Tags: "Linux" in Categories: If I try to lowercase the Linux tag (I prefer tags to be in ...
0
votes
1answer
286 views

How do I list all child categories that apply to current post?

On my site, I am working on categorizing pictures based on what is in them and am having trouble listing the categories that apply to the post. For instance: A post might include a picture of an ice ...
2
votes
2answers
2k views

Sticky post for each category on category pages

I think the title is self explanitory. I would like to show category.php a post I set as sticky post for that category. Do you know a good plugin or a code to do this? Thanks, Sarit
1
vote
6answers
1k views

Append HTML to an LI of wp_list_categories

Im currently using <?php wp_list_categories('child_of=4&title_li='); ?> to echo out a list of my categories. I'm wondering how I could append some html (specifically an » to the end ...
0
votes
2answers
2k views

add text to the top of category page

I want to add the text to top of each category page. I am using a plugin http://wordpress.org/extend/plugins/categorycustomfields/ . With the help of this plugin, i am able to add extra field to my ...
1
vote
2answers
894 views

Broken category pagination

For some reason the below code works until I hit the third page and gives 404. Is it possible to fix it without using any plugins? <?php $temp = $wp_query; $wp_query = null; $wp_query ...
1
vote
1answer
98 views

Woo Framework: woo_cat_featured not populating

In framework settings: $options[ 'featured_cat' ] = array( "name" => "Featured Category", "desc" => "Featured Posts will display in the main rotator on the homepage.", ...
2
votes
2answers
2k views

How to remove categories filter from wordpress admin?

I removed the categories column from "All posts" page by applying this code. add_filter("manage_edit-post_columns", "my_post_edit_columns"); function my_post_edit_columns($columns){ ...
-1
votes
1answer
2k views

Make a Custom template for a specific category in wordpress

I am having issue with a custom category template. I want to create a new template for my specific category "VIDEOS" so that all posts under this category show in new style. Basically, i want to show ...
0
votes
1answer
393 views

category filter doesn't work

I am assuming because I don't have a category template it is defaulting to the archive template, would that affect the outcome. it seems to output all the posts that have categories: ...
0
votes
1answer
89 views

Problems with my conditionals in single.php by category

In my single.php file I would like to have a conditional that checks for the category of the post and display certain images and layout. Here is what I have: http://pastebin.com/dy6TE1yr
1
vote
1answer
571 views

Problem displaying one post from each category

i had been banging my head for almost a day but could not resolve it. i need to show one post from 4 xx categories here is my code <?php $cat_args = array( ...
0
votes
1answer
841 views

Functions.php: Exclude Category from “Blog”

So it's quite obvious to how exclude certain categories from within a template, but I don't want to have to modify 4 templates so that they ignore a certain category. Is there a way that I can ...
0
votes
2answers
222 views

Is there an easy way to get a list of Category IDs?

I'm working with a couple of plugins that ask for a list of category IDs to include/exclude. When I go to the categories section and select "Edit" I don't see an ID field listed on the page, though I ...
0
votes
1answer
91 views

Check for parent category

Code below is designed for testing to see if current post is in a category that is an ancestor (child/grandchild/greatgrandchild etc) of cat number 526 $cats = wp_get_post_categories(); if ...
0
votes
1answer
127 views

How can I add a page that shows posts from a single category?

Is it possible to add a page that shows posts for a certain category? Do I need to create a page and have it redirect to http://site.com/category/myposts?
0
votes
1answer
91 views

Unable to browser posts in categories

Hoping someone can help with this. Clicking on a category either returns a "not found" error, or opens a random post in the category. Verified that the issue is independent of a plugin or theme. ...
0
votes
2answers
641 views

Recent posts per category loop?

I need a loop/plugin/widget to display latest posts from the category the user is browsing and at the same time if he visits the home page, it should show posts from all categories (not a specific ...
0
votes
1answer
61 views

Wordpress “Categories to tag converter” not working on imported Blogger posts

I just imported a blog from blogger to wordpress recently. The blog consisted of about 3500 tags in total. On importing them into wordpress, they were converted to categories for some reason. I have ...