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

Post specific text based on category displayed

So I'm working on a site and I need a news page that is slightly different. It is a post category but I want the text echoed at the top of the news category listing. <?php endif; ?> <?php /* ...
1
vote
5answers
10k views

Get all categories and posts in those categories

I am looking for a solution that allows me to print the following: Cat 1 Cat 2 Cat 3 Post 1 Post 1 Post 1 Post 2 Post 2 Post 2 Post 3 Post ...
3
votes
2answers
1k views

How do I create a way for users to assign categories to a post from the frontend?

Basic idea is for any post on the site, I'd like users to be able to assign a category for it by selecting from a set of checkboxes on the frontend. This would be a kind of crowd-sourced ...
1
vote
1answer
217 views

How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?

Thanks for taking a look at this for me. You can see the current behavior at http://dev.citylightphilly.com/blog/ -- Here is my specific problem. We are using a category structure like this: Events ...
0
votes
1answer
352 views

How do I display something on a particular category page?

How would I display HTML conditional on a particular category page? Say my permalinks to the category pages are http://www.mysite.com/category/awesome-category How would I cast the <?php if ... ...
0
votes
1answer
85 views

Display ONLY Latest Post From Several Categories

I have searched for this solution on here and was not able to find one that worked for me so I apologize if this seems like a redundant question. I have several categories that I want to display ONLY ...
2
votes
3answers
1k views

Limit a meta box to a specific category

I'm trying to limit a meta_box to posts in a specific category. I'm using this method: http://www.farinspace.com/page-specific-wordpress-meta-box/ and it works rather well But I can't seem to get it ...
0
votes
1answer
181 views

Hide the word 'category' from my permalinks

How can I hide the word 'category' from my permalinks? Regards.
1
vote
1answer
258 views

Get Unique Categories - Group By?

I have 2 separate groups of Categories that a post can be classified in: Client & Medium. I'm trying to display all the Clients (if they have posts), and any Mediums that those posts may belong ...
0
votes
1answer
47 views

What's wrong with my wp database query?

