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

Delete Categories and Tags from frontend

There is a function to generate post delete link from frontend: get_delete_post_link( $id ); Are there any functions to generate categories and tags delete link on frontend? I have been looking for ...
0
votes
0answers
9 views

Redirect Domain to a Specific Category

My current blog site hosts the Category-- http://www.soulintentarts.com/the-weekly-rune/ I would like the domain theweeklyrune.com to redirect to the above URL, which is the WP Category The Weekly ...
0
votes
0answers
19 views

Category name as same name as post type

Is it possible to have a post's category name the same as a CPT? I'm running into an issue where I have 2 different pieces of content for the same 'type' of thing. I have written articles that ...
0
votes
0answers
15 views

Navigation Menu Dissapears under categories

I have spent weeks trying to figure this one out. My main navigation menu does not appear under category types. The call to the header for category.php is identical to the pages. For example: ...
0
votes
2answers
56 views

How to make child categories recognize parent's template displays

I'm using the Default Post Type post for various purposes. To sort them I'm using different categories. And I'm designing different category layout using the slug preference, like: category-book.php, ...
0
votes
0answers
8 views

Sort posts by category priority [duplicate]

I have 5 categories and I would like to show All posts. But I want to show "news" category posts at top of page and after other posts in other categories. How I can do this?
0
votes
0answers
64 views

Show subcategories with image only for selected category

I want to display Show subcategories with image only for selected category Code for subcategory : <?php if (is_category()) { $this_category = get_category($cat); } ...
0
votes
1answer
39 views

Category slug not showing for Custom Post Type

I have a Custom Post Type called 'shows' which makes use of the default Wordpress Category function. I can see my 'shows' posts on /category/%postname% URL's, but when I post the URL the slug looks ...
0
votes
1answer
37 views

Same sidebar in all posts as in the category

I've made an option of creating unlimited sidebars, then there is an option to select any desired sidebar from a select element, which is a custom meta field, in each category edit page. So far so ...
0
votes
1answer
32 views

How to make the 'delete' button inactive on some categories?

As currently there's no way to declare any new custom post format in WordPress (3.9.1), is there a way I can make the 'delete' button on some categories inactive, so that the Editor can't remove them, ...
-1
votes
1answer
28 views

Make a category my homepage

I've been trying every way, reading every post, to find out how to get my homepage to show category only. In my case, I will only like to show "travel" I have tried another way is to set it as a menu ...
0
votes
0answers
21 views

Transfering static site to wordpress and retaining category by month paginations

Firstly apologies for the long post. I have a project in the works to transfer a static html new site into a cms. I've chosen wordpress, because it seems to be the easiest to maintain and manage from ...
0
votes
0answers
19 views

Put class on child elements on categories

I'm using this code to show the categories, with the href= "#cat_id" and everything is working perfectly. But i need when show subcategory display: <li class="children"> </ li> Any ...
0
votes
1answer
21 views

Display Referring Category on single post?

My site is built in such a way that every single post (in a custom post type) is accessed via a category archive (custom taxonomy). Every post may have more than one category assigned, but I want to ...
1
vote
0answers
41 views

Category Search functionality on category metabox (wordpress admin)

I have lots of categories on my blog site. When I add new post and select category, I need to scroll down to find the category. Is it possible to add a search category functionality in category ...
-1
votes
2answers
46 views

Get all categories

I'm trying to create a list of all the categories exist for my custom post type. For each category i would like to create a Category Name Link. Could anyone help me in this loop?
0
votes
0answers
49 views

Cannot get the categories of a single custom post

I'm trying to display in a class all the categories each custom post is part of. So for example the wanted output is : <ul> <li><a href="" ...
0
votes
2answers
76 views

Create new custom post and post category of same name

I have a custom post type "Product" and want to create a post category "A Product Name" automatically on creation of a new Product so that the post category (not custom post category) would have the ...
0
votes
1answer
66 views

Loop through posts of CatA and store value of CatB in separate array

Custom post type "Wines" has two categories: Regions & Producers. "Wines" has a value for both a Region and a Producer. I want to loop through posts in [Category => Region, Term => X] and get ...
0
votes
2answers
36 views

Media (images, videos, etc.) not showing on Category page

