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.
1
vote
2answers
1k views
Set menu active state for custom posttype and category, given custom taxonomy term
How to set the menu active state for a custom posttype and category, given a custom taxonomy term?
I have a custom taxonomy: region, a custom posttype: business, and use the categories taxonomy. My ...
1
vote
1answer
285 views
Sitewide category terms
I'm looking to implement standard category terms across a network of multisite blogs.
The aim is:
create a category on one blog (or the root blog), and it is created on all blogs
each blog will ...
1
vote
2answers
2k views
Query posts by category AND custom field, then ORDERBY another custom field - help!
OK I need to query posts using the following criteria:
category_name=office,
meta_key=featured_post,
meta_value=Yes
and order these results using a second custom field which has a numerical value
...
1
vote
2answers
679 views
How to enable category hierarchy for links?
It looks that by default WordPress had hierarchy only for page/post categories and not for links categories.
How can I enable that?
1
vote
2answers
111 views
My Category is too big on the Menu what can i do?
Currently I have a small amount of 100 categories and my MENU goes crazy big and I would like to be able to do 2 things if possible:
First category menu with limited amount categories sorted by hits
...
1
vote
1answer
252 views
Need Category RSS Feed that shows all posts
How do I go about making this? I've been trying to get add_feed and such but have had no luck.
1
vote
2answers
2k views
Showing post thumbnail (attachment) on the archive.php category listing
I'm seeking to customize my categories listing (archive.php) so that it shows a thumbnail image of the first image attached to each post
However, apparently the archive.php file is one of those that ...
1
vote
4answers
3k views
How do I get my wp_nav_menu single category page to highlight the parent?
With the new wp_nav_menu system, it is possible to add a category as a menu item, so in my example I have a 'news' category, which is a submenu item of 'About'.
About (page)
--news (category)
...
1
vote
2answers
635 views
List categories for author: list_categories function inside list_authors function
I am trying to make a "contributors" page where there is a list of authors and the categories they have posted in.
I am able to use this code to do this for a single author on a single post page:
...
1
vote
1answer
27 views
Category's Description field as editor remove <p> tag
I have tried both plugin to make Category's Description field as editor with below plugin. but when i update the text it's remove tag
http://wordpress.org/plugins/rich-tax-description-editor/
...
1
vote
1answer
21 views
Extracting post categories
I'm in the middle of assisting a colleague in reconfiguring a Wordpress database for use on another platform. The database is essentially details regarding all the posts and accompanying metadata, ...
1
vote
2answers
68 views
Trying to find a way to query post like normal search would do. within search.php page
I have a costume search in a site i am making.
When a user search a certain term, i want to display category list with a count of how many posts are found with in that category.
I thought of a way ...
1
vote
1answer
50 views
Resort get_categories
I have a get_categories array
$args=array(
'orderby' => 'id',
'order' => 'ASC',
'taxonomy' => 'wpsc-variation',
'hierarchical' => 1,
'hide_empty' => 0
);
...
1
vote
1answer
27 views
Customized landingpages for categories
When I click on a category now, it looks like..
Category Archives: MyCategory
first post
second post
third post..
I want to customize these landing pages for special categories, ...
1
vote
1answer
62 views
Category pie diagram meta box in post editing page
I am trying to build a plugin for showing a pie diagram based on the number of those categories which have maximum posts. This diagram is a meta box in post editing page. Here is my source of ...
1
vote
2answers
28 views
Categories sorting
I'm using code below to spit out custom post types along with its categories, so
Category 1
---post 1
---post 2
Category 2
---post 1
---post 2
---post 3
etc.
That works well for ...
1
vote
1answer
85 views
Add classname to the_category() function?
is it possible to use add_filter or something similar to add the slug of the category as classname to the the_category() function?
Right now when using the_category() the output looks like this …
...
1
vote
2answers
96 views
Child_of not displaying all children posts.. via get_posts
I have put together this loop to display all children posts of the desired cat, but i am not getting any of the posts from one of the children cats..
Not sure if i am using the best method to ...
1
vote
1answer
301 views
How to call in Custom Post-Type Categories?
I have our portfolio page here: http://www.slarc.com/portfolio-view/central-control-building-east-texas/
The orange links below the project title are manually inserted on the page content. Is there a ...
1
vote
1answer
201 views
How to filter posts that belong to a specific category only if that is the only category
I need to filter posts that belong to a category only if that is the only category. For example if my post A belongs to cat1 and I don't want to display posts that belong to cat1, post A won't be ...
1
vote
1answer
77 views
Display comments on a comment page without form
I'm using this to allow me to display my comments for posts on category pages:
<?php
$wp_query->is_single = true;
comments_template();
$wp_query->is_single = false;
?>
However I don't ...
1
vote
1answer
27 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 ...
1
vote
2answers
150 views
Query Posts Exclude Entire Category
I am using the standard wordpress loop that looks like:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?></h2>
...
1
vote
1answer
50 views
How to get the id from the custom category?
How do i get the ID from the current custom taxonomy (category) the user is browsing?
It uses a custom post type called "products"
The categories are called "pcategories"
With normal categories i ...
1
vote
1answer
64 views
Show Available Taxonomy List with Current Category
As you can see from the image, I am listing all categories and the cities (taxonomy list).
What I want to do is :
If Car classifieds is selected on cities list show the city name which has car ...
1
vote
1answer
78 views
category.php displays ALL posts instead of just those with the current category
I'm simply trying to display a list of categorised posts (with the custom post type of 'project') on the default category.php page. I can't get it to work!
If I simply use the base theme category.php ...
1
vote
1answer
92 views
How to Make a Category Always Selected?
I'm trying to write a function to make certain terms of default category always selected.
When the user is writing a new post, the term checkbox should be checked and he shouldn't be able to unckeck ...
1
vote
1answer
110 views
How to get grandparent of a given category
Just wondering what the best way to get the top-most level category (grandparent) of a given category assuming it has one?
Example structure:
Operating Systems
- Mac
- - Mountain Lion
- Windows
- - ...
1
vote
1answer
37 views
Separate custom categories from default category
I created a custom post type named as 'notice'. For both categories I assigned taxonomy like -
function register_notice(){
$args = array(
'labels' => array(
...
1
vote
1answer
161 views
Adding default post content for category
I'm trying to add some default content to my posts using this code in my functions.php:
add_filter( 'default_content', 'my_editor_content' );
function my_editor_content( $content ) {
$content = "My ...
1
vote
1answer
211 views
How can I convert some categories to a custom taxonomy?
I have a WordPress install that has a ton of categories. I want to convert some of these categories into a custom taxonomy. For example, I have:
Categories:
Category A
Subcategory 1
Subcategory 2
...
1
vote
1answer
158 views
Giving wp_list_categories the class of the category
I am using wp_list_categories to list my categories in my menu. When the menu is generated each category is listed as a <li>-element with "cat-item[number]" as class.
Is there a way to also or ...
1
vote
4answers
482 views
How only display all post related to category
I'm trying to make a custom template for my category pages that only pulls in post under a specific category. At the moment, I am only able to pull in all post and not category specific...
My code so ...
1
vote
1answer
188 views
Show children of top level category only
Imagine i have a URL structure like this: www.domain.com/category/subcategory/
This is my code:
<?php
$args=array(
'child_of' => $cat-id,
'hide_empty' => 0,
'orderby' => ...
1
vote
2answers
85 views
Assigning a category to a user role
I was looking for a plugin for this, but so far I cant find one that does what I want. I limited the user role capabilities with 'Restrict Capabilities'. But the authors still have to click the ...
1
vote
1answer
73 views
Block multiple categories from Blog
I found this code on this site by AshFrame which I added to my functions PHP file and works perfectly to stop one category being displayed on my blog (I have a custom menu so have the category ...
1
vote
2answers
85 views
I Cannot Create New Category
For some reason I can't add new category. I changed the browser and even tried on my iPod Touch but it still did not do anything. It did not show any error message, No Nothing. It's like the new ...
1
vote
1answer
86 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
2answers
250 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
...
1
vote
1answer
973 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
53 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 ...
1
vote
1answer
408 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 ...
1
vote
1answer
554 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?
1
vote
1answer
185 views
How to hide some categories in category list under post in wordpress?
In My wodpress Blog there are some categories use for the internal work. I want to hide that categories in blog homepage category list show under each post.
I print category list as ...
1
vote
1answer
92 views
Showing posts from different categories and from custom post type
On my main page, I want to show posts from 3 categories, and 1 custom post type.
Is there a way to get them together in one pre_get_posts function? Or do I need to query separately - once for the ...
1
vote
2answers
1k views
How to Change the Categories Order in the Admin Dashboard?
The order of categories on dashboard is alphabetical. Can I change it to custom order?
1
vote
2answers
581 views
How to filter out Categories for specific post types on Wordpress Admin?
How can i programatically change the Category selection menu on wp-admin? is there a hook or filter to edit the Category List?
My objective is to filter out specific categories for specific ...
1
vote
1answer
106 views
Categories or Custom Post Type to Organize Content
Let's say I'm starting a martial arts website and I want to categorize content into themes:
philosophy
fitness
training
techniques
diet
Etc.
I keep going back and forth between using custom loops ...
1
vote
1answer
601 views
Accessing WordPress MySQL Database via Data Connection in Visual Studio 2010 using C#
So I've Googled and followed countless tutorials, read documentation on MySQL, Visual Studio, WordPress, and Plesk. I try to leave posting on this site as the final option and it seems it has come to ...
1
vote
1answer
134 views
Calendar Solution: Handling upcoming Dates with Posts?
I'm not sure I'm allowed to ask a question like this on this forum, however I'll try. My question is not yet about a technical problem but how my complete theme-architecture might be build to fit my ...
