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)

0
votes
1answer
1k views

How to display many photo albums related to category

I am developing one project and in this project i have to display many photos albums related to each category name. Particular. Photos [Custom page.Redirect to next sub-category with name {personal} ...
0
votes
1answer
1k views

Advanced Custom Fields: Using category as a rule, before publishing new post?

I am using Advanced Custom Fields plugin to assign some fields to posts with a certain category, but the fields does not appear before I publish the post. I have made some links on the dashboard, so ...
0
votes
1answer
1k views

Pagination breaks on child-categories, works fine on parent-category

I have two parent categories, and pagination is working fine on them - the paged url's show as: /parent-category-1/page/2/ ... etc /parent-page/parent-category-2/page/2/ ... etc However, when I go ...
1
vote
1answer
272 views

Saving category to a post, before publishing the post

I have created a link from the dashboard, which goes to add new post, but with a category already selected for the post - but the post will not belong to this category before publishing - this is a ...
0
votes
1answer
43 views

Category pages vs single post pages

For each of a few categories there is a "main" post which should be displayed at the top of the category list page. Should these pages (where both the "main" post and the list of the rest posts for a ...
4
votes
1answer
1k views

Multisite blog converting categories to subdomains

Having http://site.com/category/xyz = http://xyz.site.com/ I would like to move the content from each category to its equivalent subdomain blog, so that when I will access http://site.com/new-post/, ...
0
votes
1answer
110 views

Homepage custom recent news

Is there anyway of telling wordpress, by some plugin or whatever, not to show Recent news from Category X, on my home page? Or I may do it only by modifying the home.php code?
-1
votes
1answer
718 views

query_vars in plugin when using custom permalinks

I am trying to do the following I need to get the category of the current page at the plugin level so before it goes to archive.php orsingle.php so i have a plugin to do this and based upon ...
0
votes
1answer
437 views

post_class remove tag- or category- from slug

I've got this in my theme <article <?php post_class('archiveMain'); ?>> But for tags and categories it adds tag- or category- before the slug, any way to remove that? Example: tag-...
1
vote
1answer
1k views

How to call custom category field data in theme?

I am trying to add two custom fields to my categories (which I have done thanks to this answer - Any examples of adding custom fields to the category editor?) And now I need to call them within my ...
0
votes
2answers
1k views

How to customize the Categories meta box to allow only one category?

I'm trying to customize the Categories meta-box when adding a post. I have added a custom post and I need the administrator to post a new post without the ability to use the top level categories ...
1
vote
0answers
1k views

Dynamic dependent Dropdown lists for Categories, Sub-Categories and Posts!

I'm using WordPress 3.5 as CMS to develop my personal website. The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts using dependent(...
1
vote
2answers
5k views

Display all posts from specific categories on a page

I want to display all posts from specific categories on a single page. Therefore I edited the page.php file in my theme folder. I added an 'if-clause' to check which page currently being displayed and ...
0
votes
1answer
162 views

add new input field like category?

I want to create another input field like the categories. Whenever user posts a new question I want to have another drop down of locations associated with that particular question, like categories ...
1
vote
1answer
965 views

Remove 'rel' attributes from the_category() output

I am trying to get the categories associated with a post in it's meta section by using the following code: <div>FILED AS: <span class="gf-post-meta-result"><?php the_category(' &...
-1
votes
2answers
136 views

Fix incorrect related posts code snippet

Can anybody fix this incorrect related posts codes snippet? function related_posts() { if (is_single()) { global $post; $current_post = $post->ID; $categories = get_the_category(); ...
0
votes
1answer
1k views

Problem with wp_create_category

I have simple code: add_action('init', 'categoryTransfer'); function categoryTransfer(){ //some code for($i=0; $i < count($categories); $i++) wp_create_category($categories[$i]->...
0
votes
1answer
573 views

Assigning certain pages or posts to use the template of the parent page or category

I created a website that's using Wordpress as its CMS. There are parent pages -> sub categories -> content within each sub ...
1
vote
1answer
457 views

Arrange posts by date in front page

I have code to show the 5 last posts from every category on the front page. However, at the moment they are ordered category by category. Is it possible to order them by post date, but still have 5 ...
0
votes
1answer
224 views

Wordpress excerpt for specific posts in category

Is there any way to create "more" link for excerpt only for posts in a specific category? For example only posts in "news" category should have a more link. If there's no option for that, maybe posts ...
0
votes
2answers
457 views

How to show category based post in home page?

Suppose I have 3 categories (cat 1 , cat 2 , cat 3) , and my blog home page shows 6 recent posts . I want to show 2 recent posts from every category. How can I do it?
1
vote
1answer
2k views

Hide/Show only specific categories in wp-admin new-post.php

Can anyone give me a function or an idea of the method I would need to use to hide categories from the selection box in wp-admin? I have a custom post type and I would like my authors to be able to ...
1
vote
2answers
603 views

Taxonomies for Wordpress Media Library [duplicate]

Possible Duplicate: How it is possible to use taxonomies on attachments? I know this has been a long debated issue with WP, but I was hoping that since the 3.5 upgrade, there has been some ...
4
votes
2answers
2k views

How to add the category ID to admin page

I want to add the categories ID to admin page. I call it for my functions.php: require_once('includes/categories_custom_id.php'); The part of code: function categoriesColumnsHeader($columns) { ...
0
votes
1answer
84 views

How do I get a single page navigation depending on the previous page?

I figured this would be a fairly comon thing. But I can't seem to find out how to do it. Or I'm just not using the correct search terms. I've got a website with a hompage that lists all my posts, and ...
6
votes
3answers
4k views

How to add category to: 'wp-admin/post-new.php'?

I want to have a link to create a new post that sets the category also. I have tried wp-admin/post-new.php?post_category=12 and wp-admin/post-new.php?cat=12, but neither worked. I also tried using ...
1
vote
0answers
26 views

Show category list on attachment page [duplicate]

Possible Duplicate: categories on attachment page How can I display post categories on image attachment page i.e. image.php. I have used the_category function, but it is still blank!! I ...
0
votes
2answers
2k views

categories on attachment page

I am using this function to display categories specified to a post having gallery on the image attachment page. <p>CATEGORY: <?php the_category(', '); ?></p> The problem is that ...
0
votes
1answer
916 views

Display custom taxonomy attached to the post on post single page

I need to display the first custom taxonomy attached to the post on post single page. The custom taxonomy is similar to category attached to the posts. I need to display the first custom taxonomy with ...
0
votes
2answers
1k views

How do I stop the loop from repeating in my category template?

For some reason, when viewing a category, the posts are repeated - basically the whole loop repeats as many times as there are posts for that category. E.G.: If category_a has 3 posts, the page will ...
1
vote
1answer
88 views

How can i sort the categories by ID

Hi all I am newbie to wordpress I am using the wp_list_categories in the sidebar to display the categories . How can i display thus categories sort by id any one much appreciated... <?php ...
0
votes
2answers
9k views

How to get category id in single.php wordpress?

I need to get category id in single.php. I tried this: $cat_ID = get_query_var('cat'); It didn't work. What should I use instead?
4
votes
2answers
1k views

Category checkbox list tree changes when editing a post

I'm setting up the categories for my website and I have them like so: That's it, I have children of the same name but they are not interchangeable. If that bugs you just think that they have ...
0
votes
1answer
69 views

Modify functions.php to add a term 'uses-theme' set to theme name on post save

I need to automatically (without anything visible to the user in the UI and without user intervention) 'mark' a post in a sub-blog with the theme it was set to when the user posted. As I understand ...
0
votes
1answer
5k views

List all posts in a category with query_post() function

I'm a C programmer, konw little about PHP. I built a Blog with wordpress. Yestoday, I try to create the page www.abc.com/server, this page would list all posts which belong to server category. I ...
2
votes
2answers
112 views

Categories Template Assistance

I have found a tutorial online for creating a custom categories template for my archived posts within a particular category. This however is targetting a specific category ID (see below), is there ...
1
vote
1answer
30 views

Category location styling

http://www.milknhny.co.uk/DVine/?page_id=19 Please can someone help, i have added the categories, however it appears to be off line. I have tried to style this in a class but this screws up the whole ...
3
votes
1answer
147 views

Excluding posts from a category but only if they're not in multiple categories

I am looking to exclude a category in Wordpress. I am referring to the Wordpress Codex page on wp_query but I am having the following problem: I want to exclude posts from category 1, but if a post ...
0
votes
1answer
99 views

Site 'Categories': save an admin global setting with post metadata [closed]

In WPMU, we are using Site Categories (with Sitewide Tags), but for the life of me I can't see how the category of the sub-site (say, departments in a school) to which each blog belongs ends up in the ...
0
votes
1answer
409 views

Showing posts from 2 categories only on category.php

got myself in a bit of a pickle. I want to display posts on category.php from the categories 'latest news' and 'custom models' only. The other category, 'press releases' is shown in a separate column. ...
0
votes
2answers
164 views

How to display a single(current) post from a category

How do I get the code below to display just the current post that corresponds to the current URL and not all the post from the same category? Barakadam, It works but it brings all the posts in the ...
0
votes
1answer
109 views

WordPress 3.5 how to determine if user is on category listing or category edit screen?

I have a custom bit of code that I need to place on the category edit screen but not on the manage categories screen. Prior to WordPress 3.5, I was able to set a global $action variable to check for ...
1
vote
1answer
3k views

Show category children, one level

I am coding a pretty complex wordpress site (at least, taxonomically speaking), and i need to display a list of categories, children of a parent category, but I am struggling with getting the code to ...
1
vote
1answer
344 views

A single category with a specific permalink structure differing from the standard set for the rest of the site

I'm interested to know if there's a method to specify a specific link structure for only a single category. Currently I have my install set to /2012/12/post-title. However there is a single category ...
-1
votes
1answer
646 views

How to Organize my Photo Albums?

I want to organize my photo galleries. Photos > Personal > Professional For each sub page, I want to organize the photo albums with thumbnails. eg Personal > [thumbnails image with dimensions 210x180]...
5
votes
3answers
3k 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 ...
0
votes
2answers
2k views

multiple categories and breadcrumbs problem

Let me explain my problem. I have this post that uses multiple categories... and categories are being shown as breadcrumbs I there a way where I can display 1 specific tree? example I have game >...
1
vote
3answers
3k views

How do I get the category slug from wp_dropdown_categories

I am customizing a plugin. I needed it to show a list of the categories in hierarchy, which I got working with all of the functions of the plugin. I'm using wp_dropdown_categories, but I'd like to ...
1
vote
1answer
355 views

How can I hide tags on a child-category page, if that tag has not been used?

I have a section of my site where I'm using child-categories and tags to sort content. I'm have a tertiary navigation for the tags (templates/nav-tags.php): <nav class="side left"> <ul ...
0
votes
3answers
341 views

Get current category details the user is currently on in category.php

I want to get the current category details that the user is on in category.php. $category = get_the_category(); $slug = $category[0]->slug; // Why is this an array ? In most cases (where there ...