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

How to get the depth of a category's subcategories

I'm looking to get the depth a category's subcategories. Suppose I have a category 'grandparent' which has a subcategory 'parent' which in turn has a subcategory 'child'. How do I get to integer 2? ...
0
votes
2answers
22 views

How to get nav to show current_page_parent class when on regular post (not blog), differentiated by category

In order to highlight menu item when viewing single post (not blog), am trying to add special classes to single, (regular, not custom) posts from different categories. this is the basic code: ...
0
votes
0answers
21 views

Want to get posts with their content with their category and subcategory?

I am working on a theme in which I have to show all the posts with their dedicated category and subcategory. Actually I have tried on Google and codex, but I can't find what I want. Actually I have ...
5
votes
3answers
302 views

WP 3.9 TinyMCE no longer loads on category description editor

I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the ...
1
vote
1answer
283 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
8 views

Keep last used category at the top in “Categories” or “Most Used” box?

Is there any way to tell WP to keep last used category on top of "Categories" or "Most Used" tab in admin area when adding new post? I would like to have last used category on top of list of ...
1
vote
1answer
340 views

Creating gallery with taxonomy images plugin?

My code uses a taxonomy category image plugin to display images for categories. It also displays subcategories of the main category in the parent category page (category.php). I want to display only ...
0
votes
0answers
39 views

Show Posts from Single Category Not Working

I have a simple loop that outputs the content of posts and then adds some navigation links at the bottom. Wordpress is set to only show 5 posts at a time. <?php while(have_posts()) : the_post(); ...
0
votes
0answers
9 views

Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category

I would like to create 2 lists of pages and include and exclude some of them depending on their category. In the following example, I have my 2 lists. A list of promoted pages and a list for the rest. ...
0
votes
2answers
262 views

How to remove category from wordpress url?

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have ...
0
votes
2answers
624 views

How would you create a “weekly” archive?

I'm looking to create individual archives for each category of my website, but want to them to break into weeks. Check out the linked image (can't embed images as a new user?): ...
1
vote
2answers
349 views

Exclude sub category posts from category display

I have a post category structure like this: news news / conferences news / newsletter In Appearance > Menu, I have added 3 menu items. One each for the categories News, Conferences, Newsletter. ...
0
votes
1answer
469 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 ...
1
vote
2answers
787 views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
0
votes
1answer
13 views

Showing HTML if Post is In Certain Taxonomy Term

I'm using the following code to display an image based on which category a post is in on my blog. I'm trying to use this same concept under my custom post type. Instead the category is a Term in my ...
1
vote
2answers
1k views

Show category images on single product page and product overview page

I am running a woocommerce shop and I have products which are in multiple categories. I would like to show the category images on the single product pages. And also on the product overview page. I ...
0
votes
1answer
42 views

Automatically set posts to NoIndex depending on category?

I'd like all new posts with a specific category to automatically have NoIndex applied. There are various plugins - e.g. Wordpress SEO - which make it easier to manually select posts for NoIndex. But ...
0
votes
1answer
1k views

Show custom menu in category and its posts

I have a category X of posts. The category page and it's individual posts are all part of a custom menu consisting of pages and posts. My submenu, in the sidebar, works fine for showing on the pages, ...
0
votes
1answer
16 views

How to get selected taxonomy or category ID if using custom walker?

I'm building a taxonomy->child taxonomy dropdowns where the child will only be active if the parent is selected. Everything works great, except that I'm using wp_dropdown_categories for the parent ...
0
votes
1answer
393 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
-1
votes
0answers
8 views

Porfolio filters [closed]

using avada theme filters in portfolio page (category tabs) when clicking on particular category, it is showing other category results, it is not showing only the respective category results... Please ...
0
votes
1answer
264 views

SQL Bulk Move old posts by one author to another category

I'm looking to move a number of old posts by one author from one category to another category and was hoping someone could help me do this? I figure the easiest way would be through an SQL command? ...
0
votes
2answers
16 views

How can I implement pagination on custom category page?

