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

Pagination for categories with a different amount of posts on first page not appearing on 2nd page

I wish to show a different number of posts (4) on the first page of a category page, while showing a different number of posts on the following pages (16 posts on each). I have an extra condition for ...
-1
votes
0answers
10 views

No-index categories on woocommerce [on hold]

This is my first post here and i dont know if there is topic that would help me (was searching for solution but dont find things that would interes me). When I go to google and write site:mysite.com ...
1
vote
1answer
16 views

Exclude all subcategories in the_category (post)

I'm looking for a way to hide all the subcategories based in my post: It always displays in my posts like : Categorie, sub categories. So I'd like to exclude all of the sub_categories. I've been ...
0
votes
1answer
18 views

$args Orderby The number

I have this code $cat_args=array( 'include' => '42,210,21', 'orderby' => '42,210,21', 'order' => 'asc' ); $categories=get_categories($cat_args); foreach($categories as $category) { ...
0
votes
0answers
10 views

how to make separate category term archives by post type

I've searched around, and many others are struggling with similar questions that don't seem to have been answered well. So please help reduce this misery! Suppose you've got an off-the-shelf ...
0
votes
0answers
13 views

Wrong category being displayed in URL

I'm a newbie to wordpress so please bear with me. I have two categories I'm using, basketball and baseball. I've only recently added the baseball category and if I add a new post with category ...
0
votes
0answers
9 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 ...
1
vote
2answers
32 views

Exclude Posts From Specific Category from Next and Previous post links

I've been searching for this a lot...but all I get is not what I need. I simply want to show next and previous links on single.php (from all the categories, based on publish date, not just in the ...
0
votes
2answers
26 views

Getting URL of archive (category) page

I'm trying to retrieve the current URL of the page, which works everywhere except for archive pages, for example, a category page. On a category page, it shows as the most recent post in that ...
0
votes
0answers
5 views

Woocommerce Plug-in: Woocommerce Category Banner - Add Category banner to single product [on hold]

Using the plug-in "Woocommerce Category Banner" I am able to insert a banner image onto each woocommerce category page (though the plug-ins added banner field on the woocommerce category page in the ...
0
votes
2answers
32 views

WP_Query: Mixing category__in and tag__in together

I'm creating a "Related posts" section for my theme, based on a tutorial from wpbeginner.com. It offered two options in selecting posts: those in the same category(ies), using category__in, or those ...
0
votes
0answers
16 views

How to display Parent categories and Child Categories?

I struggleing to find the best way to develop the below. Basically my website will have a landing page on the site (Sports Landing Page) and when the user clicks on a category on that page eg ...
0
votes
1answer
25 views

How to check if a post is in categories x,y,z inludint their subcategories

I am trying to check whether a post is in categories X, Y, Z (including the subcategories within them). This is the piece of code I have tried in my single.php: if ( in_category(array( '1', '2', ...
0
votes
0answers
22 views

get the categories of current post (in loop) that are child of a specific category [duplicate]

I have a small issue Need to get the categories names of my current post within the loop. But i need only those that are child of a specific category that is not assigned to my post. I have tried ...
0
votes
1answer
41 views

Display page of custom posts?

I have a custom post type, "design_asset". I am displaying them on a page template, with the loop <?php rewind_posts(); $paged = ( get_query_var( 'paged' ) ) ? get_query_var('paged') : 1; $args = ...
0
votes
1answer
30 views

wp_list_categories and custom post types

I'm confused. I have a custom post type "asset". I created posts, and they are all at /asset/post-title I assigned categories to the custom post type, e.g. "patterns" The categories page shows the ...
0
votes
1answer
29 views

How can I just show portfolio items from 1 category on portfolio page?

I have a website I am setting up for a client of mine which has a portfolio page which you can see here... http://lenhamsportscars.com/cars-for-sale You will notice that there is an option at the ...
0
votes
2answers
36 views

Looking to exclude blog posts from category Previous/Next buttons

I'm working on some conditional elements here and I thought I had it but it's still not working right. You can see my site here. What I've done is displayed only category Legal Libation Columns (98) ...
0
votes
1answer
20 views

get_adjacent_post_link excluded_terms ignored

I call the function ´get_adjacent_post_link´ using the argument ´$excluded_terms´. But this argument is ignored. This is how I call the function. get_adjacent_post_link( '%link', '<span ...
0
votes
1answer
33 views

Conditional category & tag statement

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts in a category on my wordpress website. I'm hoping to have "Published in Orchard and Vine Magazine on:" instead of ...
0
votes
1answer
29 views

Best way to structure article and issue relationship for CPT

So I've got an area of a new WP site I'm building that has a requirement for an Issue and Articles and I'm not entirely sure on how to structure it correctly. Think of an Issue like a magazine issue. ...
1
vote
1answer
26 views

Check if a post is in any child category of a parent category

In a site I'm developing, I have the following category structure: * movies (parent) * thriller (child) * comedy (child) * drama (child) The current post is in the comedy category. The ...
0
votes
1answer
20 views

Problem to show custom post type in archive page category wise

I was facing problem to show custom post type post category wise. Then i found to solve the problem . i wrote below code in function page : function my_blog_category( $query ) { if ( ...
0
votes
0answers
9 views

Getting categories from DataBase & WP Favorite Post

I am trying to create a shortcode that pull the most saved posts (using WP Favorite Post) and displaying them by YEAR, MONTH or CATEGORY. So far I have been able to get the year and month working ...
0
votes
0answers
12 views

category results within page template

to paint a clear picture of what i am trying to achieve, i will describe my current wordpress theme setup: in my theme, i am making use of the following content types: posts, pages and custom content ...
0
votes
1answer
18 views

Widget dropdown always displays first option

I have a custom widget that I have made but whenever I change the dropdown value it always reverts to the first option when I save the widget. How can I have it display whatever option the user ...
2
votes
1answer
83 views

How can I reduce the number of database query calls for this custom homepage?

I am working on the design of a blog with the below(just a sample) category hierarchy. PARENT | ...
0
votes
1answer
47 views

IF have_posts contains posts from a certain category

This issue is still unresolved! Big request to the experts in short essence: How can i ask in my WP template, IF the whole array of have_posts contains any post from a certain category I programmed ...
-1
votes
1answer
42 views

Why does my subcategory URL give 404 eror?

I'm using WordPress's standard theme Twenty Fourteen. Here is my problem Not Working: http://ispeedify.com/internet/paypal/ I've made my "PayPal" a sub category of the parent "Internet". But the ...
0
votes
0answers
35 views

Most efficient way to have 1 template for parent, 1 template for child categories?

This is the setup I want: For category-15.php: Child Category A (list of all posts inside) Post A from Child Category A Post B from Child Category A Post C from Child Category A ...
0
votes
1answer
38 views

How to only show parent categories in sidebar

How to only show parent categories in sidebar? But also when browsing posts, to show all the subcategories of the parent category the current post is in, showing the hierarchy. the other parent ...
0
votes
0answers
26 views

Post Categories Meta Box: Customize Most Used Tab

On the Edit Post page, within the Categories meta box, I’m looking for a way to put custom categories into the Most Used tab for easy category selection. The issue: There are a large amount of ...
0
votes
0answers
9 views

Change the default Category selection from a checkbox to an optionbox [duplicate]

Is there any way to transform the default "Category" taxonomy menu in the admin panel (once in a post) from a checkbox multi-option to a checkbox single option, or an option box. My aim is to prevent ...
0
votes
0answers
14 views

Make an array listing custom taxonomy

I am trying to populate an array with a list of categories in a custom taxonomy I created. The taxonomy, called clips, has a slug called clipcat. I only want the array to populate with children of a ...
0
votes
2answers
45 views

Category foreach Paging

I'm using the following code to display categories on my homepage, what I'd like to do is add the ability for paging with previous and next links, I haven't been able to figure out how to do this with ...
0
votes
1answer
84 views

Single.php Category Post Count

I have the following code in my single.php file: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); next_post_link('%link', 'Next', TRUE); ...
0
votes
1answer
14 views

Get category id for a custom category and display it in a class

I am having trouble displaying my custom category ID to my li ID. The code I am using below is displaying the post ID of the post category instead of the custom category. What I am trying to do is ...
0
votes
1answer
28 views

Match two taxonomies to display a specific content

I have a page divided in two bars. The left bar is a side menu, which shows contents for a specific country (ie: if I am in the Mexico page, there are options listing Cancun, Acapulco, Mexico ...
0
votes
1answer
18 views

Include category name in page template

The theme I am using inserts and styles the page title using this code. I would like to display the category name depending on whatever it is for that category. I have tried a number of methods but ...
0
votes
1answer
17 views

How to add a new child category via an SQL statement?

I have a parent category named "Europe" under which I need to insert some 20+ child categories (France, Italy, Germany, etc.) What is the SQL statement I have to fire to add - for example - France to ...
0
votes
3answers
50 views

How to select posts from one category but exclude posts in another category?

I am trying to select posts that have category id 4 but exclude posts that also have category id 2 Here's what i'm trying $query = new WP_Query(array( "cat__in" => array(4), ...
0
votes
0answers
29 views

How to display the current subcategory in product overlay?

I want to display the category with the subcategory of the product by mouseover. Here is an example of what I want: https://www.dropbox.com/s/zvddx7nwpyxva0t/example.png. Right now I was able to show ...
0
votes
1answer
17 views

Can I divide the pages into categories?

I wanto know if I can divide the pages into categories? Going into the Wp administration panel I can see that I can create some categories for the posts but it seems to me that I can't do it for the ...
0
votes
1answer
28 views

Show custom post type in archive page by category

I create a custom post type name 'Blog' and Taxonomy is 'Category'. and i also create archive page 'archive-blog.php' to show all custom post. When i click 'mydomain.com/blog' show all custom post. ...
0
votes
1answer
37 views

Custom Post Type used for FAQs Accordion

OK, so I asked this earlier and no one had any answer for me. I have a CPT for FAQs. FAQs are separated into 'categories.' I need the name of the 'category' then a every post within that 'category.' ...
0
votes
0answers
23 views

Breadcrumb display subcategory in parent category page

I'am using Avante theme for my WP website. All my posts have two categories : Main category and subcategory ◊ The problem is that my "Main Category" page displays subcategory in breadcrumb, it ...
0
votes
1answer
29 views

Show all posts of all categories but excluding a category on custom blog page with pagination of my theme

<h3>Recent Posts</h3> <?php // Display blog posts on any page @ http://m0n.co/l $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $temp = $wp_query; $wp_query= ...
0
votes
1answer
49 views

Pagination on child category returns 404

Can anyone figure out why viewing pages in my child categories results in a 404, when the same $paged code works fine for my index file? This is inside of my category-15.php (it's to affect all child ...
0
votes
1answer
23 views

Use blog as base for tags and categories

I have a site: example.com build in wordpress. I set up the posts page as example.com/news. I want my tags and categories to be: example.com/news/tag/mytag example.com/news/category/mycategory ...
0
votes
2answers
51 views

Display subcategories selectbox on each category page

I want to display a select box to switch to SUBCATEGORIES of the current CATEGORY when i'm on a category page. I've the following category structure Category 1 Subcategory 1 Subcategory 2 ...