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

Display current category title on category page

Using the following code in a category template, but instead of showing the current category page that I am on, it displays the first category of the first post. For example on Food category page it ...
0
votes
0answers
22 views

How to set a category by day name?

I have a category for each day. Sunday, Monday, Tuesday, etc. I want to show this category fixed depending on the day of the week. I'll also have other categories to filtering. So, the category day ...
0
votes
0answers
67 views

How to show only subcategories in parent category not parent category?

I just want to show only subcategories of specific parent category on parent category page. I have 1 parent category videos and 3 child categories art,funny,and technology of that parent. I didn't ...
0
votes
1answer
51 views

How can I list custom post by custom category?

From some references I wrote a code for create custom post type (journal) and taxonomy using following code. It works fine. Next I am add a new category from admin side for my custom post type ...
-1
votes
1answer
22 views

How to create categories out of a list of words?

I have a simple text file with a list of words (Berlin Hamburg Stuttgart ...) and so on. They are cities of germany an nearly 2000 counted. I need everyone of them as a category in my wordpress site ...
0
votes
1answer
40 views

Custom category for posts via XMLRPC

I have a blog located at one site that when I post into a category, it will auto-post via XMLRPC to another site of mine. This functionality works, but I would like to assign a category to these ...
0
votes
1answer
32 views

Displaying posts from a Category where the Category ID or slug is not known

This may be a really simple question but I've struggled to find an answer either searching here, WP forum or via Google. I have a number of different categories and I would like to use just ...
0
votes
3answers
37 views

How can I add single catogory for custom post type?

I am add new post type called journal using below code it works fine. But I now I need to add a single category for this post type. That is I have two types of journal category normal journal and ...
0
votes
1answer
60 views

Custom WP_Query for current category (in category.php)?

I'm using a small code to display a tag list for the current categories like below: <?php $custom_query = new WP_Query('posts_per_page=-1&category_name=overnachten'); if ...
0
votes
1answer
42 views

How to show post from category select

