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
0answers
19 views

Get Pagination For List of Wordpress Categories

I'm trying to display a set number of categories on a custom page template. The Categories contains featured image and link to their children. I'm using "Categories Images" plugin to get Category ...
0
votes
1answer
2k views

Hide Post Meta Data on a specific category

I'm using the Canvas theme from Woothemes, and their framework (obviously.) I built a child theme and have my custom CSS segregated in a custom.css file in that directory. I've made some changes to ...
0
votes
0answers
12 views

custom script category in a menu not showing

I have a custom script to create a menu and a category everytime a user register for multisite. Below is the code where I create a menu and category. switch_to_blog($id); $_nav_menu_selected_id = ...
1
vote
1answer
655 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
0answers
19 views

Hide specific categories from category widget

I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the ...
-1
votes
0answers
18 views

Sort Products by Product Category Order as defined in Admin panel

I've done a lot of searching without any success. Trying to order the products page into a nested subcategories using WooCommerce. I've had some success by using the code below to set the ordering to ...
0
votes
1answer
20 views

How to make all post in to a category?

I need to make all current posts to a category called "Past Posts". I could not find a way to do it. I have 250+ posts. So I can't do it manually.
0
votes
1answer
360 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
1answer
606 views

How to display all category images for single post in a page?

Here is my code <div class="our_team_box_big"> <h2>Microsoft</h2> <?php foreach (get_the_category() as $cat) : ?> <div class="one_fourth"> <div ...
0
votes
1answer
586 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
1answer
3k views

ajax for filtering posts by category in wordpress loops

I've been looking around for a way to filter my posts on http://www.waziproject.com/wazimagazine/ without reloading the page. So my question is if anyone can help me out to turn the following into a ...
0
votes
2answers
110 views

Hide a certain category name without removing it?

I have a category called feature which I use to have a feature post in the homepage. The problem is I don't want the category name feature to appear in this posts, but I want the other categories to ...
0
votes
0answers
7 views

New notion of custom posts subset