I'm having a problem where media isn't showing up on the Category page. (It's actually the exact same problem that's described in this WordPress.org forum post, but it's so out of date that the ...
3
votes
1answer
218 views

Exclude categories from Loop, queries, widgets, post navigation

I recently ha a use case where I needed to prevent a certain category from being displayed in the front-end. In detail I needed to exclude posts assigned to that category from the main query (“the ...
0
votes
1answer
53 views

category link not working for a specific slug, works for others

I have setup several categories and set the permalinks to /%category%/%postname%.html with a category base of . to remove "category" from the url. All categories are working except for one with the ...
0
votes
1answer
38 views

Category Templates for Post Types not Working

I came up with this in the codex in order to set my template for a specific category post. I have a category name called "Work". The slug for this category is "work". I created a "category-work.php" ...
0
votes
1answer
40 views

Update wordpress post terms programatically

I am currently working with woocommerce for wordpress and making a custom plugin. I would like to update the product categories manually through my own admin panel, here is what I have so far: ...
0
votes
1answer
23 views

Change category base based on category

How can I change the permalink based on the category? I would like to change the category base based on its category. I want the output to be like this: /news/category1 /articles/category2 ...
0
votes
0answers
16 views

Wordpress category permalinks won't work

Hi for some reason I am having a problem with my category permalinks. When clicking on the category link, it shows only one post from the category instead of showing all post from the category.
0
votes
1answer
42 views

Use Tag input metabox style for Categories

I am using Categories to create news timelines, For example http://newslines.org/misha-collins/ (check the cloud at the bottom of the page for more examples) The problem is in the Add Post screen. ...
-1
votes
1answer
59 views

Show category post order ASC

Below is my category.php page code. I want to order by ASC. How can I achieve this? <div class="content"> <?php if ( have_posts() ) : ?> <h2> <?php ...
0
votes
1answer
25 views

Conditional statements based on custom meta value in category archives

Here's what I need to do. Insert a short Javascript in the footer using wp_footer. No problem there for single posts, I have this. add_action( 'wp_footer', 'prefix_wpfooter' ); function ...
0
votes
1answer
21 views

Highlight posts that belong to current sub category

I'm trying to highlight list items that belong to the same category as that of the current category page. For an example, I have a category called food, with the subcategories: breakfast, lunch and ...
-3
votes
1answer
32 views

Open everything in new tab

I have a blog and there in category section I have a list of categories like story,poem etc. Now in the list of stories, I want that when someone clicks on continue reading, it should open the post in ...
0
votes
1answer
67 views

How to make 10 post of one category

How can I make 10 posts of one category. What query should I use. Here in following query I need its limit of post in per page. <div id="container"> <div id="content" ...
0
votes
0answers
12 views

Order posts by how many categories it is assigned to in total

I'm already doing some custom ordering based on various stored custom fields but this latest one has me stumped. I know I can get the count for how many categories a post is assigned to, but this only ...
1
vote
1answer
356 views

Get category id from post id of a custom post type

I want to get category id from post id of a custom type. I have the post id, but I can't get it's category id. I have used so many codes but it doesn't work, may be due to custom post type. ...
0
votes
0answers
24 views

Show related posts based on inputs given

I'm looking to create a custom feature on one of my site wherein users can find related articles based on the inputs provided. For example: I'm a male or female (drop down) and I like Football (drop ...
0
votes
1answer
96 views

I need to exclude from a query a category and a few custom taxonomies

I need to exclude from a query a category and a few custom taxonomies. Is this code right? This query don't exclude any post, the one with the category, or the custom taxonomy. What am I doing wrong? ...
0
votes
1answer
51 views

Wordpress monthly archive category specific

I have built a specific page to display only the posts in specific children categories. I want to have the monthly archive on the right hand side but only relating to those specific children ...
0
votes
2answers
51 views

advanced custom field Show field in special categry page [closed]

I am a big fan of Advanced Custom Fields plugin http://www.advancedcustomfields.com/ I developed a site where there are 2 types of categories: normal and “custom” most of the categories display ...
0
votes
0answers
48 views

Conditions for single post

I want to add current-page-anchestor when a single post is browsed. I was looking for that function code and tried many, but with not success yet. Now I am thinking I can do it that way, then it would ...
0
votes
1answer
33 views

Display selected category on post page

Lets assume that we have a post which belongs to 2 or more categories and we wish to display, on the post page, the selected category through which we reached to the post page. What is the best ...
0
votes
1answer
70 views

Custom/separate categories for custom post type

How can I achieve a separate "data space" for the categories of my custom post type? I don't want the general post categories to appear in my custom post type and vice versa. The register_taxonomy ...
0
votes
0answers
65 views

How to add an empty entry to masonry?

I am using masonry js library for display posts in my wp installation. The problem with it is that you cannot really add anything between posts entries because absolute positioning is used. So either ...
1
vote
1answer
50 views

I am trying to hide a custom post type category to logged in users with Pre_Get_Posts

I have a custom post type in my theme called portfolio. It's categories are called project-categories. I am trying to exclude a project category for logged in users. I cannot get this to work at all. ...
0
votes
0answers
78 views

Keep active class in post page

I have one category and under this category I have many posts. Normally when I go to my category page from menu it added active class class="current-menu-item". Bellow is the rendered html <ul ...
0
votes
1answer
21 views

how to remove category from database

is there a way to remove the category from the database? I just moving my old wordpress blog (that has the category in url), to new domain (without category). I change everything except the ...
0
votes
2answers
35 views

Trying to exclude posts from a category on the home page

I've tried the code below to grab the cat ID for one of my categories (watch-isatv) and exclude all of the posts in that category. However, the posts are not being excluded. What is wrong with the ...
0
votes
1answer
98 views

How to modify the “View all posts in category” title attribute

I'm tyring to change the "View all posts in category" tooltip you see when you hover over a category link in wordpress. Until now I've always done it in the Wordpress core file named ...
0
votes
0answers
34 views

trying to get paginate_links to work but the query before is not working with multiple categories

I am trying to make this paginate_links work. The thing is I cant use category__and in my query. If I write 'cat' => array(3, 4, 24), It works but I get a message saying it needs a string, not an ...
-1
votes
1answer
39 views

Widget that shows categories with posts numbers

Is there any solution to show categories with posts numbers like 'Archives' widget without changing the font size? UPD0: Sorry if my question is not clear. What I want? We have a pretty nice widget, ...
0
votes
0answers
44 views

Main menu not appearing on category pages

Im creating a theme based on blankslate/Bootstrap and having an issue with the main nav appearing on category pages (seems to appear everywhere else ok.). In header.php: <div class="collapse ...