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

How to create category index table out of wordpress site or on other website?

I want to create a page on other part on my website (outside wordpress directory) where I can show list of posts from a specific category. I am looking for exact solution provided by @toscho here: ...
0
votes
0answers
20 views

Filtering by a certain array of categories

This is my first post. If it's misplaced or not correct in any other way, let me know I'm using a portfolio theme for a furniture company. They wanted to sort by product category (Chairs, Tables, ...
0
votes
0answers
19 views

Grouping parent categories into sections

I have the following post categories: Personal Care Jewelry Health & Fitness Automotive Gadgets Health & Fitness and have two sections: Men and Women, what I'm trying to do is to group the ...
0
votes
1answer
820 views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
0
votes
1answer
28 views

Using categories with pages

I am attempting to use categories for pages (not posts) as a way of filtering child pages. I am working towards having a 'Work' page that lists all its children, and each of these children will also ...
0
votes
2answers
1k views

Displaying list of subcategories and not parent category

I have a blog which has three top level categories. Each top level category has a list of sub categories. I am displaying only certain top level category posts in certain sections of the website. ...
0
votes
0answers
14 views

How to get sticky-posts on front-page working with category query

Im using the front-page.php to display some static content as well as my 5 latest posts in the category "Forsiden" (Frontpage). But the "sticky" post option, is ignored when categorising the posts on ...
0
votes
0answers
29 views

Display parent category with child categories and post count

I want show to specific parent category with child category like a tree see below example main parent catgory (50) child category (25) child category (15) child category (10) ...
2
votes
2answers
8k views

Getting Wordpress custom taxonomy/category?

Well, I'm using my own taxonomy for custom post type. It looks like this: register_taxonomy("our_gallery", array("gallery"), array("hierarchical" => true, "label" => "Types", "singular_label" ...
0
votes
2answers
72 views

Get posts from child categories with parent category ID

I have a plugin that shows posts from a chosen category. When child categories are chosen it works perfectly. However when i choose a parent category, it doesn't display any posts from the child ...
0
votes
1answer
30 views

Random post order into Category Pages

I have a Worpdress Blog and I would like to display post randomly into all the category pages. For example, when I go here http://www.iltrentinodeibambini.it/category/rubriche/lo-sai-che/ I want to ...
0
votes
1answer
44 views

Show next post in same category but start from the latest

I am showing the next post user should read as... <?php previous_post_link('%link', '<span>%title</span>', TRUE); ?> But, if there are 20 posts in a category and I am on the 7th ...
0
votes
1answer
815 views

Hide tag and category boxes from the post editor

I want to hide the tag and category boxes from the post editor, the theme I've just developed doesn't need them, thus I want to hide them. I am aware they could be hidden using the 'screen options' ...
0
votes
0answers
18 views

Add category to published custom post type from front-end

I'm developping a site where users can post a CPT that is basically a "service request". They post a draft from a front-end interface and the category is automatically set to a general "service ...
0
votes
0answers
29 views

Limit wp_list_categories to show categories of curently logged in user

I am trying to figure it out, how to force wp_list_categories, to show categories, which have posts assigned to them but for currently logged in user. Right now this function shows all (other user's ...
0
votes
1answer
12 views

Wordpress Categories in data-groups

I'm building a jQuery masonry type gallery in Wordpress, which works off categories. I'm 90% there but need to display the categories in a data-groups tag for it to work. ie: <div class="project" ...
1
vote
2answers
1k views

Fixing category count

Somehow my post counts are incorrect due to inserting rows via php. I have the following code to update the count, is it correct? global $wpdb; $result = mysql_query("SELECT term_id,term_taxonomy_id ...
0
votes
0answers
7 views

Hierarchical Category->Sub Category->Post View for Wordpress

I am really working hard to get a specific Post view in my Wordpress blog. Example Click http://theunlockr.com/roms/android-roms/ Then Click http://theunlockr.com/roms/android-roms/asus-roms/ I ...
0
votes
0answers
37 views

Dynamically load content based on Title and Category

After googling for about 2 days now without finding the proper answer - and I must commit that I'm not that well educated in php programming, I hope the community may provide me with the correct ...
0
votes
1answer
15 views

How to query all custom posts of a certain type and checking what category they have

Here's what I have: Custom Post type: Vendors Vendor categories: Wedding Party Catering I want to query all Vendors and then assign them a class based on the category they are in. The class ...
0
votes
1answer
28 views

Different styles for categories - need to edit a plugin

I'm using a plugin to add recent posts to home page and I am using different styles for the categories. I have the different styles working on the blog page but not on the posts output from the ...
0
votes
0answers
9 views

How can filter for category children?

Following my previously problem (can you see here Problem when I try to insert pagination For these problem, I needed a "category-blog.php" file and the filter and the navigation works. But How can ...
1
vote
1answer
1k views

Filter posts under multiple categories?

How do I filter the posts by multiple categories? For example, if some of my posts are categorized under just apples and some as just oranges and some both, how would I filter the results to show only ...
0
votes
1answer
498 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
0
votes
2answers
108 views

create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
0
votes
0answers
32 views

WP_Query by a category id and a custom post_type

I need to query all posts that belong to a given category (default, not custom) and a custom post type. As simple as that. The fact that it doesn't work, to me, is ridiculous. Unless I'm missing ...
0
votes
0answers
15 views

Get link to top-level parent category of post

I am trying to create a link to the top-level parent of a given post. Many of my posts are in sub-categories. I intend to place a 'root category' image that links to the root category. I have tried ...
0
votes
1answer
21 views

Unable to get all tags from specific categories

Page in question. I'm trying to use a WP_Query(); targeting specific categories and displaying all the tags used for posts within those categories. I noticed that some tags, like truffles aren't ...
0
votes
0answers
15 views

how to place page navigation on a specific page at the end of posts from specific category in thesis theme

In single page of wordpress site I am trying to show 10 posts from a specific category. At the end of the list of 10 posts I want to show page navigation so user can navigate to old posts of this ...
0
votes
1answer
48 views

Exclude categories For Custom post types

I have category 1, category 2, category 3, to category 7 and custom post types Gallery, Article, Front Row.. How can we restrict the admin to choose the category for custom post type Gallery to Cat ...
0
votes
3answers
65 views

If statement within PHP echo

I have the following to display my list of categories: $categories = get_categories( $args ); foreach ( $categories as $category ) { echo '<li><img src=""/><a href="' . ...
3
votes
1answer
630 views

WP_Query not looking at child category

Hi all I have a loop that shows a post on a single page and puts the first category name in the variable $cat: $cat = $category[0]->cat_name;?> Now after the post I have a link to show ...
4
votes
1answer
645 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
0
votes
1answer
18 views

Extract post category except one category

My posts are in two categories - one that defines their type eg. article or review and the other defines the topic - tablets,smartphones,smartwatches, etc. How can I get the current post's category ...
0
votes
0answers
25 views

Post Editor: display categories from current post type taxonomy only?

I have a custom post type and a related taxonomy which is called "Asset_Type": Which is perfect. However, if I create a post with the default Wp Post type, I still seem them as categories: I'd ...
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 ...
3
votes
3answers
311 views

Display all posts in category, with specific tag posts at top

Rephrase question I need to order posts inside the loop for my category car. What I need, if I visit the category page of car, I need all posts tagged BMW to display first, and then the other posts ...
1
vote
1answer
21 views

Can you pre-check wordpress categories?

I have created a custom taxonomy, which has 2 terms. I'd like to have both of these checked/selected by default when someone creates a new post. Is this possible? I've searched but found no solutions. ...
0
votes
1answer
42 views

How to make my category archive behave like a page

I don't want to use the category page as usual (list of posts). I would like to add more content: text, images, columns. Which is the best solution? Maybe redirect from a category page to a page? ...
0
votes
0answers
24 views

Linking custom post categories and post categories

I am using Posts 2 Posts which links between my posts and custom post types on a single page. For example I have a post about printing business cards and a coupon (custom post type) displayed in the ...
0
votes
0answers
28 views

category__and works, but why?

I've already found a solution for my question/query but I can't help feeling dirty; this works, but I don't know why, or if there is a better solution. I have a post that has several categories, for ...
0
votes
1answer
42 views

Add advertising box to a specific category page

I need to add some ( image or texts ) on top of one of my categories I thought about editing category.php, but it affects all the categories How can I insert various static data on each category? ...
0
votes
1answer
433 views

Make wp_dropdown_categories into a variable that persists until changed?

User selects category1 from wp_dropdown_categories, if user clicks on tag2 any point after, they only see posts from category1 with tag2, not all posts with tag2. Is there a way to store the chosen ...
0
votes
2answers
468 views

category page for custom post type

I know this question has been asked a thousand times, but feel like I've looked at every single article on this issue, and none of them have worked for me. All I want is for there to be a category ...
0
votes
1answer
587 views

Filter the post listing for a particular category from archive month list

I have the month year archive list in my sidebar. After clicking on any month, all posts on that month is listed. Now I how can I filter the post listing for a particular category? What I mean is ...
0
votes
0answers
14 views

Make a custom permalink for a specific category

I would like to make 1 post and check off 2 categories, say cat1 and cat2. I want cat1 to spit out my post like this : site.com/past-name Then cat2 to spit out the same post like this : ...
0
votes
0answers
18 views

How to add two-column rich-text category descriptions?

I want to have category descriptions that my website's editors can change without having to write HTML. And: Rich text and image insertion is needed as well. So I need to customize category ...
0
votes
2answers
80 views

How to get a list of term names of the custom post type im currently on in single.php

Ok so I have a custom post type of "Products" and a custom taxonomy of "Types". Now in the types taxonomy I have dozens of categories and sub categories assigned to custom post types. Custom Post ...
0
votes
1answer
3k views

Overriding default calendar to show posts from a category

I'm trying to modify the default WP calendar (get_calendar()) so that it shows posts from a specific category and then use that as a shortcode. Here's what I've done: Copied across the ...
0
votes
1answer
36 views

How to show “category” name?

I'm a novice and Ii'm trying to edit my theme. I need to show the category after text "Listed in:": //echo $todaydate; if(is_array($rec_dates) && strtolower(trim($is_recurring)) == ...