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
1answer
31 views

Rename Default Category (Uncategorized) Via a Function

I'm looking for a function to rename the default 'Uncategorized' category. The reason I need this is because I'm running a WordPress multi-site largely used by users with little technical knowledge ...
0
votes
0answers
12 views

Problem with drop down with custom categories

I am having an issue with using a custom category. The category is called counties and includes the following entries: Warwickshire, West Lothian, Westmorland, Wiltshire, Worcestershire and ...
0
votes
4answers
74 views

How to exclude categories from recent posts, recent comments & category widgets?

I use the bellow function (thanks to @helgatheviking!) to exclude categories from the wordpress loop. It works very well - posts of selected categories are excluded from the loop on the main blog ...
0
votes
1answer
26 views

Assign specific ads to specific categories/posts

I've been playing around with solution to be able to show a different header banner on different categories, and hopefully later on, be able to extend that query to the post level. I've found a few ...
0
votes
3answers
52 views

How to show more than 5 posts?

I am running code that shows child categories, and all posts in the child categories. But if there are more than 5 posts in a category, only the 5 newest are shown. How can I show all, or at least ...
0
votes
0answers
17 views

Exclude a category of posts from all listings if user doesn't have a role

I have some categories that I'd like to bulk exclude from all listings (the loop on the main blog listing page, category listing pages, archives, etc.) and to show them only to users with a specific ...
0
votes
1answer
33 views

Link to a latest news item with correct url

I need to have a page, that displays the latest post in the category 'news' or sub category 'news->nen-news'. And I need to be able to link to from the main navigation (news->news article). My news ...
0
votes
1answer
21 views

filter a loop base on specific category

i am going to filter my loop base on the category the problem is that when i am using the following code it display all my post. // Query args $custom_cat_args = array( 'posts_per_page' => 15, ...
0
votes
1answer
52 views

Show custom post type filtered by category

I would like to have a custom post type which contain several sliders for showing in each category page (exact category.php), one for each as planned. All sliders were assigned to related category. ...
0
votes
1answer
46 views

problem with using serveral loop in wordpress theme

i am using several loops like this <?php $posts = get_posts('numberposts=1&order=DESC&orderby=post_date&category='.get_cat_ID( 'سیاست' )); foreach ($posts as $post) : ...
0
votes
2answers
45 views

Make parent category an optgroup

How to transform the parent category into an optgroup? Demo of what I want: http://fiddle.jshell.net/Pp7Ey/show/ Currently I have this code: $cat = $_POST['cat']; $data = array( ...
0
votes
1answer
19 views

Remove specific category from a post

I have enabled categories on attachments, and I am trying to implement the logic to automatically handle the "Uncategorized" category, like this: 1) If the attachment has no categories, set it to ...
0
votes
1answer
12 views

Set the default category of an attachment

I wanted to apply the same categories that exist for posts to attachments, so I wrote this code: function wpmediacategory_init() { register_taxonomy_for_object_type( 'category', 'attachment' ); } ...
0
votes
0answers
17 views

Another flat level URL question (no hierarchy)

I read some issues with related topics, but found no answer. I have categories and subcategories on my site.The only reason having hierarchy is because I need to have on the category page all child ...
0
votes
0answers
14 views

Displaying a list of categories ordered by popularity?

I would like to add a list of categories to my template showing only the 5 most popular categories(by number of post views within each category). Is this something easy or would it take heavy ...
1
vote
1answer
49 views

Automatically set default password to all posts in a specific category

Let's say that we have a category with slug protected_category and some posts in it. Is there a way to force all posts in that category to be password protected using a default password? UPDATE: I ...
0
votes
0answers
18 views

Archive pages: sorted by custom field value

I'm using a custom field – entry_type – to add types to posts, for example, Gallery or Announcement etc. On my archive pages, I want to then separate out the post types stored in entry_type. For ...
0
votes
0answers
12 views

wp_list_categories output /defaultcategory+category2/

I need output this /default_category+ and add after that comes all site categories and then list those. I need to list this so I can make ready list, so user can search post that are in under default ...
-1
votes
1answer
19 views

Adding a page and contents many questions with answers

I want to add page in my website and in that page I want to add question and answer regularly. And these questions will be found on the the added page only. How to do it? Do I have to add a post ...
0
votes
4answers
269 views

Display Image for a category using get_categories, or show an image from any child post

I am using get_categories to list the child categories of a parent category. I want to add an image to the child categories, using the get_categories output. I can either take the featured image ...
0
votes
0answers
34 views

post category exclusion in main loop

I have mostly posts from category A. Whereas other categories have very few posts. Due to which my main loop shows posts of category A and other category posts don't get seen much on homepage which ...
0
votes
0answers
16 views

How to create default categories in new installs?

When a new user creates a new blog in WordPress MU I'd like to add a new category. How or where would I do this?
0
votes
1answer
41 views

category page template for custom post type

I want to create a template for category page for custom post type. I have tried with category-my-campcat.php and taxonomy-my-campcat.php. But when I click on category then it redirect to ...
0
votes
0answers
16 views

Category not displaying in add post, edit post, and categories page.

I have faced one problem after updating WordPress to 3.8.1. When I try to add or edit a post the category list at right side panel is blank, even though I have several categories on the site. Please ...
-1
votes
1answer
16 views

Excluding cateory not working on my site. how to solve this? [closed]

I am using my own wordpress theme. I am trying to exclude some categories on my author.php I am using the following code for that purpose. $paged = (get_query_var('paged')) ? ...
1
vote
1answer
38 views

Add multiple=“multiple” attribute to categories dropdown

