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

Archive.php filtered by pre-determined category

My archive.php template is formatted perfectly to list out posts from a certain month and year. However, I only want this template to show from a specific category. I can query for the specific ...
1
vote
1answer
2k views

wp_list_categories() - current-cat class also inside posts?

I wrote my own function to list all taxonomy terms of a certain taxonomy … function wr_list_taxonomy($taxonomy, $orderby, $hierarchical) { $show_count = 0; $pad_counts = 0; $title ...
1
vote
0answers
124 views

Latest comments from each category?

On the "home"-page I'm trying to display the most recently commented-on post for each category. I managed to display the most recently published post for each category, but if an older post from each ...
-2
votes
1answer
373 views

What Is My Fault With This WP_QUERY ? [ Pagination Problem ]

I did a photo gallery with custom post type. The pagination works correct but, if I click to a category, then it must show all photos of the category with pagination, but page 2 not found. You can ...
0
votes
1answer
1k views

Category List with custom urls

How do i get the list of categories as wp_list_categories does but using get_categories and then displaying the links in a foreach loop. The reason is i want the links to point to the current page ...
2
votes
0answers
85 views

Get page content by category or tag

I'm trying to sort of emulate the Views behaviour in Drupal with Wordpress, but doing it in theme templates. Now, I have pages that are assembled by using wp_query in the template to get posts ...
1
vote
0answers
94 views

category pagination got broken suddenly

i need some help here please! The pagination just stopped working suddenly with the default post type and default wp query, with plugin "wp-paginate" or even with next/prev arrows! It echo 404 error ...
1
vote
1answer
316 views

Show recent posts from one category on a non-WP site

I'm trying to move back to WP for our blog, after struggling with a clunky CMS for a few years, but we'll be sticking with that CMS for the rest of the site. Is there a plugin (or code) that I can use ...
0
votes
1answer
515 views

How to display subcategory articles in the category view?

I have the wordpress category widget installed on my website that lists all categories/subcategories on my site and their hierachy: Watch Accessories (1) - Straps (1) Watch Glossary (5) Watch Guides ...
0
votes
2answers
160 views

how do you prevent showing a particular category on the admin dashboard for specific user roles?

I'd like to prevent the "Featured" category from appearing for certain user roles. To be specific, I want only the admins and editors to be able to see and thus select or unselect that category. ...
0
votes
2answers
2k 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
1answer
44 views

how to style an individual page in a category [duplicate]

Possible Duplicate: How to show a post single post in page template im trying to understand how to target a template for an individual post. if i use the following hierarchy for my site, ...
0
votes
1answer
112 views

How can i remove the posts category class names from body_class

I have 2 categories, just to make an easy example, Cars and Bikes. I have a post that fits both of the category. If i visit the Cars category, the body_class looks like this: "archive category ...
0
votes
1answer
521 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 ...
1
vote
0answers
254 views

Categories in admin interface: can they be collapsible?

I have many hierarchical categories, some of which have the same names. Can I add collapsible categories functionality in the category selection widget in the admin interface? I refer to the ...
1
vote
0answers
84 views

Category RSS feed doesn't show category name

I'm pulling an RSS feed from a custom post type "blogs" under a category of "workers-compensation". Here is the URL: http://www.company.com/category/workers-compensation/feed/?post_type=blog The feed ...
1
vote
2answers
1k views

Is there a way to have duplicate category slugs?

Wordpress sometimes is plain limiting, and some of its logics I just don't get... For example if I have two parent directories: parent1 parent2 with subcategories: parent1 sub parent2 sub ...
0
votes
1answer
59 views

What's a theme that properly handles previews of different types of posts?

I would like to build a WordPress theme that displays customized previews of the latest posts from different categories on the site homepage. For example: a video post would display a small video ...
0
votes
1answer
544 views

Category Template: Need to display different content on first page of archives

So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
1
vote
2answers
1k views

How can I get category ID by category name?

I have a few categories with the same name [some of them are sub-categories]. And I want to get an array of ID's for certain cattegory name. I tried this: $term = get_term_by('name', $cat_name, ...
1
vote
1answer
1k views

programmatically adding categories to custom taxonomy

wp_create_category() adds new categories to the 'content' taxonomy associated with the post type... Simple question really neither wp_create_category() or wp_insert_category() allows configuration ...
0
votes
2answers
1k views

If custom category search then page 2 not found

I'm using a custom post type named fotograf. If it shows all photos in archive page, no problem. It finds photos in every page. But if I'm search a custom category in fotograf custom post type, then ...
1
vote
0answers
465 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div ...
1
vote
0answers
217 views

custom post type category link redirects to index

I'm using custom post type named "fotograf". I want to show every post's category with <?php the_terms( $post->ID, 'fgaleri', '', ', ', '' ); ?> But if I click category then it redirects ...
0
votes
1answer
702 views

the_category() doesn't working in wp_query loop

I'm using custom post type. I want to show every post's the most child category on archive page in wp_query loop. But the_category(''); doesn't work. What should I do? I need your help. Sorry for my ...
2
votes
2answers
5k views

Search by word, category, tag, author

I want to make a search page, offering search functionalities by: 1) word 2) tag 3) category 4) author Can you recommend any technique, any guideline as per how to tackle this?
1
vote
0answers
102 views

