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

How do I get rid of “category” from my URL structure?

By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel. How can ...
0
votes
1answer
938 views

get all categories' latest post in one query

My WP blog has 12 categories, 80 subcategories. I need to fetch the latest post from each of those 12 categories. I know how to do it in 12 queries using 12 get_posts() but is there a way to get ...
1
vote
1answer
90 views

Permalinks - Different structures for different categories?

Currently I use /%category%/%postname%/ as my permalink structure. However, I would like to have a different structure for different categories. This is because I have a "News" blog that I would like ...
0
votes
1answer
865 views

Query pages by category

Trying to query pages based on the category they are associated with. I am passing in the cat_ID, but it doesn't seem to be working. Always returns a single post with the title "Hello World" while ...
1
vote
1answer
3k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
0
votes
1answer
321 views

How do I get category and page ID's?

I want to insert the category or page ID of the current page into my HTML so that I can use CSS to style each page based on what it is. For example, if had a category called "News" and it's ID was 5, ...
2
votes
1answer
752 views

Set a category for a page

My current theme has a portfolio section where you can have an array items based on what category they are in. My problem is that I have several pages that I want to be in the portfolio section but ...
1
vote
1answer
353 views

Ignoring a category in WP_Query still shows the links in next_post_link()?

So I have a WP_Query like so: $homepage = new WP_Query( 'posts_per_page=1&cat=-5' ); and in my while loop, I have a call to next_post_link() and previous_post_link(), which are both showing ...
0
votes
1answer
374 views

Categories show 404 error on multisite installation

I have a wp multisite installation with multiple blogs that are totally separated websites. I use a plugin for domain mapping. Right now I am configuring everything and I wanted to remove the /blog ...
0
votes
1answer
78 views

Creating links to a page displaying posts from a particular category

Ok so at the moment I have a page which displays a list of categories within my Taxonomy (event-themes), here's the code: <div id="themeSearch"> <h1 class="mainSectionHeader">By ...
1
vote
1answer
369 views

get_post_meta not working on category.php

I'm referencing an attached image in my header.php page which is displayed as a full screen background on my posts: global $wp_query; $page_id = $wp_query->get_queried_object_id(); ...
0
votes
2answers
1k views

Display most recent post in category instead of archive?

I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
2
votes
1answer
461 views

Category and tag with same name

IN my blog, if I have a category and tag with the same name, it will make the tag have a number in the URI. Example: category/php tags/php-2 Is there anyway to make my tags with the same name as ...
0
votes
1answer
227 views

Determine the category that an archive-page is for

On a category archive page, how do I determine what category the archive page is for? I need either the id or the slug of the category. I am not looking for get_the_category(). This will give me all ...
0
votes
1answer
57 views

Need help with major category and permalink re-organization

I would like to re-organize my categories and the permalink structure. I want to rename and merge categories, make previous categories sub-categories and change the permalink structure from ...
0
votes
2answers
3k views

Show posts from category specified using a custom field

I have a post that shows the titles and excerpts from a specific category underneath the content. Currently this is coded into a specific template like this: <?php ...
0
votes
1answer
255 views

Jigoshop - only displaying 10 products

Just wondering if anyone knows why Jigoshop will only display 10 products that I have in each category. Thank you.
0
votes
1answer
85 views

In a url where Category Id is wrong It is showing wrong it is going to the page not found page

In my one project I am using old 2.8.4 version of word press. So If In url wrong category name is there then it is going to the page 404 page not found. But I want that still it should go to the ...
2
votes
2answers
5k views

How to change permalink structure for custom post type and it's taxonomies?

This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this. So again, with (normal) posts changing the permalink is as easy as going to ...
1
vote
1answer
81 views

How can you change the permalink for pages?

When I set my permalink to '/%category%/%postname%.html' this will work for all the posts, but the pages still don't have a .html at the end. Is there a way I can fix that?
0
votes
2answers
386 views

Display latest post from Wordpress Featured Category that is also in X,Y,or Z categories

I want to display the latest post from a "featured" category (id=1) that may also be in either X category, Y category, or Z category (id=2,3,4 respectively). Note, there are other posts in categories ...
3
votes
1answer
862 views

How can you make permalink work for custom post type and taxonomy?

I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following: ...
0
votes
1answer
158 views

How can I offer different RSS-Feeds by category?

I want to write a WordPress-Blog about some quite different topics. I will write most of it in English, but some topics are only interesting for Germans. The posts in the German-category will be in ...
4
votes
2answers
644 views

Changing Top Level Items into Radio Buttons in the Categories Meta Box?

I know it is possible to change the WordPress category list to radio buttons in the admin panel for posts, but I would like to make the just the Parents radio buttons and the sub categories or ...
2
votes
1answer
1k views

Include custom post types in categories widget

So I got a fairly simple setup, one CPT with the default category and post_tag as taxonomies. Say I have 1 post and 1 CPT entry assigned to the same category. I need this to be reflected inside the ...
1
vote
1answer
155 views

Page display certain Category Posts

I want to do almost exactly this: http://codex.wordpress.org/Pages#A_Page_of_Posts But Im confused by the last line: Save this to pageofposts.php and then assign PageofPosts as the Template ...
0
votes
1answer
2k views

category.php not showing custom post types

