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

Separate custom categories from default category

I created a custom post type named as 'notice'. For both categories I assigned taxonomy like - function register_notice(){ $args = array( 'labels' => array( ...
2
votes
1answer
241 views

Sort post's categories by ID

I have a blog in which several post's categories have to be outputted first before other categories. Those categories have lower ID compared to other categories. I am using get_the_category_list but ...
7
votes
2answers
422 views

Get rid of Wordpress category, tag and author archives?

I have searched the net with no success on what should be an easy thing. I have a highly customized blog with pages, sub pages and posts. While I rely heavily on the use of categories and tags I ...
0
votes
1answer
378 views

Custom Post Type order Title ASC

I´d like to display all car manufacturer in order by title (e.g. "Merecedes") and order from lowest to highest values (e.g. "A-Class") "ASC", too. It should looks like a glossary. Page: Cars A ... ...
0
votes
1answer
377 views

How to correctly display category's slug as a class?

I want to display category's slug as a class. I try to code and put this into functions.php add_filter('the_category', 'my_custom_get_the_category_list'); function ...
2
votes
3answers
1k views

Creating archive pages for children categories

Example: video cat id = 4 video cat child category id's = 7,8,9 news cat id = 5 news cat child category id's = 11,12,13 I wanna display choosen categories ( like video and news ) in the different ...
0
votes
1answer
59 views

posts going to 2 pages/categories only show up in 1

I have a portfolio website where my portfolio updates are supposed to go to both my portfolio and blog pages, as well as show thumbnails for the posts on my homepage. The thumbnails work perfectly; ...
0
votes
1answer
338 views

Give child-categories same class (the parent category-slug) as parent in menu list?

I am trying to do two things, which I have no idea how to do: give child categories the same class as the parent category (which is the parent category-slug) create a menu which displays my ...
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 ...
3
votes
2answers
3k views

List posts by category exclude current post

I'm trying to get a list of posts from one category, echo the title and the permalink of all posts on that category but exclude the permalink and the post name IF the current post is on that list. It ...
-2
votes
1answer
202 views

How to load/include category templates based on conditionals?

I have this lines to get different template, I can get the desired template but also i'm getting the default template at the end of theme. I tried to skip the code with goto but this fuction is ...
0
votes
1answer
188 views

How can I include custom category and tag base in template files?

How can I include custom category and tag base names in the category and tag template files? Specifically, I'd like to include in the page title of category and tag pages the custom category and tag ...
1
vote
1answer
454 views

WP_Query() returns null when results exist!

I really, really don't get it. On my archive.php and category.php it doesn't find any content. I know the correct templates are loaded, but WP_Query just don't find any content. This is what i've ...
0
votes
2answers
41 views

How to display numbered pages in a category

How in category.php to output a numbered list of links to pages like: 1 2 3 4 5 when the number of posts in the category exceeds the number of posts to display?
0
votes
1answer
169 views

How to do paging in the loop?

I used single.php for this code: <?php $categories = get_the_category($post->ID); if ($categories) { $category_ids = array(); foreach($categories as $individual_category) ...
0
votes
1answer
289 views

How to restrict user to choose 1 category for a post

I wish to restrict the user posting a new article to select only 1 category for that post. It doesn't matter which category he chooses as long as he chooses just one. This way posts are maintained ...
2
votes
1answer
409 views

How to stop wordpress from showing the selected category on top of others in the category selection?

By default in the category chooser at the edit post screen wordpress displays the selected categories on top of the others, i find that extremely annoying and i would like to disable the feature even ...
0
votes
2answers
402 views

How to add orderby parameter for sorting on category.php

I'm on a Category.php page which does the loop like this: <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> I usually do a custom loop like this: <?php //Define the ...
1
vote
1answer
191 views

Get the name an the description of a link category

I have a link category with the id $id=23; and the slug $slug=friends;. I managed to read all links from that category using get_bookmarks($id). Now I also want to use the name and the description ob ...
0
votes
1answer
1k views

How can I make wp_list_categories output li with category-slug as class, for its children?

Simply put, I'd like to change the wp_list_categories output from this: <li class="cat-item cat-item-1"><a href="http://mysite.com/category/articles">Articles</a></li> ...
0
votes
1answer
58 views

Can I define multiple paginations on a single page?

I have a category page, which shows this category's subcategories. I want in each subcategory to show its first five articles. And then provide pagination for each subcategory in order to allow user ...
4
votes
1answer
608 views

Custom post types with their own permalink structure

My main posts are news items (category "news"). Therefore, I used global URI writing in the following format: /year/month/post-name I also have posts that contain photo albums (category "photo") but ...
1
vote
0answers
460 views

How to display only the parent category in the permalink

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it. Example: myblog.com/parent_category/post_name This is only what I want. ...
0
votes
1answer
49 views

displaying the categories post

I have this php code below for displaying the post from the specific categories. <ul id="sliderx"> <?php query_posts('category_name=slideshow&showposts=10'); while (have_posts()) : ...
0
votes
2answers
697 views

Categories from front-end, checkbox selection doesn't work

I'm using the plugin Post from site, which sets up a WP front end writer. I changed some line of code because I need to select categories with checkboxes and not with a multiple select (as it was ...
0
votes
1answer
229 views

CPT archive page - show one post from each taxonomy term

Basic loop question: I have a custom post type with a custom taxonomy and 3 terms. On the archive page (archive-custom_post_type.php), I would like to display one post from each taxonomy term. Is ...
0
votes
1answer
148 views

Show posts in “image” format when viewed in category page, but with comments in blog

I am working on an artist's website. She wants each image to show up in the blog, and to category pages like "paintings", "calligraphy", etc. When viewing the category pages, the images should be ...
1
vote
1answer
561 views

How to hide some categories in category list under post in wordpress?

In My wodpress Blog there are some categories use for the internal work. I want to hide that categories in blog homepage category list show under each post. I print category list as ...
0
votes
1answer
473 views

Collapse subcategories in post edit screen

Is there a plugin to collapse/expande subcategories in post edit screen? In other words I'm looking for analog of CMS Tree Page View plugin, but for categories.
0
votes
1answer
3k views

How To Find Out Wordpress Category Table in MYSQL?

I know WordPress stores all post data in 'wp_posts' table. But here WordPress not define any category id or reference related with it. Please let me know, how 'wp_posts' table find out exact ...
2
votes
2answers
345 views

How to show a category post to a specific registered user

I'm working a private blog and I'd like to know if this can be done with any other plugin or any other way: Lets say we have 3 categories: CA, CB and CC, and 3 users, UA, UB and UC, all of them can ...
1
vote
1answer
50 views

Combining post categories and link categories?

So as to get a single index of both internal posts and external links on the same or related topic/subject matter, is it possible to combine post categories and link categories? I would like to be ...
0
votes
1answer
334 views

How to show beneath posts the full category path?

My portal has the following category structure: CategoryLevel1=>CategoryLevel2=>CategoryLevel3=>CategoryLevel4 I assign posts to CategoryLevel4 but I want to show the full category path beneath each ...
1
vote
1answer
918 views

How can I convert some categories to a custom taxonomy?

I have a WordPress install that has a ton of categories. I want to convert some of these categories into a custom taxonomy. For example, I have: Categories: Category A Subcategory 1 Subcategory 2 ...
0
votes
1answer
31 views

How can i display in a archive page a number of post i want

How can i display in a archive themplate ( post type) page a number of post, Let say i want to display a number of 20 post....in archive page, under i want to display the pages... Please look here : ...
1
vote
4answers
1k views

How only display all post related to category

I'm trying to make a custom template for my category pages that only pulls in post under a specific category. At the moment, I am only able to pull in all post and not category specific... My code so ...
0
votes
1answer
184 views

query_posts not reading correct categories

I'm using this code (below) to display posts from a category on two separate pages. The first page lists category 32 and the other lists category 31. However, on the second page it displays posts from ...
1
vote
1answer
479 views

Giving wp_list_categories the class of the category

I am using wp_list_categories to list my categories in my menu. When the menu is generated each category is listed as a <li>-element with "cat-item[number]" as class. Is there a way to also or ...
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 = ...
1
vote
1answer
46 views

Order categories by most posts

How can I list the categories by most posts News(100) Updates(45) Alerts(20) and so on
0
votes
1answer
186 views

How to create a custom loop ordered by Categories on a Page Template?

Ex. Category 1 Post 1 Post 2 Post 3 Post .... Category 2 Post 1 Post 2 Post 3 Post .... Category .... Post 1 Post 2 Post 3 Post ....
1
vote
0answers
253 views

Two separate portfolio pages

Is it possible to have two different portfolio pages with different items in each one? I use a free theme called ADAPT, and I have two "portfolio template" pages, NEW vehicles and USED vehicles. An ...
1
vote
2answers
173 views

What is the advantage of using header-catname.php over is_category('catname');?

Let's say I have a category named as catname (the slug would be catname). I want the header styled differently when visitors open the category catname. The article on Ghacks explains how to create a ...
0
votes
0answers
31 views

Duplicate post issue on multiple category loops on one page (1 post) [duplicate]

Possible Duplicate: Duplicate posts I am building a homepage template and it has an area with 4 separate category loops in a grid layout. Each loop will only show one post. The posts that I ...
-1
votes
1answer
63 views

How do i set up multiple portfolios (each with its own defined set of images -) to display on the same page?

I want to have one multi-column portfolio page but within each column or cell is a defined set of images for that particular category (or event) I do not want to rotate through images and see ones ...
2
votes
2answers
59 views

Rewrite category wordpress

Is it possible to rewrite only one category ? I have a category "Photos" and just for this category. I just want to rewrite it from /category/photos to /photos
0
votes
1answer
112 views

Pretty URLs with Categories and Tags

How do I create pretty permalinks for a query page that includes results from both categories and tags. For instance, if the category is Country (America) and the tag name is city (New York), can I ...
0
votes
2answers
943 views

Is it possible to put next and previous category links?

I'm not trying to navigate to the next post within a category, but to put previous category and next category under the category description on its archive page and navigate between archive pages. ...
0
votes
1answer
83 views

Category page when using static front page

I'm using a "static" front page with the posts on a page called News. Is it possible to make the categories use that as the base? Like this: /news/[category_name]/ And is it also possible to do the ...
2
votes
1answer
1k views

Remove “Parent” Selection When Adding/Editing Categories?

I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen. http://example.com/wp-admin/edit-tags.php?taxonomy=category I was able to hide the ...