(Solved) category link not working [closed]

I created a theme using wamp. It works fine and all, but when I uploaded it to the server, I am having problems with categories. It always generate this url: http://deremoe.com/reviews/ this is what ...
1
vote
1answer
151 views

If in category to be inside of a function

I have this code in WordPress index.php and I was wondering how can I transfer this in to a functions.php to be a part of a function? <?php if (in_category('featured')) : ?> <a ...
2
votes
1answer
1k views

Remove “Parent” Selection When Adding/Editing Categories?

I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen. http://example.com/wp-admin/edit-tags.php?taxonomy=category I was able to hide the ...
2
votes
4answers
5k views

How to display non-hierarchical taxonomy as terms with checkboxes?

I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
2
votes
1answer
5k views

How do I get the slug of a custom taxonomy category of a post?

In my template file, I loop through posts that are categorized either web, print, or marketing in a custom taxonomy portfolio. How do I echo the slug of each posts category?
1
vote
1answer
1k views

How to use get_categories() with Event Organiser plugin

I want to display my categories in tabs. All is good, except my "Upcoming Events", created with Event Organiser (awesome plugin at http://wordpress.org/extend/plugins/event-organiser/), are not being ...
0
votes
1answer
180 views

Conditional category query breaking?

In my loop.php (see below) I basically have a condition where if the page is not paginated (i.e. if the URL does not look something like this: example.com/page/2) then display 2 posts with a category ...
1
vote
1answer
61 views

Should I use posts or pages in this scenario?

I'm considering using WordPress as the CMS for the website of a small clinic. There are only two sections with sub-sections: team and methods. Team contains each of the team members and Methods ...
0
votes
2answers
475 views

Display Parent Category of a Post belonging only to Subcategory

So basically, I have posts assigned to only subcategories and not to categories (this is so both of them get displayed in the premalink) and in the post page only the subcategory is displayed. I want ...
2
votes
2answers
2k views

Customizing Default Categories Widget

I am trying to hack the default categories widget from wordpress. I have the categories displaying the way I want but I am having trouble editing the output. The widget shows the number of posts in ...
1
vote
2answers
322 views

Get last post date yesterday from each categories not work & double result post

<?php $categories1=get_categories('orderby=post_date&order=DESC'); function filter_where( $where = '' ) { $today = date('Y-m-d', current_time( 'timestamp' )); $yesterday = strtotime ( '-1 day' ...
0
votes
1answer
920 views

Different Category Headers using in_category and elseif

At the moment I'm trying to figure out why this snippet is not working basically I want to display a div id for different categories. I'm using the following. <?php if (in_category( ...
0
votes
1answer
58 views

How to change amount of categories listed on dashboard?

I have 100+ categories & sub-categories for a site I'm working on. How can i change the amount displayed in the list of categories (default 20 per page) on the dashboard?
3
votes
3answers
678 views

Deleting default category in wordpress

I'm looking for a way to delete default category functionality in wordpress but after i delete the default category in wp_terms table in mysql database, it automatically assigns default category to ...
1
vote
1answer
1k views

Using WP Category Lists Plugin to Dynamically Display Category (PHP)

I am trying to use the Category Posts (WP-CPL) plug-in on a blog I'm working on to filter 'Recent Posts' by category. Basically, when someone clicks on the category name on the blog, I would like it ...
2
votes
0answers
211 views

How to sort posts by last name (2nd word) on ONE category only?

I have an "author" category that is used as a list to browse multiple posts containing author biographies. I have Smart Category Ordering installed and right now it is sorted by title ascending. ...
0
votes
1answer
47 views

Autolinking keywords in text with tags

Sometimes in my posts I use the keywords that exists in my tags and categories list. Is it possible to automatically link the keywords in texts with the tags and categories? Or should do it manually ? ...
0
votes
1answer
187 views

not empty categories don't show in menu [closed]

I'm trying to resolve a problem i have showing category posts. I have added a category to my main menu, eventhough it has posts - in the basic theme it doesn't show, in my theme - it shows as a link ...
1
vote
0answers
43 views

menu using category and tags

I'd like to do (somehow) manual menus that would display all posts within certain category. Eg, I'd have sections "applications" and "games" so now i can do this: ...
1
vote
1answer
2k views

How to Import Categories with Descriptions from a CSV File?

How could I import a list of new categories and category descriptions from a file of Comma Separated Values?
0
votes
2answers
1k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
1
vote
0answers
129 views

Order by category titles

I have a category page called 'features' this is all fine, but the posts in the features category also belong to a certain genre of film, and it's this what I want to order the posts by on the actual ...
0
votes
2answers
383 views

Get category id when SEO URL is turned on

<?php /* Plugin Name: Members */ function myFilter2($query) { if ($query->is_category) { $currently_listing_categories = ...
0
votes
2answers
148 views

How to create category page

Anybody could help me to make a category page only. Thank you.