in my custom post type i've set 'taxonomies' => array('category'). However, within my category.php page, none of the custom post types are being displayed, only posts. How do i make ALL post types ...
0
votes
2answers
157 views

Include home page template in specific category template

I have a specific category who's page I'd like to look like the home page of my site, with all the nice sliding featured stories, etc. If I create a file category-slug.php, can I do some sort of ...
0
votes
1answer
427 views

Recent post by custom select query

Hi this is the code which displays recent post from all category. but I want to dispaly post from any single category. I dont want to change the code please help. function mdv_recent_posts( $no_posts ...
2
votes
2answers
1k views

Query custom post types

I'm having some trouble feeding a custom post-type I created (events) on my homepage. I am trying to allow this particular post-type to display under the query which looks for category 8 (Featured). ...
3
votes
2answers
4k views

Display list of Sub-Categories and the posts they contain, within one main Category

I've found tons of code and plugins to do various things; from show posts for specific cats, subcats of a cat, etc.. BUT, I cannot for the life of me find, nor do I know the WP API well enough to do ...
0
votes
1answer
168 views

Highlighting Current Category in the Archive and Feeds page

I needed a category listing in my posts page and I want the current category to be highlighted. I enabled the 'All' category, so consequently, I want the 'All' also to be highlighted when I'm viewing ...
0
votes
1answer
512 views

Adding Custom User Profile data based upon Categories

Based upon the code found here: How To Add Custom Form Fields To The User Profile Page? How Could I alter this so that users could check one of several boxes based upon categories I have setup in the ...
0
votes
1answer
287 views

Categories Listing and Highlighting current category item

My query is on Wordpress and related to categories. I have a set of categories for my posts: All, Cat-a, Cat-b and Cat-c. a. When I click on the link to my posts page, I want to show an archive for ...
0
votes
1answer
261 views

How to get sub-categories to display same look as there parents

so I am trying to use the category.php to do all this, and basically I have 3 main/parent categories, Dream it. Build it. Get The Hell Out. and will have many sub-categories under them. What im ...
0
votes
1answer
3k views

exclude category from get_posts?

getting posts by cat with get_posts but need to exclude another cat called london or id 10. is this possible? best, Dc. // array(7,-10) $laargsM = array('category' => 7, ...
0
votes
1answer
725 views

Equivalent to in_category() for subcategories

Wordpress provides conditionals like is_home() and is_category(). I'd like a function to tell me if the current context belongs to a category that is a subcategory (so, not a parent). I tried this, ...
0
votes
1answer
301 views

How to display a category list in a mediawiki like way?

I would like to reproduce on Wordpress the same behaviour of mediawiki when it comes to display the posts of a certain category (with an alphabetical order, in columns and using first letters in bold ...
0
votes
2answers
674 views

Easiest way to display post archives in category-then-alphabetical order?

I've got a buddy who's trying to organize his recipe blog and would love to have an archive page that displays his recipes broken up by broad subject areas (read: categories) and then have the recipes ...
0
votes
1answer
546 views

List all authors by matching custom meta data on a category page

I have a number of category terms act as placeholders for our departments. I than pull in those terms on the backend profile edit screen using Justin Tadlock's tutorial: ...
-1
votes
1answer
637 views

how to show all post with its contents

i have "favorite-film-video-songs-super-scene-climax" category and i want to show all of the post with contents(which is youtube video) for every post. in below link i want to show all post with ...
1
vote
1answer
76 views

Displaying a full post instead of a slug per category?

I have a single category on my blog that I want to display full posts in when looking at the category instead of just slugs. The category is for Podcasts, and presently it displays slugs which: ...
0
votes
1answer
201 views

Combining these queries? (Same taxonomy term + same category as post)

I´m not to good at coding so I could use some help with this! I have a single page which below the post shows more posts from the same category. Then I have another single page which in a similare ...
0
votes
1answer
57 views

query_post problem

I am running query_post with the following arguments, <?php $args = array( 'category' => $cat, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' ...
3
votes
1answer
761 views

Remove date and category filters when editing custom post types

The answers to this question give excellent instructions for adding filters to the admin edit.php screen for custom post types. But they don't explain how to remove the existing filters on date and ...
4
votes
3answers
4k views

Wordpress Multiple Category Search

From few months I am digging into wordpress for multiple category search options, and finally came up with this. I just found that wordpress allows multiple tags, which means that if in your URL you ...
3
votes
3answers
6k views

How to display regular posts & custom post types that fall under a category using just the generic category template?

1) My site has posts, and 2 custom post types (news & essays) 2) They all share normal categories like sports & health (no custom taxanomy involved) 3) Using the generic category.php template, ...
0
votes
2answers
3k views

query_post order desc

According to:http://codex.wordpress.org/Function_Reference/query_posts To show all posts in a category: query_posts( array ( 'category_name' => 'The Category Name', 'posts_per_page' => -1 ) ); ...
0
votes
1answer
82 views

how wordpress generates permalinks as /%category%/%post%/

I am not here to discuss the efficiency of using categories as the base for permalinks. I would like to know in what file and what line is the code to how Wordpress picks out a category for the ...
0
votes
1answer
3k views

Show all posts in category

I am trying to show all posts in each category. I've been searching around and it seems I need to have either the category slug or term_id to do so, like the code below. <?php ...