I have created a custom template page for every one of my categories. I am using a foreach loop in order to fetch the posts of this specific category in my page. if (is_page()) { ...
0
votes
1answer
33 views

A simple question regarding tags and categories

I was wondering if there was an easy way to display posts from a tag from a specific category. In other words, if I have Category1, Category2, and Category3, and these all have posts with a tag ...
0
votes
0answers
14 views

Categories showing up on wrong page

I do not run the site, but am doing some updates. One of the ones I was asked to do is remove the cats from the adopt a dog or puppy page. When I go into the dashboard and look at the posts, they all ...
0
votes
0answers
15 views

I cant get archive-gallery.php for custom post types

Hi to all I have just created a gallery with the codes below: //---------------------------------------------- //----------register and label gallery post type ...
1
vote
1answer
677 views

Display posts in three columns by category

I've seen posts which probably answer this, but unfortunately the answers are all a bit technical without telling you where the code should go? At the moment I have my posts directed to a blog page. I ...
0
votes
1answer
151 views

How to show related posts by category or custom post type?

I'm looking for the best way to go about creating, probably, custom post type where you can filter in the categories related to that custom post type in the sidebar. Here is the website I'm working ...
0
votes
0answers
17 views

Posts of Certain Category as Menu

I want to retrieve posts by certain category dynamically as a menu. What I need is: On the left-side of the page I want to display a menu as following | Category Name | | Post of This | | ...
0
votes
1answer
422 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
1answer
41 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
25 views

Wordpress showing wrong category name

I'm using: $category = get_the_category(); echo $category[0]->cat_name; to display the current category as a header in an archive template (example of local url is ...
0
votes
1answer
25 views

List categories with custom code

Right now, and taking from http://codex.wordpress.org/Template_Tags/wp_list_categories we can use the following code to list categories in a wordpress page: <?php $args = array( ...
0
votes
0answers
27 views

Dropdown with category selection

I created a directory website with dropdowns in the menu allowing the user to navigate throughout the categories and sub categories. I am using wp_dropdown_categories() to display the menus. And the ...
0
votes
0answers
23 views

Get custom type category from a category posts

I've been searching the way to do it but no good. The title may be confusing, let me explain my problem... I have the archive page (the main category), then I've posts inside that category and inside ...
0
votes
3answers
3k views

Display only one level subcategory in wordpress

This code uses taxonomy category image plugin to display images for categories. This code display subcategories of main category in parent category page (category.php), But I want to display only one ...
1
vote
1answer
315 views

Additional form options based on category selected not working

I have a conditional statement to show certain images to choose from (radio buttons) based on the category chosen, however when the category is chosen, the radio buttons don't show? What am I doing ...
4
votes
1answer
566 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
11 views

Change existing taxonomy settings when using custom taxonomy

For a plugin I have created a new custom taxonomy for attachments using the function register_taxonomy() and parameters like "show_admin_column". When this parameter is set to true, it shows the ...
0
votes
2answers
92 views

Category Alphabet List Broken

In version 3.6.1 and below this worked. After updating WordPress to version 3.9.1, my category list is broken In version 3.6.1, my category list looked like this A|B|C (A) (B) (C) Apple Bat ...
0
votes
2answers
386 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
0
votes
2answers
435 views

Use get_term_children to get the sub category of a parent category for the current post

In my WooCommerce theme I've created a root category: 'Brands' then for each product I've added it's brand as a sub category to the 'Brands' parent category. On the product page I want to display the ...
6
votes
1answer
1k views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
0
votes
2answers
361 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
1answer
24 views

Get latest post from categories

I have 3 categories: Travel, Destination and Tips. I've been trying to get the latest post from each categories then put them into an array. Here's what I have in mind. //GET CATEGORIES //I have this ...
0
votes
0answers
8 views

Bulk assign Categories by ID

I have several hundred posts that need to be recategorized. I have all categories established and know the category IDs that need to go with every post ID. Some posts need to be assigned multiple ...
1
vote
2answers
115 views

Sort posts by post_type in category.php template

In my category.php template I want to sort category posts by their post types dynamic. My block must have this structure Restaurant (custom post type) - posts Bars (custom post type) - posts ...
0
votes
1answer
857 views

How to have Multiple Archives Widgets, one archive widget per category (in a different page)?

Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am ...
0
votes
1answer
19 views

Add category to all post by using sql query?

I have a thousand posts and all them don't have category. Do you know how to associate category with all posts by using sql query?
1
vote
1answer
213 views

Display category description instead of “nothing found” page

I'm using Wordpress 3.8.1 with the theme twenty fourteen. Unfortunately , when you click on a category with no post assigned to it for now , it displays a not found page. I've tried to create a ...