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
3k views

How to hide a specific category posts in my monthly archive?

I am using the twenty eleven theme in my wordpress site. In posts, I have two categories. One is blogs and other is News. The monthly archive displays the posts of all categories while I want that ...
0
votes
1answer
245 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 ...
1
vote
1answer
792 views

Show add_meta_box by selecting a specific category

In my plugin I want to display an add_meta_box under the WYSISWYG in the new post page, which is no problem and works fine. But the box should only appear when a specific category (example: category ...
2
votes
1answer
152 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', ...
0
votes
2answers
164 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 ...
1
vote
1answer
117 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
1answer
246 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
2answers
1k 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
vote
2answers
669 views

How do you add a category to a post in code

We do a lot of post maintenance outside of the WordPress interface and as a result we need ways of categorising posts. Obviously Wordpress has categories (aka taxonomies) on posts and I plan on using ...
-1
votes
2answers
116 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 ...
0
votes
1answer
1k views

WP Category Meta plugin fix? [closed]

Does anyone know of a fix for WP Category Meta http://wordpress.org/extend/plugins/wp-category-meta/ or a similar solution to add images and meta data to categories? With the latest version of WP it ...
1
vote
1answer
997 views

Wordpress list posts from sub categories

has anyone an ideea how can you do something like this: So if the user is in a category, let's say Mainand this categories has some subcategories and I want to list them and also list the posts, ...
1
vote
2answers
1k views

How can I enable a TINYMCE rich text editor in the admin interface?

I'd like to add some text above my category archives, and I'd like to use the built-in Wordpress TinyMCE editor to do it. I've seen some plugins like black-studio-tinymce-widget which does a nice job ...
0
votes
2answers
404 views

WP SQL Categories Export and Import

I want to export and export only the Categories and their description using SQL. For now I've managed to retrieve them using this: SELECT wp_term_taxonomy.description, wp_terms.term_id, ...
3
votes
2answers
458 views

What could be causing my wp_query pagination to break?

I'm using categories and wp_query to create an "advanced search" feature on my website. It was working great until recently I noticed that the pagination was broken. The following 2 links should ...
0
votes
2answers
150 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 ...
-1
votes
1answer
453 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
1answer
304 views

How to make search for the custom post type?

i tried to figure this out but i can't until know i have new custom post type of questions and i have other post types also like job listing, resumes etc what i want here to make search for the ...
0
votes
1answer
55 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 ...
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
2answers
145 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: ...
4
votes
1answer
764 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
0
votes
2answers
329 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
1
vote
1answer
878 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 ...
-1
votes
2answers
656 views

Differentiate Between Parent & Child Categories

So I'm working with a non-wordpress theme called "Misty" and it uses this code to pull categories: <li class="sidebox"> <h3><?php _e('Categories','ml'); ?></h3> <ul ...
0
votes
1answer
90 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 ...
1
vote
1answer
370 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 ...
0
votes
2answers
4k views

How to get the category of the post and link it to the archive (of the category)

I am trying to design a button in the sidebar which is related to the post displayed. The button is basically a "other news in CAT1". i have this piece of code: <div id="pagine"> <?php ...
0
votes
2answers
100 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 ...
1
vote
1answer
559 views

How to prevent parent being choosen in wp_dropdown_categories

I have a grand-parent-category with several parent-category. Each groundchild means a specific method to process later. Parents should not be selected, it merely means to group the children together. ...
1
vote
1answer
316 views

List Sub-Categories of a Parent Category

I need to be able to list categories that are the sub-category of a specific category that is a sub-category of a primary category. So something like this: Print Categories where ParentCategory = ...
0
votes
2answers
708 views

Custom Post Type, Two categories, Two columns with Pagination

I searching a lot to found a way solves that and no luck at least. Sorry for my unpulish english, I do my best explaining my issue. I have a Custom Post Type called 'Events' this have two categories ...
1
vote
2answers
718 views

Are Category or Tag Archive Pages Possible?

Currently /category and /tag 404 if you hit them directly. Is it possible to create a theme template to handle what would display on it? Mark Jaquith - ...
1
vote
1answer
99 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
3k 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 ...
1
vote
2answers
848 views

Open subcategories in submenu on click in primary menu

I am figuring out a way if we can manage the menu in such a way that when I click on the menu item in the first menu, the sub categories or links that i choose should be displayed in the secondary ...
0
votes
1answer
472 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
92 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
3
votes
1answer
6k 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 ...
1
vote
1answer
649 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
941 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
195 views

Assign a list of categories with a parent category

I imported hundreds of locations and other categories. Now I have a list of locations in categories to which I would like to assign the "Location" category as its parent. I have tried sql but the ...
0
votes
1answer
1k views

list all child categories that apply to current post even if those cats are empty?

list all child categories that apply to current post even if those cats are empty? everything I tried just shows "post not found" - Have alphabetical listing and trying to create A B C D ...
0
votes
1answer
98 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
3answers
318 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
2answers
2k views

Sub category templates

I've inherited a Wordpress site that my company built before I started working here. I would go and ask this question of the guy who built it, but he has now left the company. My query relates to ...
0
votes
1answer
135 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
2answers
2k views

Custom post type archive category page results in 404

I've created a custom post type: register_post_type('campaign', array( 'labels' => array( 'name' => __("Campaigns"), 'singular_name' => __("Campaign"), ), ...