$cats = $wpdb->get_results('SELECT term_id, term_taxonomy_id, taxonomy, parent FROM wp_terms, wp_term_taxonomy WHERE term_id = term_taxonomy_id AND parent = 1 AND taxonomy = "category"', ...
1
vote
1answer
604 views

How to sort categories by id in wordpress admin

I would like to know if it is possible in Wordpress admin to show categories in post-new.php and edit-tags.php?taxonomy=category sorted by id NOT by category name.
-1
votes
2answers
377 views

Different Output for “Every Other” Foreach Statement?

I'm currently using the following code in order to get subcategories in a category page and getting the posts foreach subcategory. In the part where it echos "span-12" (line 14) i want it to echo ...
1
vote
1answer
249 views

Category Foreach keeps looping?

I'm using the following code to acquire all the child categories of a category and displaying the child posts of the child categories. <?php $cats = get_categories( 'child_of='.get_query_var( ...
1
vote
1answer
307 views

How do you categorize pages?

I am an experienced Drupal developer who is just getting stuck into Wordpress. For a selected number of pages on a new wordpress build, I need to add them into a category, then add this category ...
1
vote
2answers
874 views

Exclude Category From Home Page, Display Posts on It's Own Page?

I created a new category with the ID of 57, how do I exclude this category from the homepage/blog and then list the posts from this category on its own page? this is what my index.php looks like ...
0
votes
1answer
211 views

Is custom menu name and category name linked in wordpress?

I have created a custom menu for each of my categories (to show subcategories of each category on that category page) and that menu will have the exact same name as the category name. The weird ...
0
votes
2answers
836 views

latest post showing up twice on posts page

Can someone please help me alter my coding to eliminate my problem? I am using this line before the loop: <?php query_posts('cat=3&showposts='.get_option('posts_per_page')); ?> for ...
3
votes
2answers
281 views

Filtering Wordpress Contents based on URL

This is just a theoretical question for now. Given a website that has items of content that are tagged into categories, for example "Coding" "Writing" "Gaming", it is possible to configure the site ...
1
vote
1answer
524 views

Display Only One Category

On my WordPress theme, it displays all of the categories a post is in on the homepage for the post block, I only want to display one category even if a post is under multiple categories. i.e. ...
1
vote
1answer
12k views

How to show related posts by category

In my gallery site i want to show other pictures under the current picture (in single post). I seen more codes but it i asks to specify the category, but i dont want want specify the category manually ...
0
votes
3answers
183 views

How do I include the category next to the title of a post?

On the main page in WordPress all I want is the category to come before the title of the article posted. So for example if it's a Review, I'd like the article name to be Review: Super 8. Okay so if ...
2
votes
1answer
70 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
0
votes
1answer
275 views

How to include first assigned category in the post URL?

What are the options for creating URLs like: site.com/category-name/post-name Where, "category-name" is the first category that the post was assigned to (in the event that the post is assigned to ...
1
vote
2answers
882 views

Wordpress check if user is logged in from non wordpress page

I am using wordpress and I normally use: if (!is_user_logged_in()){ //something here } to detect if the wordpress user is logged in or now. My problem is that I need to detect if the user is ...
-1
votes
1answer
1k views

How to control order when displaying child categories

I'm working on displaying a series of child categories in the meta of each post. For instance, after the post appears an array, depending on category selection, describing the post content: Color: ...
0
votes
2answers
3k views

How can I show the subcategories content on the parent category page?

I have a WordPress website that has a category with two subcategories. Now, how is it possible to show the content (the subcategories items/content) on the parent category?
0
votes
1answer
311 views

Relative number of post in category

For a post x in a category y, how can the following output be achieved: Post x is the nth out of m posts in the category y. where m is the total number of posts in the category, and n is the ...
1
vote
1answer
3k views

How to hide a specific category posts in my monthly archive?

I am using the twenty eleven theme in my wordpress site. In posts, I have two categories. One is blogs and other is News. The monthly archive displays the posts of all categories while I want that ...
0
votes
1answer
237 views

Give Children Unique ID's

Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but :nth-child isn't supported by ...
1
vote
1answer
741 views

Show add_meta_box by selecting a specific category

In my plugin I want to display an add_meta_box under the WYSISWYG in the new post page, which is no problem and works fine. But the box should only appear when a specific category (example: category ...
2
votes
1answer
149 views

Force category-slug.php to show page, even if it doesn't exist

I have a custom query in category-slug.php, which works fine unless the category doesn't have that number of pages itself. If the category only has 5 pages of posts, but the query I put in has 7, ...
1
vote
1answer
1k views

Display WordPress Parent Categories Only?

I have the following code on a custom wordpress page: <?php $cat_array = array(); $args=array( 'post_type' => 'post', 'post_status' => 'publish', ...
0
votes
2answers
163 views

Change div background acording to the selected category

I'm coding a graphic menu that consist in five divs with a background each. On mouseover the background changes and the child div disappears. On click, each one works like a link to the correspondent ...
1
vote
1answer
116 views

How do I add a function on a specific post category?

I am using theme Twenty Eleven and am trying to add a vote up script in the content.php which only displays on a certain category.
0
votes
1answer
236 views

Can't assign another category other than Uncategorized int he following front end post submission form?

I'm using this front end post submission form that I took from this question: <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; $category = ...
0
votes
2answers
985 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
1
vote
2answers
616 views

How do you add a category to a post in code

We do a lot of post maintenance outside of the WordPress interface and as a result we need ways of categorising posts. Obviously Wordpress has categories (aka taxonomies) on posts and I plan on using ...
-1
votes
2answers
115 views

What defines a post as portfolio page content?

I have three types of content, Posts which I have defined as Blog and categorise accordingly, Slider Images defined by a specfic category, and Pages. I want to have content as portfolio on a profolio ...
0
votes
1answer
1k views

WP Category Meta plugin fix? [closed]

Does anyone know of a fix for WP Category Meta http://wordpress.org/extend/plugins/wp-category-meta/ or a similar solution to add images and meta data to categories? With the latest version of WP it ...
1
vote
1answer
906 views

Wordpress list posts from sub categories

has anyone an ideea how can you do something like this: So if the user is in a category, let's say Mainand this categories has some subcategories and I want to list them and also list the posts, ...
1
vote
2answers
1k views

How can I enable a TINYMCE rich text editor in the admin interface?

I'd like to add some text above my category archives, and I'd like to use the built-in Wordpress TinyMCE editor to do it. I've seen some plugins like black-studio-tinymce-widget which does a nice job ...
0
votes
2answers
385 views

WP SQL Categories Export and Import

I want to export and export only the Categories and their description using SQL. For now I've managed to retrieve them using this: SELECT wp_term_taxonomy.description, wp_terms.term_id, ...
3
votes
2answers
451 views

What could be causing my wp_query pagination to break?

I'm using categories and wp_query to create an "advanced search" feature on my website. It was working great until recently I noticed that the pagination was broken. The following 2 links should ...
0
votes
2answers
149 views

Restricting certain blog posts by date?

I'm building my friends blog and he asked me a rather odd request. He wants the latest five blog posts to be visible to non-registered members but not to others. I'm using s2Member for membership ...
-1
votes
1answer
419 views

How can I get on the same row two post of different categories?

Let me explain better, I have two categories and I want to show a page with two columns one for each category, after this I like to show in the same row each post of each category on each column, just ...
0
votes
1answer
279 views

How to make search for the custom post type?

i tried to figure this out but i can't until know i have new custom post type of questions and i have other post types also like job listing, resumes etc what i want here to make search for the ...
0
votes
1answer
54 views

Need help deciding on a taxonomy

I'm working on a project that mimics a product Catalog, all products belong to a Collection and they all have a Type and Attributes. For instance, a shirt belongs to the Apparel Collection, so I ...
0
votes
1answer
2k views

how to call the category of the post

I jus want to create a gallery which shows either all or certain number of posts in that category under each post and i found a working code <?php $displayposts = new WP_Query(); //get posts ...
0
votes
2answers
144 views

Categorie parents and childs displayed

I'm trying to create a menu directly hard-coded, basically I need to display the parent category and below its child categories, however I have to do this several times meaning something like this: ...
4
votes
1answer
739 views

Control term order on a per-post basis

I have a taxonomy in which term order matters, but varies from post to post. So I want to be able to set the order that terms are displayed in on a per-post basis: My first post | Tagged: Apples, ...