Tagged Questions
0
votes
1answer
14 views
List post only under the category, exclude child category content
I wanted to list posts which are directly under a category and not inside the "sub category". In other words, I want to hide all the posts which are from "Sub Category" in the Parent category view.
...
-2
votes
0answers
26 views
WP create menu items from all category and its sub category [closed]
i'm developing a theme which automatically use categorIES as menu item,
0
votes
0answers
19 views
Add Custom Post Type Categories to General Categories
I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me?
Thank you.
0
votes
1answer
38 views
How to display only one category in a custom post type?
I have a custom post type called 'portcat' and I want to display the results of only one portcat category ('games' - which has an ID of '3') on my page. The below code displays all of the categories ...
0
votes
0answers
50 views
How do I call a custom template for specific Product category and all ancestors in WooCommerce?
I am very new to WooCommerce and Wordpress. I am currently creating a website using both and I'm having trouble assigning a custom template to a specific category and all its ancestor categories.
I ...
0
votes
2answers
105 views
Two columns in homepage each with one category
I modifying a wordpress template to be left with two columns on the main page with the following structure:
The first 4 are of a category and the last 4 of another
The index code is:
...
-1
votes
1answer
47 views
Custom permalinks structure
I would like to have this structure:
www.mysite.com/2013
(must show all posts of 2013)
www.mysite.com/my-category/2013
(must show all posts of 2013 and of category "my-category")
...
0
votes
2answers
135 views
SQL query to get posts from multiple categories but not in a category
I need to get the last posts' ID and the post_tile within categories 1 and 2, and exclude those within category 3. It must be SQL, because if I use WP_Query it retrieves too much info and I only need ...
0
votes
0answers
14 views
Add “.html” Suffix to Category URL Structure [duplicate]
Possible Duplicate:
Add .html (dot HTML) extension to custom post types
I have a site wich the post url structure is "%category%/%postname%.html"
I would like to follow the strutcture and ...
1
vote
0answers
40 views
How to build a simple nav system of custom post type categories and its posts?
I've been searching the web for a long time now, but couldn't find a solid simple anwser to, what seems to be a basic question:
I have to output a list of custom post type categories and the posts of ...
0
votes
2answers
181 views
Multiple menu items highlighted
I am using WordPress as the CMS for my website. For my navigation menu, I am using WordPress' inbuilt navigation menu function. You add categories, page, etc, to this and it generates a list with ...
1
vote
2answers
106 views
What is the advantage of using header-catname.php over is_category('catname');?
Let's say I have a category named as catname (the slug would be catname). I want the header styled differently when visitors open the category catname.
The article on Ghacks explains how to create a ...
0
votes
1answer
122 views
Select posts that match multiple category names, must match all categories listed
I need to search for posts that belong to multiple categories, but they must match all categories listed, as in if I list category names 'japanese' and 'dessert' the matching posts need to be in both ...
1
vote
1answer
72 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
1answer
347 views
Remove “Parent” Selection When Adding/Editing Categories?
I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen.
http://example.com/wp-admin/edit-tags.php?taxonomy=category
I was able to hide the ...
0
votes
1answer
242 views
Custom Portfolio Page
I've a page (at /portfolio) & nav item created called Portfolio. What I'd like is for this page to either contain all the portfolio category's post in chronologically order or else all of the ...
0
votes
1answer
555 views
Multiple Category Search
I'm trying to create a search feature that will allow users to enter a search term and select a couple of categories. The script searches a single category just fine, but when I add more than one I ...
0
votes
1answer
60 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 ...
1
vote
1answer
80 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
35 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?
0
votes
1answer
41 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
433 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:
...
4
votes
2answers
2k 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 ...
1
vote
2answers
4k views
Setting Custom Sort Order of Posts within a Category
I've got this category setup that includes several posts. By design it's not a blog, but a staff listing. Currently all of the staff members have their own posts with the category. I'd like to be able ...
1
vote
1answer
489 views
in_category() works in single.php but not in page.php?
I'm using in_category(array) inside The Loop to detect whether a post is categorised into the Discussion category (or has one of a couple of slugs). This works beautifully on single.php but doesn't ...
0
votes
2answers
142 views
Can I style single post that are in multiple catergories?
I have a regular wordpress site and I am trying to make a mobile version of the same site. For the blog section, I have put all of the posts in two categories: blog and mobile.
The posts in "blog" ...
0
votes
3answers
1k views
How to add meta description, keywords, custom title to a category template
I use custom category templates for a few of my categories. Ex: cat-12.php and so on. I use the Fv Simpler Seo and presently it doesnt seem to support an option to edit category templates.
...
0
votes
1answer
256 views
How to custom category template based on category?
My blog have 2 categories: Photos and Texts.
I would like do customize the category template so that when it renders Photos post's, I want to show a thumbnail gallery and when it renders Texts ...
2
votes
2answers
177 views
One Wordpress Install, Two Categories. Each Category Gets a Domain
Ok here is a setup I am aiming for, hopefully someone knows how to get me there:
One Wordpress Install on www.mainsite.com
www.mainsite.com will be a landing page that points to two Category links: ...
1
vote
1answer
852 views
Restrict categories to a custom post type
In the WP-Admin when creating a post or a custom post type I want to restrict certain categories to a custom post type. For example, Posts will only be able to select Category A and B. And custom post ...
2
votes
4answers
1k views
How to change the layout and styling of posts according to their category in WordPress?
I'm customizing a WordPress installation and was wondering what the best way to do this is. I want to customize each post completely depending on the category. Each post will be under only one ...
1
vote
1answer
2k views
Multiple Domain Names - One WP Install (non-Multisite) - Default Each Domain name to Category Archive
Use case is somewhat simple - here goes:
Five people share a single wordpress install - not multi-user
Each person blogs and puts their posts in a their own unique category
Each person has their ...
1
vote
1answer
1k views
How to select posts from multiple categories and metavalues?
I need to select posts who are in multiple categories and have certain post metavalue. I can select multiple categories with
query_posts( array( 'category__and' => array(1,2,3) ) );
But also I ...
1
vote
1answer
620 views
Automatically exclude categories from metabox based on title
I am designing a website which will be used as a school PA system. Users will be posting entries into categories named for specific dates that correspond to school assemblies. We have two assemblies a ...
-1
votes
1answer
1k views
Multiple Category Query
Is it possible to display a wordpress category page but have it pull posts from mulitple categories?
For example, let's say I need to pass in params for cat_id in this fashion
...
2
votes
4answers
11k views
Custom Post Types on Category Pages
I'm working with a custom post type that uses the normal WordPress categories.
I am able to modify my category template to display my custom post types exactly how I want them.
The problem is, once ...
0
votes
2answers
914 views
Display posts separated by Category in Author's page
I created an author's page using:
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
...
3
votes
1answer
528 views
How to set up sub-categories for author pages?
I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc).
I know that ...
0
votes
3answers
3k views
Use a wordpress page to display a certain category
I'm trying to set up a portfolio page on my wordpress website, and I would like the following construct:
/blog/ where I blog all kinds of things, including portfolio entries
/portfolio/ where I show ...
1
vote
2answers
2k views
Select category in custom query
I'm sure this question is asked alot, but I cannot figure it out, since all the different ways to query posts are confusing me..
Here is my current code.
How can I tell the code to only get posts ...
1
vote
1answer
784 views
Custom sidebar category listing?
I am trying to make a custom Category Display on my side bar and for that I need some way to get both, the category list and the child list in 2 different arrays or something alike...
First, I tried ...