I want to create an image voting site. As a user I want to: Create a "Poll" that belongs to some category (custom wizard process) Post an image to any "Poll", mine and thine (limit of 1 post per ...
0
votes
3answers
34 views

get_posts - require all categories

From the get_posts docs I see it takes categories as a parameter. However, is this an AND or an OR? i.e. if you specify 2 categories do posts have to be in both to be returned? If not, how do you ...
0
votes
1answer
453 views

Random Category with Recent Post Title and Thumbnail

This code below works perfect to pull the title of five random categories, the issue is for each random category I want the latest post title and thumbnail but where and how do I add the post query? ...
0
votes
1answer
84 views

How to display two random-post sections that are each under their own category

<?php get_header(); ?> <div id="containerHOME"> <div id="left-div"> <!--Begin Sidebar--> <div id="left-inside"> <?php if (get_option('earthlytouch_featured') == ...
2
votes
1answer
2k views

Display products for a category, sorted by post_excerpt

I'd like to display a list of products for a certain category, sorted by the post_excerpt. The original code I used was this: $args = array( 'tax_query' => array( array( ...
0
votes
1answer
26 views

Offline Wordpress Application

I have to Document some Work and i thought to use WP as a platform to work with others. We have articles, pictures in different categoried and could use the tag function. A Search function is ...
0
votes
0answers
14 views

Force to select a category when creating post [duplicate]

I just wanna put condition, when user is creating a post, the post won't create until choosing a specific category. How can I force user to select a category while posting a new post.
1
vote
2answers
815 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
507 views

Issue on Listing Sub Product Categories In Woocommerce

Using Following code I am able to list all top level Categories on Woocommerce Product Categories $args = array( 'number' => $number, 'orderby' => 'title', 'order' => ...
0
votes
0answers
26 views

Have the same sub-category and slug for two different parent categories?

Just want to make sure: I have category 1, with subcategory 'resources'. Can I have category 2 also with a 'resources' subcategory? I would like the slug to be the same in both categories.
1
vote
1answer
489 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
1answer
673 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
0answers
15 views

Getting specified level all categories

How get all categories(in object format) by specifying required level. For example: We have Cat1 => Cat1-1 Cat1-2 => Cat1-2-1 => Cat1-3-1 Cat1-2-2 Cat1-3 ...
0
votes
1answer
45 views

hierarchical taxonomy in permalinks? using same slug

I use permalink: /%category%/%postname%.html and want to have categories like this: Wheels Mercedes Toyota Brakes Mercedes Toyota I want their URLs like this: ...
0
votes
1answer
21 views

Create query for both custom post type and category

I have a custom post type called articles and have category = news I want to make a query from the two parts to get content from (cpt=articles, category=news) in the same query? How can I achieve ...
0
votes
1answer
377 views

Show 10 Sub Categories Per Parent Category Page?

I have using following code for displaying sub categories in parent category page. Its displaying all subcategories in a single page. I want to display 10 sub categories per page. Please help me to ...
0
votes
1answer
909 views

Display Categories or Subcategories with name & description in category.php

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 ...
0
votes
0answers
30 views

Correct url for categories

In WP 4.2 project I added taxonomy using register_taxonomy function like $labels = array( 'name'=> _x( 'Category Artists&Songs', 'Taxonomy General Name', 'artists_songs' ...
0
votes
1answer
357 views

Get categories and descriptions from custom post type

I'm trying to pull all of the categories associated with a custom post type within a loop, but I'm not sure how to get it so automatically pulls all of the categories automatically from the associated ...
0
votes
1answer
509 views

Best Way to Redirect Category to Page and Hide Category

I have a category archive page at: http://mysite.com/news It displays an archive of items from the category 'news-article' I'd like to redirect any requests for ...
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
29 views

Is it possible to create an alias/custom taxonomy for a category name?

I have a 190 categories - 2 parents, 2 children each, each of those has 2 children, and each of those has between 10-20 bottom level categories. The problem I've run into is that this is an apps ...
0
votes
0answers
14 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
13 views

In a shared site, how to get products in a category from one site to another?

Our wordpress site(s) is actually 2 in 1. That is, while they are separate host URLs on the same domain, same server, they run from the same set of wp code, but different databases. They are not ...
1
vote
3answers
643 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
1
vote
2answers
2k views

Sticky post for each category on category pages

I think the title is self explanitory. I would like to show category.php a post I set as sticky post for that category. Do you know a good plugin or a code to do this? Thanks, Sarit
2
votes
1answer
630 views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
0
votes
1answer
32 views

make categories editor unchangeble for my post_type

In WP 4.2 project I added new post_type using register_post_type function and taxonomy using register_taxonomy function and 2 categories using wp_insert_category function. That all works for me ok, ...
-1
votes
0answers
24 views

get_category($ID) is returning null

I have the following code: $ID = get_the_id(); echo $ID; $cat = get_category($ID); var_dump($cat); The id is echoed correctly but $cat is logged as NULL. I've also tried: $cat = get_category($ID, ...
1
vote
1answer
50 views

Creating a category page by alphabet

i'm new to wordpress, and i don't know how to code. I would like to make a page where all my animes are sorted by alphabet, like in this image I've heard about the wp_list_category function, so i ...
0
votes
2answers
45 views

Show posts of one category only with Custom Taxonomy on single.php

I have created a custom post type named 14kgold. Under this I defined two categories: Symphony and Noir. Now I added items/ products to each category. When I open a product under one category i.e. ...
0
votes
0answers
11 views

Custom post taxonomy

How can i add category name field for other language for custom post taxonomy?Here are only one field for English.
3
votes
1answer
80 views

WP_Query to show post from a category OR custom field

I am looking for a way to show posts that belongs to a specific category or if they have a custom field. If I specify both parameter 'cat' => '9' and 'meta_key' => 'featured' in query arguments ...
-1
votes
0answers
26 views

Warning: Invalid argument supplied for foreach() on category selector

This is for users to select a category for their post on the front end. It has been working but I noticed in the source code if you inspect element on any category in the drop down you see Warning: ...
-1
votes
0answers
15 views

How change one of category page?

I have a little problem with Wordpress customizations. I want to change one of Category Page (for example this is category with ID=2). All modifications I have in content-category2.php file (this is ...
0
votes
2answers
28 views

404 error when i try to search by category or by tag

I have following problem. When I try to search by tag or by category, I have 404 error. It means that when URL is like "domain.com/category/smt/" or "domain.com/tag/smt/", I have the error. I tried ...
1
vote
4answers
809 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 ...
2
votes
1answer
38 views

Alphabetically ordered category list

I'm trying to achieve something like this: A: Parent Category Starting with A Child Category Child Category Child Category Another Parent Category Starting with A ...