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)

2
votes
1answer
498 views

Changing post category from dropdown

I am showing a list of posts on the front of my wordpress site which each have a dropdown next to them with a list of category's, which are pulled in as follows. As you can see the form submit button ...
2
votes
4answers
1k views

Creating “static” taxonomies to choose from, inside custom post type?

Alright, so i have a custom post type called Blurbs (translated, sort of). I want to add a static set of categories for the posts within Blurbs (i don't want the user to be able to create custom ...
1
vote
3answers
383 views

Add default content to post (for specific category)

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
1
vote
1answer
571 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
170 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) $category_ids[...
0
votes
1answer
532 views

Category List and Automatic jQuery classes

Objective and layout: I have two separate divs (this is in a Custom Page template). DIV1 has a listing subcategories of a specified parent category. Clicking on any of the listed subcats brings up a ...
0
votes
1answer
309 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 ...
0
votes
2answers
421 views

prefix to post permalinks without affecting category permas

I'm trying to make my links like this: site.com/article-sample-post as "article" is a fixed prefix and "sample-post" is the post slug.. but that prefix affect the category link structure making it ...
0
votes
2answers
508 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
207 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
0answers
888 views

How to paginate get_categories?

I have been working on this code for about a week now. I have tried many things. My recent attempts today resulted in infinite loops that just made the browser keep posting the posts. This is what I ...
0
votes
1answer
2k 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> <...
2
votes
4answers
2k views

Assign an icon to a category post

Is there a way to assign an icon to a category post as well as the posts original image that's set in the featured images? So if had a post about grapes I would have an image of some grapes in the ...
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 ...
2
votes
1answer
206 views

How to create tabled index of posts in a certain category

I have a tech blog, what I want to do is to create an index page for articles in a certain category. For example, I want all the articles under the category "WordPress BasiX" to be arranged in an ...
2
votes
1answer
993 views

Help with multiple dropdown tags search

I'm trying to build a search form that allows the user to choose certain post tags and filter through real estate listings. So far I have the form built but when I click the search button it brings me ...
0
votes
1answer
50 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
1answer
35 views

delete category name in the pages

I'm looking for a way so that I can delete category's name in the pages. I tried to find something for category in index.php but I couldn't find anything. Please help me to solve this problem. ...
0
votes
1answer
234 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
2answers
847 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
157 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
697 views

Collapse subcategories in post edit screen

Is there a plugin to collapse/expand subcategories in the post edit screen? In other words, I'm looking for analog of CMS Tree Page View plugin, but for categories.
7
votes
3answers
85k views

How to Display Product specific to a category with WooCommerce Plugin? [closed]

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
0
votes
1answer
710 views

How can I add an “ALL CATEGORIES” entry in wp_dropdown_categories?

I want to let the users search posts by categories. So I use wp_dropdown_categories to build a drop-donw list with all categories. Trouble is I want to allow them to set this to "ALL CATEGORIES" as ...
3
votes
1answer
2k views

How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?

My website allows uses to post posts of a custom post type ("place"). I would like to display the same "Categories" meta box seen in WordPress dashboard when you add or edit a post on frontend: ...
4
votes
1answer
623 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 ...
0
votes
1answer
237 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 ...
0
votes
1answer
443 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
1k 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
748 views

how to separate categories in loop.php?

I am trying to get all the posts in a specific category separated into 3 different sections. Each category will be in a different div. When I try doing this, WordPress lists every post in every ...
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
1answer
644 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
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
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
4k 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 category?...
0
votes
2answers
1k views

Multiple menu items highlighted

I am using WordPress as the CMS for my website. For my navigation menu, I am using WordPress' inbuilt navigation menu function. You add categories, page, etc, to this and it generates a list with ...
0
votes
1answer
185 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 ...
2
votes
2answers
387 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 ...
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
vote
2answers
195 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 ...
2
votes
2answers
62 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
-1
votes
1answer
65 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 ...
0
votes
2answers
1k 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. I'...
0
votes
1answer
91 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 ...
4
votes
1answer
702 views

How to show list of posts by author and category?

Let three categories and their IDs: cat1 = 1 (parent) cat2 = 2 (child of cat1, parent of cat3) cat3 = 3 (child of cat2) Let each category has 3 posts, they are: post1, post2, post3. And each posts ...
0
votes
1answer
125 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 ...
1
vote
0answers
328 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 ...
0
votes
2answers
181 views

Shortcode interpreted as text

I have the following shortcode in one of my pages [[Intern: Termine/News]] This works on a password protected sub page. Now I want that all news of the category Termine/News are on the parent page. ...
1
vote
1answer
2k views

Show children of top level category only

Imagine i have a URL structure like this: www.domain.com/category/subcategory/ This is my code: <?php $args=array( 'child_of' => $cat-id, 'hide_empty' => 0, 'orderby' => '...