This code is in my functions.php: array( "name" => "Headline", "type" => "section"), array( "type" => "open"), array( "name" => "Headline Categories", "desc" => "Choose a category ...
0
votes
0answers
46 views

Get Terms (Woocommerce Cats) in the order which is set in the Backend [on hold]

I want to have a category list, which lists the product cats in teh order, they are set in the backend. This is my current code: $categories = get_terms( 'product_cat', array( 'orderby' => ...
0
votes
0answers
69 views

Best Way to Create Multi Level Categories/Taxonomies

I am looking for experience on the best way to create multi level categories. I am building a WordPress site for an organization that sells plant seeds. They have five levels of organizing their ...
0
votes
0answers
33 views

Taxonomy for costum post type not found

I'm trying to use taxonomies to create categories for my costum post type. I registered the necesary components: add_action( 'init', 'create_post_type' ); function create_post_type() { ...
0
votes
1answer
35 views

How to change the thumbnail size to a specific category?

I am using thumbnail on my blog posts. I added the following code in my functions.php for that purpose add_theme_support('post-thumbnails'); set_post_thumbnail_size( 328, 228, true ); It's ...
1
vote
0answers
35 views

Plural Category Base Slug On Category Archive Page

I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with ...
1
vote
0answers
25 views

Category and guest post with 404

i use twenty twelve theme in wp with plugin of guest post and redirection because if any of user click on category and blank category shows a guest post page in redirection plugin i set one category ...
1
vote
1answer
29 views

Custom Post Type With Categories

I have copied custom post type code from WordPress and modified and added to function.php but Where is the categories box. I cant seen anywhere. I want also for this post. I am not good for ...
0
votes
1answer
39 views

Custom CSS to resize elements in multiple categories

I am using the following custom css (in a WordPress theme) to resize a certain element but only if it is in a particular category: .category-69 #main {width: 300px!important;} .category-16 #main ...
1
vote
2answers
154 views

How To Get Parent Category Slug of Current Post

My theme has styling by category using the following code, which inserts the current category's slug as a CSS class. <div class="CategorySpecificStyle <?php $category = get_the_category(); ...
1
vote
1answer
80 views

exclude post from displaying in loop if it is in a category, but not in many categories

I am searching how to exclude posts from displaying in a loop if them are in a category x, but not in many categories... The Problem: if I do exclude posts i.e. out of category 5, all posts are listed ...
0
votes
1answer
42 views

How to Highlight current category on category and single page template?

On Wp Forums, I found a code that shows categories with images and it works very well. But I couldn't figure out how to highlight current category on category.php and single.php Here is the code that ...
0
votes
0answers
26 views

Category and Sub category

There are two main categories such as Job by Education and State wise jobs, if a Job related post is posted how the post can be listed in both the two main categories and sub categories,
0
votes
0answers
19 views

Wordpress Native Function To Show Publish Box, Select Categories Form etc On Plugin Page

The picture above showing the default forms those are available on metabox of wordpress post/page editor screen. Is there a wordpress native function to show those forms on a custom plugin page ...
0
votes
0answers
56 views

Infinite scroll and ajax not working properly

I have category page (work) which list all the work post in this category. I also plug infinite scroll plugin which load next post of the same page. On click I load content of that post. but in next ...
1
vote
1answer
100 views

Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms

I am using Isotope to filter posts on the fly from my archive pages. I have a Custom Post Type called "art". On the sidebar, I've created links to yearly archives on my sidebar, i.e. 2014, 2013, ...
0
votes
0answers
26 views

Trying to create hierarchy between 3-4 custom post types

I am trying to think of a way to create a certain hierarchy between several post types. I was looking at term_taxonomy table, and its seem to have the capability to achieve that. I have a feature to ...
0
votes
1answer
39 views

Return category posts with WP_Query

I have a some categories and want to get the posts with those categories: $temp = $wp_query; // assign ordinal query to temp variable for later use $wp_query = null; $wp_query = new ...
0
votes
1answer
216 views

ACF: Display category name using taxonomy field

I'm currently using the taxonomy field in ACF, with the aim of printing the category name in the front end. Using it like so: <?php $term = get_sub_field('category_selector'); if( $term ): ?> ...
0
votes
0answers
33 views

Display Category only if there are posts of custom type

I need to do a small modification on WP site done by someone else. And my WP experience is close to zero. But I'm comfortable with PHP. Wordpress Version: 3.8 Plugins: ONLY Advanced Custom Fields ...
0
votes
0answers
46 views

WP No Base Permalink only works with logged user (admin)

(My apologies for my poor English, I'm french) I just want to have a shorty URL for all page of my WP Site: www.example.com/wordpress-answers-is-a-good-site for my posts insteads of ...
0
votes
0answers
25 views

DESC order not working when showing only child categories

I'm using this code below to print all my children categories with their parent name, but it only works with ASC order, if I change to DESC order, it shows an empty result. Is there anything I can do ...
0
votes
1answer
28 views

Children categories not shown in dashboard

First of all: it's a strange behavior, but it works. 1) I'm working on a script, so i require the wp-load.php and after that i operate; 2) The scripts creates some categories using wp_insert_term in ...
1
vote
1answer
25 views

How can I setup a relationship using categories in WordPress?

I am trying to setup a relationship between a "People" post type and a "Work" post type. For example, I want to have a structure like this Person 1 - Work - Work 1 - Work 2 Person 2 - Work ...
2
votes
1answer
80 views

get custom post type categories

From http://codex.wordpress.com: $categories = get_categories( $args ); $args = array( 'type' => 'post', 'child_of' => 0, 'parent' => ...
0
votes
2answers
40 views

How can I change the tooltip in the_category?

My use of the_category works fine, but I want to change the tooltip, which says "View all posts in (category name)". How can I change this tooltip? I guess this might be something similar to this. ...
0
votes
2answers
62 views

Test if a Category contains certain Custom Post Types

I have several Custom Post Types and several Categories. Within my pre_get_posts hook (in functions.php), I'm changing the chronological order for very specific Custom Post Type archive pages. ...
0
votes
3answers
64 views

Add a category on all archive category pages

I wonder if it is possible to have the default category WordPress on all category archives? Here is my situation: I created a website of video games and I renamed the default category ...
0
votes
0answers
58 views

Using get_terms() as shortcode attribute

Hop you pepople would be fine. I'm creating a shortcode with the following code. $categories = get_terms( 'project-type' ); foreach ($categories as $category) { ...
0
votes
1answer
50 views

How to organise post by category and date

I'll try to be as clear as possible. I'm working on a project that requires posts organised by category and date. I need something like this: First step: Annual listing of archive 2014: Jan Feb Mar ...
0
votes
3answers
80 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
0answers
19 views

How to style only part of the category names?

My categories are all two words, such as: Name X Name Y Name Z How can I style the X, Y, Z as bold and leave the Name as normal? I can do so in the menu, simply by adding <b> tags around the ...
0
votes
2answers
33 views

How to properly use Categories with Custom Post Types

I'm really struggling with this... I created a few Custom Post Types, let's say... Books CD's Maps Now I also have a whole bunch of existing categories and some of these would apply to more than ...
0
votes
2answers
45 views

Create menu locations for each category in wordpress

I need display a special menu in each category page in wordpress, for example I have 3 category: horse,dog,cat So I must have 3 menu in Menu Settings locations with name: horse,dog,cat with this ...
0
votes
0answers
9 views

Reduce repetitive code filtering custom post type categories [duplicate]

in category.php I have: if ( is_category('cat-1') ) { $the_query = new WP_Query( array ( 'post_type' => 'mueble', 'category_name' => 'cat-1' , 'posts_per_page' => 3 ) ) ; } if ( ...
1
vote
1answer
66 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
1answer
15 views

Loops in category description

I would like your help to find how to do a thing I need: I have some posts, for example: Article Title: Banana Article Title: Orange Article Title: Lemon Article Title: Strawberry All this ...
0
votes
2answers
141 views

How to display custom content in post with category XXX

Let’s say I have one post with tittle "Dummy one" and that post is filed under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category three etc. and now I ...
2
votes
1answer
49 views

Permalink Settings: optional settings doesn’t apply to editor

In my WordPress 3.8 in my "Permalink Settings" I've chosen the option "Post name". Then I've added "Optional" for "Category" ( %category%/%postname% ), the URLs works like I wanted - ...
0
votes
2answers
25 views

Apply custom category template to subcategories

Hello on my wordpress site I have a custom template for category A with slug (cat-a). I created a category-cat-a.php file to give this category a custom layout and this works without a problem. I am ...
0
votes
0answers
140 views

Make custom menu widget title dynamic for woocommerce product categories [on hold]

I've tried several things and I can't figure this out. What I want to accomplish is to use the custom menu widget with a certain menu and have the title dynamically change depending on which category ...