I have a dropdown with Regular select. I need a dropdown with Multiselect. I added the JavaScript script file inside header.php, now I need add string multiple="multiple". In firebug I multiple = ...
1
vote
0answers
96 views

How to display taxonomy images with wp_list_categories?

I am trying to display only sub taxonomies with images of current taxonomy in taxonomy page. I have created custom taxonomies for a custom post type and using the plugin Categories Images to add a ...
0
votes
0answers
25 views

Automatic menu creation for pages with categories?

This may be a stretch, but I have a site that has a large number of pages, and i've given the pages categories (with a plugin that let me add categories to pages). I now want to create a sidebar menu ...
0
votes
0answers
39 views

Show different category galleries without page refresh using Galleriffic and Wordpress

I'm using Galleriffic in a WordPress site to display a gallery of images. The images belong in several different categories, and I want users to be able to filter by category via a submenu without the ...
0
votes
1answer
68 views

wp_nav_menu not highlighting the current category when viewing a single post

My WordPress site has a bunch of posts, all filed by a top-level category and a bunch of subcategories therein. I have the main site nav rendering the category pages, which, when clicked, get all ...
-1
votes
1answer
145 views

How to query posts from specific authors and categories using WP_query?

I currently have a WP_query where I am getting posts from a specific set of authors. To this, I want to add specific categories as well. $args = array( 'author__in' => $authors, 'posts_per_page' ...
0
votes
0answers
19 views

One of my users cannot select Categories for his posts

I have a users with limited access. The problem is they cannot check (select) the categories for a post in Edit Post. They can see them but not select them. Why is this happening? What do I need to ...
0
votes
1answer
60 views

Wordpress Numeric Pagination with Query String [duplicate]

So I have a dynamic loop which is affected by a query sting in the URL.. For example I have 3 categories and when they click the category it just adds a query to the URL: <a ...
0
votes
2answers
52 views

wp_list_categories in in nav_menu

I have a website and I want to add automatically categories to my menu. I mean when I create new category it should appear in my menu. How I can make it? <?php wp_nav_menu( array( ...
0
votes
0answers
34 views

Password protected category based attachment/media list?

I am working on building a custom template, and I'm running into some trouble using the password protected feature for wordpress pages. Basically, the content from the page I have published and set ...
0
votes
1answer
37 views

Are term_taxonomy_id and term_id the same?

I have a custom query where I need a JOIN because I want to COUNT all the posts of a specific category. So I checked the tables and I found out that table wp_term_relationships contains a reference ...
0
votes
1answer
34 views

Set Current Category to Active in category.php

Inside the category.php file I have a custom navbar which is... <ul class = "nav nav-tabs nav-justified"> <li><a href="http://example.com/blog/" title="View all ...
0
votes
1answer
57 views

How can I add a Categories page link to a menu? [on hold]

Not a link to a specific category, but a link to a page that lists all categories of a custom post type (WooCommerce Products).
0
votes
0answers
45 views

custom post type, single category page and search form

i have created a custom post type called directory, on my directory page which lists my directories i have a sidebar which shows the categories and how many are in a category but when i click one of ...
0
votes
1answer
34 views

List Posts By Custom Taxonomy

Apologies if this is a stupid question, I've had a google and a look on the site but can't find an answer to my question. I'm working on a project and have created a custom post type called 'books'. ...
0
votes
0answers
25 views

Folder structue same as WordPress categories URLs?

Is it possible to have folders on disk same as categories URLs? For example I have folder on disk "images" and subfolders images/subfolder-one/subfolder-two images/some-folder/ I use "images" as ...
0
votes
1answer
47 views

Changing Permalinks for Category Pages Only

I am working to redesign a site and would like to rework the permalink structure for the category pages only. Right now they are using: /category/category-name I would like to switch this to: ...
0
votes
0answers
16 views

wp_kses enable HTML comment code.filter

Is there a way to enable the category description to allow HTML comment EX: <!-- example of the HTML comment --> How it looks in the category description. <!-- This story is about the ...
0
votes
1answer
27 views

Assign parent category to all posts that are already assigned to child category

All my website's posts are assigned to subcategories, but not to their parent categories too: Is there someway that I could massively assign posts to their parent categories too? My website has ...
1
vote
1answer
65 views

How to exclude uncategorized from permalink structure /%category%/%postname%/

I'm using a custom permalink structure: /%category%/%postname%/ So that my posts are listed like: mysite.com/widgets/blue-widget This works fine as long as "blue-widget" exists in one and only ...
0
votes
0answers
9 views

Is it possible to add categories to new blogs on Wordpress MU?

I have setup WP MU and I need new blogs to have two additional categories when they're created. Is there a way to do this?
0
votes
2answers
139 views

wp_update_nav_menu_item() to insert categories

In the script below, I'm attempting to dynamically add categories to a custom menu. Everything works great, except for the fact that the categories do not have hyperlinks. What am I missing in ...
0
votes
2answers
43 views

Structuring a product catalogue in Wordpress [closed]

I am trying to create a product based content managed website in Wordpress (by clients request). I have created a custom post type where all the products reside, aptly named 'Products'. The products ...
0
votes
0answers
55 views

Woocommerce: Automatic category/subcategory thumbnail based on 1st product [on hold]

At the moment I am building Affiliation shop based on xml. There is plenty of categories and more are being added automatically. Does anybody know how to write function, which would show ...
0
votes
3answers
155 views

How to get posts from two categories with WP_Query?

I'm using WP_Query to create 'latest posts' & 'popular posts' sections on my home page. I'm trying to just pull 5 posts from 2 categories (9 & 11) but it will only show posts from cat 9. ...