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)

1
vote
1answer
573 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
310 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 ...
1
vote
2answers
804 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 ...
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.
0
votes
2answers
470 views

Category link redirect to custom template page instead of index.php?

I want to make template page for my custom taxonomy. I have custom taxonomy categories listed as navigation links. It's the country list (China, Slovenia, Serbia...). Every of this categories has ...
0
votes
1answer
439 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
0
votes
1answer
661 views

Listing Specific Categories from Current Post with Depth

I've been on this for sometime and been having a ton of issues to find a proper way to do what I'm trying to achieve. An Example would be as follows: I have a featured Image with a rollover and I ...
1
vote
1answer
494 views

Checking for two categories in query_posts

How can I check two category_name values in the following query_post? <?php query_posts('category_name=recent-work&posts_per_page=1'); if (have_posts()) : while (have_posts()) : ...
4
votes
3answers
1k views

Category page doesn't use category.php, instead it redirects to homepage

I am currently modifying a theme. This theme doesn't had a category.php I needed a custom category page. So, I made one. It works on my local server, but when I uploaded it to a real server, this page ...
-1
votes
1answer
55 views

Create monthly archive for parent category

Part of the website I'm working on is meant to function like a monthly magazine, with a few different departments. So I have 'Magazine' set as the parent category, and say 'Art' and 'Music' as child ...
1
vote
1answer
2k 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 ...
1
vote
1answer
437 views

How to make a Thumbnails Mosaic

I would like to make a mosaic with all the post thumbnails of a category and use it as the heading image on the category page. How do I go about achieving this? Where do I start? Any suggestion about ...
7
votes
1answer
2k views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
0
votes
1answer
68 views

Category with description and thumbnail

I am using the below codes to show all Parent Terms from a custom taxonomy with title and link on a page. But I want to show the parent term description, thumbnail and post count in it too. So how I ...
0
votes
2answers
25 views

Number of posts in page - set per category and exclude sidebar

I have a widget in the sidebar that shows recent posts. The code below works to set the number of posts per page in each category, but it also affects the sidebar. Is there any way to exclude the ...
0
votes
2answers
909 views

Display post from specific category

I'm trying to display posts from specific categories. And I believe I have the correct code: <?php if ( in_category('11') ) { ?> <div class="post"> <h2><a ...
0
votes
3answers
974 views

Get id of category from drop down menu

Im trying to get the category ID from wp_dropdown_categories();and then pass the ID into a loop to have it output posts titles from that particular category. I currently have this: <form ...
-1
votes
1answer
35 views

Template for product-category page [closed]

Where can I find the template that is used for the product-category page? The general template is "page-full.php". But where is the template for the single-product page (single.php?) and the ...
0
votes
1answer
308 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
55 views

Add category attribute to custom recent post shortcode

I have a recent post shortcode to display a custom post. Everything works fine so far. However, I would like to add a category attribute so I can specify which category to display. My working code is ...
0
votes
0answers
15 views

Order main loop by category and then post_date

I'm creating an "announcement" post category. I'd like those posts (using the category id) to appear first in the main loop sorted by post_date desc and then the rest of the posts sorted by post_date ...
0
votes
0answers
28 views

Show Post number of specific Category

I want to show post number of specific category. I want to show it around post navigation For example Post 3 of 13 The code for total # of posts in a category: <?php $post_cat ...
0
votes
2answers
404 views

Display post thumbnail for specific category outside the loop

I'm building a theme that features a section wherein I'd like to have the single most recent post's thumbnail of a single category displayed between the header and blog sections. Something like ...
0
votes
2answers
3k views

Why Pagination is not working on Category.php

There are two different category "Life Sciences" and "General Lab" and there are sub-categorical product on "Life Sciences". Now "General Lab" category want to fetch all the sub-category and products ...
0
votes
2answers
1k views

Pagination on category.php and tag.php not working

i'm using a query-loop on my template pages like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query(); ...
0
votes
0answers
8 views

Wordpress conditional dropdowns in custom post edit

I grabbed this question from another post, I couldn't find an answer. Can someone assist. What's the best way to do this. Thanks I have created a custom post type and a taxonomy for it. Here is an ...
2
votes
1answer
334 views

