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
2answers
586 views

Open subcategories in submenu on click in primary menu

I am figuring out a way if we can manage the menu in such a way that when I click on the menu item in the first menu, the sub categories or links that i choose should be displayed in the secondary ...
0
votes
1answer
393 views

category filter doesn't work

I am assuming because I don't have a category template it is defaulting to the archive template, would that affect the outcome. it seems to output all the posts that have categories: ...
0
votes
1answer
89 views

Problems with my conditionals in single.php by category

In my single.php file I would like to have a conditional that checks for the category of the post and display certain images and layout. Here is what I have: http://pastebin.com/dy6TE1yr
3
votes
1answer
6k views

Group WP_Query by category

OK, here's my setup: Custom post type called "issues" (for a magazine) Posts with custom meta field matching the post ID of the corresponding issue. When I'm on a single "issue" post page, I want to ...
1
vote
1answer
570 views

Problem displaying one post from each category

i had been banging my head for almost a day but could not resolve it. i need to show one post from 4 xx categories here is my code <?php $cat_args = array( ...
0
votes
1answer
841 views

Functions.php: Exclude Category from “Blog”

So it's quite obvious to how exclude certain categories from within a template, but I don't want to have to modify 4 templates so that they ignore a certain category. Is there a way that I can ...
0
votes
2answers
172 views

Assign a list of categories with a parent category

I imported hundreds of locations and other categories. Now I have a list of locations in categories to which I would like to assign the "Location" category as its parent. I have tried sql but the ...
0
votes
1answer
1k views

list all child categories that apply to current post even if those cats are empty?

list all child categories that apply to current post even if those cats are empty? everything I tried just shows "post not found" - Have alphabetical listing and trying to create A B C D ...
0
votes
1answer
91 views

Check for parent category

Code below is designed for testing to see if current post is in a category that is an ancestor (child/grandchild/greatgrandchild etc) of cat number 526 $cats = wp_get_post_categories(); if ...
0
votes
3answers
310 views

Category related -> excerpt, title and thumb in sidebar on article page

I've done some research and tried different solutions but this snippet gets me the actual post content in sidebar, when on a single/article page, from the category the post belogs to. But I need to ...
0
votes
2answers
1k views

Sub category templates

I've inherited a Wordpress site that my company built before I started working here. I would go and ask this question of the guy who built it, but he has now left the company. My query relates to ...
0
votes
1answer
127 views

How can I add a page that shows posts from a single category?

Is it possible to add a page that shows posts for a certain category? Do I need to create a page and have it redirect to http://site.com/category/myposts?
0
votes
2answers
2k views

Custom post type archive category page results in 404

I've created a custom post type: register_post_type('campaign', array( 'labels' => array( 'name' => __("Campaigns"), 'singular_name' => __("Campaign"), ), ...
3
votes
1answer
8k views

How can I add the featured image functionality to a custom taxonomy?

I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a ...
0
votes
2answers
2k views

add text to the top of category page

I want to add the text to top of each category page. I am using a plugin http://wordpress.org/extend/plugins/categorycustomfields/ . With the help of this plugin, i am able to add extra field to my ...
1
vote
1answer
1k views

How to add Categories to the top menu of the website?

How can I add links to the categories (for example, Category-1) to the top menu of my WordPress blog? Only Pages appear here.
0
votes
1answer
36 views

Last x Posted Categories?

Is there a widget available that will list the latest x categories according to posting date, essentially providing a list of the most recently active topics?
1
vote
3answers
2k views

wp_nav_menu not appearing for a couple pages

I solved the problem with the page, the correct answer is ptriek's comment below. Well I'm having a bit of an odd problem here, wp_nav_menu works on all pages EXCEPT my category pages (probably my ...
1
vote
1answer
141 views

If statement for catergories

I was wondering if someone could explain how to roughly code this into php: if catergory = Cars && user is unregistered <my code> else <my code>
0
votes
4answers
2k views

Exclude categories from postquery

I asked this question without a clue what was going on. I got an answer with the code below. It worked when I got it. I tested it with shirts only, assuming it worked with the other cats. it doesn't ...
0
votes
2answers
838 views

Code that displays images - images get shown multiple times

On My category.php page i've got a list of categories with the title and the description. Here's the code: <?php $cat_id = get_query_var('cat'); $catlist = ...
0
votes
3answers
2k views

Category pagination not working

My category page navigation doesn't seem to be showing up at all, what am I missing in my coding? <?php get_header(); ?> <div class="inner-page"> <div ...
0
votes
1answer
329 views

How to have a category not show up in query post with page panigation?

Basically I have this loop that shows all post. Inside of it I want to exclude post's from categories including shirts and hoodies, also the gallery category. Here is what I have so far. the code ...
0
votes
1answer
68 views

Not showing list if there aren't any categories to display

maybe you can help: Bellow there is a simple code listing my blogs categories. I need some code that will not display the *ul is there aren't any categories to display* <ul> ...
0
votes
3answers
339 views

How can I show posts for a single category?

Is it possible to show posts for a single category? I tried browsing to the URL http://mysite.com/category/foo which does show all of the posts with category foo, but the posts lose their formatting ...
6
votes
5answers
5k views

How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms

I want to export all Wordpress categories (no posts, just categories) from one blog to another. How can I do that ?
0
votes
1answer
47 views

I need advice on how to structure the categories according to the layout i have

I'm seeking advice on how to structure the categories so it fits well my page structure: The main highlight is a single post and the secondary highlight boxes will probably contain a slides showing ...
1
vote
2answers
589 views

Category List With Comma & Link

Trying to list the categories for post separated by a comma with link to the category archive. <?php foreach((get_the_category()) as $category) { ...
0
votes
1answer
162 views

Check boxes for showing categories

Is there a way to list all categories with check boxes on side bar and when user presses "update" only posts within those categories will show on home page?
1
vote
1answer
1k views

How to display posts under a specific subcategory of a given category

after a long search online I have decided to post my problem here in the hope of getting a solution to this issue. Well, I have a custom post with various categories (novels, books, magazines etc..) ...
1
vote
1answer
892 views

Show category name, and last 5 post titles below category name?

Is there a function that will let me display a category title and the last 5 post titles from that category just below it? Is there a loop which can do this and list post titles of that category in an ...
0
votes
2answers
356 views

How to add image for all posts associated to specified category?

simply i want to add image beside every post depend on the category something like that http://network.smashingmagazine.com/ you will see there is an image beside every post, i want it to be related ...
0
votes
1answer
107 views

Wordpress custom post type post and category links 404

I've recently created several custom post types in a wordpress site, with the code below, they are generating links in the correct form e.g. root/category/id/postname but each link to the full post, ...
0
votes
1answer
1k views

How to divide and display categories into two columns

I am using custom taxonomies. I have multiple categories and each category has multiple children. I would like to display the categories in two columns on my homepage similar to linkcentre.com. I ...
1
vote
1answer
1k views

get_category_link() is returning nothing

<?php $categories=get_categories('taxonomy=galeriak'); foreach ($categories as $category) { ?> <li><a href="<?php echo get_category_link( $category->term_id ) ?>" ...
0
votes
1answer
3k views

How to get posts using category slug in ClassiPress?

I'm using the ClassiPress theme as a base for a new theme. If you have worked with classipress, you should know that classipress handles its own category using the taxonomy ad_cat. That said, I have a ...
0
votes
2answers
346 views

Wordpress Categories: Function using custom SQL to return array of specific category IDs

I'm developing a custom theme which uses categories for positioning, all of which begin with an underscore (e.g. _position1). I have an SQL query as below to get a list of these categories (those ...
1
vote
1answer
1k views

Get_Posts and multiple categories

I have created a custom query in hopes of showing the top posts from some child categories. It appears here: http://www.sitesofconscience.org/activities/whats-new The query has a big flaw: some posts ...
1
vote
1answer
101 views

Events Plugin that works with existing categories?

I have a series of categories on my website that are fixed, i.e. The client has specifically asked that I leave them. Now however, they would like me to add an events plugin so they are able to add ...
1
vote
2answers
886 views

limit a list of tags to one category [closed]

Sorry if this has already been asked, but I am attempting to limit a list of tags to one category, in a couple different spots on my web page. I have this code: <?php $tags = get_tags(); ...
0
votes
1answer
433 views

Use premade array as categories in wp_query?

I have a theme options panel that the user can set which categories they want to use which is then saved as an array $blog_cat[0] etc. They can select as many categories as they want for the array ...
0
votes
1answer
706 views

Show the current post's category, without displaying parent category

I have a series of posts that all reside within a 'Main' parent category. Various posts are assigned to sub-categories. What I need to do is display the direct parent category for the currently ...
1
vote
2answers
875 views

How to Exclude post from a category

This is my home page code here is a feature post section, i want to exclude post by a category 'Collage' in this section ... <?php $count = 1; if (have_posts()) : while (have_posts()) : ...
0
votes
2answers
777 views

Get a list of commas separated categories inside a loop

I want to get the list of categories of a post inside the loop. Normally, I would use the_category(', '); But this does output a link, and I only want the category name. Any ideas?
1
vote
2answers
766 views

how to get the categories for a single post in a hierarchical way

The question is simple. Imagine that I have a post named 'Single Post' which is inside the category 'sub-cat' which is a child of 'parent-cat' which is a child of 'super-cat'. What I need to do is to ...
0
votes
2answers
654 views

Viewing category pages without the word 'category' in URL

When I view a static page its url is like: http://example.com/mybooks/ When I view a category page its url is like: http://example.com/category/books-ebooks/ For SEO, I want some modification so ...
0
votes
1answer
2k views

show only sub categories if available?

Hii i want that when i click on category link that show sub category if available instead of posts list If No Sub category available then show normal posts how to do this that if available sub ...
1
vote
1answer
539 views

Hiding a Categories content on just the Homepage 'Posts'?

Is there a way I can hide a certain categories content from just the homepage Posts section of my Wordpress Site? So, those posts are still posted and live; just not visible nor accessible from the ...
0
votes
3answers
3k views

Using same slug name for a page and category

I know it isn't good practice but I'm considering using same name slugs for some pages and categories on a site that I'm working on. It's a small site and it doesn't seem to affect anything in ...
0
votes
1answer
2k views

wp_list_categories to show list of categories and the description

I have some code in my category.php file to show either pages or categories. Depending if the category has sub categories or not. Is it possible to also show the category description as well? This is ...