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

Hide category links if there is nothing in the categories - Main Navigation submenu item

In my main navigation menu I have category links that are sub menu items: Example: Main Navigation: Listings Sub menu category items: Boating, Camping, Fishing So basically if there is no listing ...
0
votes
2answers
17 views

How to create an array with category ids order by the one that has the most recent post

I can't find a proper solution to this. I have an array of categories for example: $slidercategories_array = array(3,5,6,9,10,11,12,23,24,27); I need to reorder the array like this first the ...
0
votes
2answers
27 views

Show number of articles in menu

I want to display a number of articles in a certain category which is hooked to a menu item. It should look like Bootstrap's "badge" component. Now I've got: and what I want to achieve: Do I ...
1
vote
1answer
337 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 ...
0
votes
0answers
6 views

How to Sync Menu, Widgets and other masters from Main Website to its Sub Site

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
0
votes
1answer
143 views

Why adding Categories does not auto refresh in Backend while using my custom theme?

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page ...
-1
votes
0answers
6 views

Woocommerce create_category hook not working for product categories? [on hold]

so I want to hook into create_category and edit_category for products in Woocommerce. However it seems like it's not using these hooks when creating / editing categories? I know the hooks work for ...
0
votes
0answers
12 views

How to add custom post types to normal category pages

I want to have a custom post type, named event, listed with normal posts in the category pages. I have managed to add categories easily to the custom post type with this: add_action('init', ...
1
vote
2answers
822 views

Is there a way to have duplicate category slugs?

Wordpress sometimes is plain limiting, and some of its logics I just don't get... For example if I have two parent directories: parent1 parent2 with subcategories: parent1 sub parent2 sub ...
-1
votes
1answer
18 views

Show Posts by Price Plan [on hold]

I have made a website on wordpress. There is registraton of any user by choosing Price Plan which is i am going to describe as follows:- Premium Blog Posting - $90 (90 Blogs Per Month) Featured Blog ...
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
301 views

Most recent post from every category/taxonomy but sorted by date

I am trying to get a list of the most recent post from every category/taxonomy. I have found a solution for this, but I want the overall list to be sorted by post date. At the moment it is sorted by ...
0
votes
0answers
16 views

Backend - Categories and Menus conflicts

I'm having a big problem with my WP instance which is frustrating. Every time I add a new Category ( a simple default category with no custom posts or taxonomies ) it adds, as expected, that new ...
-1
votes
1answer
19 views

Wrap posts from a category in HTML

I want to get multiple posts content from a particular category. I would also like to wrap each post around some HTML. Any ideas on how to best do this?
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 ...
0
votes
1answer
289 views

how i can hide some category from author admin panel?

i want author can not see some category from author admin panel but administrator can see that.how i can hide some category?my site http://techjagot.com .. here show some function.php code <?php ...
0
votes
1answer
265 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
0
votes
2answers
590 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 ...
3
votes
1answer
630 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...
-5
votes
0answers
18 views

category carousel [closed]

I have one question to ask all guests, in the wordpress I want to buidl category carousel. How can I do? if someone know about this please help me. Thanks.
0
votes
1answer
357 views

query_vars in plugin when using custom permalinks

I am trying to do the following I need to get the category of the current page at the plugin level so before it goes to archive.php orsingle.php so i have a plugin to do this and based upon ...
0
votes
0answers
14 views

Changing Woocommerce categories programatically

for the last two days I am trying to find a solution to this little problem. I want to change the categories of certain products programatically, so far I have this It seems quite logical for example ...
0
votes
0answers
7 views

changing specific text in the categories meta box

I'd like to customize the categories meta box (the one you see when adding or editing a post). I need to rename the word "Categories" and "Category" to something else, please see the screenshot for ...
0
votes
1answer
300 views

Custom loop of a single category, cannot order by date. What am I missing?

I'm going nuts. All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
0
votes
2answers
530 views

Grouping categories by genre

My wordpress video blog have several categories. Lets say the category can belong to several genres e.g actions,horror,mystery and another category belong to actions,horror,romance How do I group ...
0
votes
2answers
401 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 ...
-1
votes
2answers
36 views

in_category in index.php

I am trying to separate categories because I am working on a theme that will have many different sections on the front page. It makes sense to use categories for these sections. Right now, I have ...
0
votes
2answers
393 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, ...
2
votes
1answer
24 views

get_the_term_list by hierarchy order

function btp_entry_capture_categories() { $out = ''; global $post; $taxonomies = get_object_taxonomies( $post ); foreach ( $taxonomies as $taxonomy ) { ...
1
vote
3answers
586 views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
0
votes
1answer
334 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
0
votes
3answers
112 views

Tags Instead of Category

UPDATE: I have this widget that allows me to CHOOSE and SHOW the latest posts from a specific category in the sidebar. Here's the code; add_action( 'widgets_init', 'tie_categort_posts_widget' ); ...
-2
votes
0answers
8 views

Change order of product categories in woocommerce [closed]

I have a site with woocommerce. A programmer built it and in a product category page there is a list of the main categories sorted in UL > LI hirarchy. I am trying to change the order of the ...
0
votes
0answers
8 views

Display Children Category post and child post under it

Hi I need to display only child category post in home page and then its children title under it in home page recent posts . While doing this it displaying category children post too in home page ...
0
votes
4answers
291 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
1answer
13 views

Get category name from custom loop and echo it once

I have a magazine front page that updates with every issue, and the front page shows the current issue posts which are stickied. So for example, this month all the posts are in a category titlted ...
0
votes
0answers
13 views

How To Filter Tags by Category

I have a GIF blog with around 15.000 posts and around 8000 tags. These posts are into different categories (2 categories only). The two categories i have are "Reaction GIF" and "Normal GIF". Is there ...
0
votes
1answer
594 views

Related posts widget - category

I want edit this widget to display related posts from current category. This code below display only posts from category that I must choose manually. So I want related posts from category ..thanks for ...
0
votes
1answer
1k views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
2
votes
1answer
348 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 ...
0
votes
0answers
6 views

Display different gravity form depending on parent category

Description I would like to display different gravity forms (every form is in a different language) in single page post for parent category and all subcategories depending on language spoken in ...
0
votes
1answer
631 views

List post only under the category, exclude child category content

I wanted to list posts which are directly under a category and not inside the "sub category". In other words, I want to hide all the posts which are from "Sub Category" in the Parent category view. ...
1
vote
1answer
565 views

How to show only one category in breadcrumb navigation

I added breadcrumb navigation to WordPress & I'm facing one problem. Here's the function.php code of the breadcrumb: function ux_breadcrumbs() { if (!is_home()) { echo '<a href="'; ...
0
votes
0answers
12 views

Add role that restricts user to post in specific category

I'm trying to create a role that restricts the ability to post to a specific category, hiding the other from the checkbox. I don't want to use plugins. I'm looking for a snippet to put in ...
0
votes
1answer
306 views

IF have_posts contains posts from a certain category

This issue is now finally resolved by myself. Find the solution in the end of this post. Question was in short: How can i ask in my WP template, IF the whole array of have_posts contains any post from ...
0
votes
0answers
9 views

Display products of a certain category as a list [closed]

We have a category which sells generic stuff and therefore we need to display the products of that category in a list form with variations ( drop down box), pack sizes(drop down boxes) and add to cart ...
1
vote
2answers
803 views

Display posts from Custom Post Type in category page on front-end

I created my Custom Post Type (bizdirectory), created a new post (Test Business) and created a new category (Business Directory). But if I add the Business Directory category (slug = business) to my ...
0
votes
0answers
27 views

archive.php not showing the last post queried [closed]

I have this rare issue. When I visit archive page for a category, it shows all posts but not the last one. If there is only one post in the category, it does not shows any entry. I tried with the ...
1
vote
2answers
43 views

I want exclude the particular category in sidebar

In my sidebar i would like show archieves list month exclude 'banner' category post. Below codes are tried, but not work for me. <?php echo ...
0
votes
1answer
16 views

How to schedule categories?

Is there anyway to schedule categories? like I already created the categories but I don't want it published to the public until the scheduled date like how you can schedule posts.