How to put enctype=“multipart/form-data” in categories form?

I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible? Thanks. add_action( ...
0
votes
2answers
51 views

Select posts from Category

I am trying to filter posts from category. This category is called "images" And I have the code below: <div id="owl-images" class="owl-carousel"> <?php ...
4
votes
1answer
398 views

Using wp_category_checklist in a widget

I'm trying to use wp_category_checklist in a widget to display a list of checkboxes which, when saved, remain ticked. I'm having awful trouble at the moment getting them to save, as as far as I know ...
0
votes
1answer
17 views

List Terms by category

I have a custom taxonomy called portfolio-type. The terms = post_type is portfolio and category is portfolio-type I'm trying to fetch related post of the same category of current post <?php ...
1
vote
2answers
67 views

List posts in alphabetical order

What I'm trying to achieve is to set the list shown in alphabetical order. Any thoughts on how i can successfully achieve this? I have pasted the snippet below for reference. <ul ...
0
votes
1answer
43 views

Navigate posts with different post type that are in the same categories

I created two custom post types that share the same category taxonomy. I'm using next_post_link() and previous_post_link() to navigate through posts with the same category but it only works for ...
0
votes
1answer
309 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
0answers
105 views

Custom SQL Query: Get all posts with category id and a concated list of tags on each post

I am trying to select all posts from a WordPress database, include few fields on each post, but most importantly I would like to also select the "category id" or each post, and ALL the tags that ...
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 ...
1
vote
1answer
279 views

Previous/next link to post in category, NOT tag?

On a single post page I have the following code after my loop: <?php previous_post_link('&laquo; %link') ?> &#124; <?php next_post_link(' %link &raquo;') ?> For some ...
0
votes
2answers
22 views

Undefined property: stdClass::$id when retriving term ID

I have the following: foreach( $this_post_terms as $term ) : $thiscat = get_term_by( 'slug', $term->slug, 'categories_whatever' ); echo $thiscat->ID; endforeach; The last line throws an ...
0
votes
0answers
14 views

Using category/pagename for Pages

I am using a plugin to assign Categories to Pages. I'm trying to set up a navigation that orders pages into categores. This works fine using the Menu Customization Options, but I can't set up ...
-1
votes
1answer
422 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
0
votes
0answers
54 views

Multiple Loops on category.php with pagination on last loop

I'm trying to achieve what should be fairly simple but I've hit a brick wall when trying to paginate the last of three loops on the category.php template. I've read just about everything I can find on ...
1
vote
1answer
298 views

How to create category index table out of wordpress site or on other website?

I want to create a page on other part on my website (outside wordpress directory) where I can show list of posts from a specific category. I am looking for exact solution provided by @toscho here: ...
0
votes
0answers
19 views

Filtering by a certain array of categories

This is my first post. If it's misplaced or not correct in any other way, let me know I'm using a portfolio theme for a furniture company. They wanted to sort by product category (Chairs, Tables, ...
0
votes
0answers
19 views

Grouping parent categories into sections

I have the following post categories: Personal Care Jewelry Health & Fitness Automotive Gadgets Health & Fitness and have two sections: Men and Women, what I'm trying to do is to group the ...
0
votes
1answer
812 views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
0
votes
1answer
28 views

Using categories with pages

I am attempting to use categories for pages (not posts) as a way of filtering child pages. I am working towards having a 'Work' page that lists all its children, and each of these children will also ...
0
votes
2answers
1k views

Displaying list of subcategories and not parent category

I have a blog which has three top level categories. Each top level category has a list of sub categories. I am displaying only certain top level category posts in certain sections of the website. ...
0
votes
0answers
13 views

How to get sticky-posts on front-page working with category query

Im using the front-page.php to display some static content as well as my 5 latest posts in the category "Forsiden" (Frontpage). But the "sticky" post option, is ignored when categorising the posts on ...
0
votes
0answers
25 views

Display parent category with child categories and post count

I want show to specific parent category with child category like a tree see below example main parent catgory (50) child category (25) child category (15) child category (10) ...
1
vote
1answer
698 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 ...