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
1answer
54 views
How to remove the parentheses from the category widget
In the default category widget, when you check the "show posts count" checkbox, the number of posts appear surrounded by parentheses, how to remove them.
0
votes
1answer
29 views
strip last comma from get_the_category
foreach((get_the_category()) as $category) {
echo $category->cat_name . ', ';
...
0
votes
2answers
52 views
Showing all the posts in one page?
There are over 200 posts tagged with the keyword "Apple."
Each tag page -- example.com/tag/apple/page/2/ -- shows 10 posts.
So there are 20 tag pages.
Is it possible to show all these 200 post ...
-1
votes
1answer
28 views
How to display my categories in a list (to a post, not the sidebar)?
i want to display my categories to a post like a list. i have this (parent- and child-) categories:
- Sports
- Football
- Basketball
- Toys
- Dolls
- Lego
- Books
for example one ...
1
vote
2answers
52 views
Edit the markup of categories list
I want to list x number of categories. I'm using wp_list_categories function, it generates the following markup
<li class="cat-item cat-item-1"><a ...
1
vote
1answer
119 views
Full text articles in the rss feed (i.e. without the more tag)
I can't seem to remove the "Continue reading..." link in my rss feed. The feed is located here: http://gforge.se/category/r/feed/ I use the <!--more--> tag manually and I've checked that the ...
-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
1answer
104 views
Custom post type category permalinks and archive pages
I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup:
Custom Post Type: ...
0
votes
1answer
76 views
Advanced permalinks structure
I would like to get this:
mysite.com/category/tag/
example:
mysite.com/news/sports/
News is a CATEGORY and sports is a TAG
How can I do it?
Thanks.
1
vote
0answers
126 views
Show category images on single product page and product overview page
I am running a woocommerce shop and I have products which are in multiple categories. I would like to show the category images on the single product pages. And also on the product overview page.
I ...
0
votes
1answer
148 views
Using wp_list_categories like the the_category (showing just current categories of a post)
fromi'm using wp_list_categories to get an unordered list with headlines (on single.php inside the post-loop):
<ul><?php wp_list_categories('title_li=0');?></ul>
the thing is: i ...
-1
votes
1answer
20 views
Are custom posts included when getting a categories' posts?
Would WP_Query('cat=1') display custom post types, or is that something that I have to specify?
I have a custom post type, am assigning it to a category, and would like for it to be displayed when ...
0
votes
1answer
58 views
Display deepest post category, when post have multiple categories
I want to display the direct category ancestor of a given post. An illustrative example:
These are the categories I have:
Cat1
Cat2
Cat2.1
Cat2.1.1
Cat2.1.2
Cat2.2
Cat2.2.1
...
0
votes
2answers
37 views
How can I tell what category I'm in— in the header?
How can I identify what category the current page is showing in the <head>? Here's the code I have now:
<?php if ( is_home() ) { ?>
<!-- set up for home page ad -->
<?php } ...
0
votes
2answers
143 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
1answer
176 views
Pagination on category.php and tag.php not working
i'm using a query-loop on my template pages like this:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query();
...
0
votes
1answer
105 views
Display Related Posts by Category in Random
I use one of smthemes and there is this code in theme to show related post. it shows the last created related posts, but I want to show related post by random, How can I do that?
global $SMTheme;
if ...
0
votes
1answer
74 views
WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
I have two categories that will always stay the same. They are called "Events" and "Show on frontpage". The latter is a child category to Events.
What i want to do is, when fetching posts (using ...
1
vote
4answers
85 views
Different backgroundg-image by category
I am trying to put different body background-image for each category.
body {
background-color: #000;
background-image: url(img/bg.png);
background-repeat: no-repeat;
background-position: center ...
0
votes
0answers
52 views
How to add a custom permalink to posts that have one specific tag or category?
sorry if the title doesn't explain well what I want... I'll write an example. I have set one Wordpress site with this permalink settings:
/%postname%/
That's what I need for mostly of the posts, but ...
0
votes
1answer
402 views
List all custom post type posts from a given category?
I have a custom post type myposttype and it's taxonomy is called myposttype_categories.
myposttype_categories have multiple terms inside, such as foo and bar.
The tricky question is - how do I list ...
1
vote
0answers
201 views
Refine/Filter the Search Results by Category
I am currently creating the process of a function which allows one to refine results, Namely by category. Similar to themeforest.net refine the search results.
When i gave as search term "Hello" and ...
0
votes
1answer
73 views
Allow user to set custom order to a list of custom taxonomies?
I have a custom category checkbox on each individual bio attorney page that shows what practice areas these attorneys are involved in. Currently I have them sorting alphabetically. I am wondering if ...
0
votes
1answer
74 views
Is it possible to have different header style blog titles in different categories?
For my category titled 'mindset' I would like to use the following style on my post header:
background: none repeat scroll 0 0 grey;
border-bottom: 5px solid #83990A;
However for my 'news' category ...
0
votes
1answer
208 views
Paginate WordPress Category Pages
I am using the following query on my category.php template:
<?php
$paged = (get_query_var("paged")) ? get_query_var("paged") : 1;
query_posts("posts_per_page=2&paged=".$paged);
?>
...
0
votes
2answers
150 views
Can each user have only access to a private area (his own categories and posts)?
I am working on a wordpress site and one of the key features i want to have is the fact that each user, once registered should be able to :
create his own categories (that will be visible only by ...
0
votes
1answer
26 views
inserting a category into post
Can you tell me how can I insert a whole category into the specific post. for example: have 4 posts in a category "zanimljivosti" and I want to put that category to be shown inside another post not as ...
0
votes
1answer
279 views
Setting selected term_id with wp_dropdown_categories?
I'm using this code to get the term_id of a custom taxonomy. The drop down does list the terms of the taxonomy Type. When I print the $terms variable I see the term ID of the post i'm editing on the ...
0
votes
1answer
60 views
Filter categories/tags to display in multiple metaboxes for selection in back-end
My site uses a lot of categories and tags for author selection in the back-end. To make it more user friendly for authors I need to arrange the categories and post tags in numerous metaboxes for ...
-1
votes
1answer
56 views
How to add a post without assigning to a category?
Can any one please explain how to add a post in WordPress without assigning it to any category.
Actually I want to display some news or some quick information. So, it does not come to any category ...
0
votes
1answer
80 views
Get a list of post titles and links from yootheme master theme
Hi I am using the yootheme master collection and I wish to get a list of 10 permalinks from this custom post catagory but at the moment I can only get 1 to show. How do I do this properly?
Cheers
...
0
votes
1answer
40 views
Older entries link within a category page
I have set up a category called 'blog' and have all of my posts displaying from this category. I have selected to display 4 posts / page therefore there is a link at the bottom that says older ...
0
votes
1answer
44 views
Problem with single posts not showing correct category sidebar
I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
38 views
single.php fires more than once after clicking on any post to view with different post id each time
I am now experiencing a wired problem with my wordpress installation. I was surprised when I saw post view counter of another post also increased including the the post on which I clicked to try and ...
0
votes
1answer
302 views
How do I show child categories if in a parent category, and posts if in a child?
I was hoping to do all of this within the category.php template, with help from the functions.php if needed.
If my setup is:
Parent 1
--Child 1
--Child 2
Parent 2
--Child 3
--Child 4
Parent 3
...
0
votes
1answer
191 views
Add custom field to all posts in specific category
I want to bulk add a custom field (category) with value (photography) to all posts in a specific category (photography, with Category ID 5).
I have used the code below to bulk add a custom field to ...
0
votes
1answer
155 views
get_category_parents for custom post type taxonomy
I know that we can get the parent category in normal post type by:
get_category_parents($cat, TRUE, ' » ');
But how can we get the parent category in custom post type?
I use this for:
...
0
votes
1answer
63 views
Display the first post's comments of category in comments.php template
I want the display the comments from first post of the category only.
Example;
Category
- Post 1 (2 comments)
- Post 2 (1 comments)
- Post 3 (5 comments)
If I am reading the Post 2 or Post 3, I ...
0
votes
2answers
58 views
How to get the number of posts in a selected category?
I would like to show the number of posts on the category page. How is it possible? I tried to find a solution but no luck..
Thank you!
0
votes
2answers
66 views
How to insert category list into post creation page, and retrieve chosen categories?
I would like to display the full list of categories on the Page creation page, so that the user can pick using checkboxes which category posts should appear on that page.
I then need to retrieve ...
1
vote
0answers
54 views
How to make the link to the category for a post go to corresponding page number in archive?
For instance, I am at http://url.com/single-post and in the post there is a link to the category that navigates to http://url.com/category/page/3/ which is the corresponding archive page that contains ...
2
votes
2answers
116 views
Rearranging posts based on categories
Hey everyone on Stackexchange!
I'm trying to find a way to prioritize posts based on a category in a loop, which is sorted by dates. All posts are grouped under their respective dates. The date ...
0
votes
2answers
107 views
Multiple Categories under one URL, where 'Front Page' is used already
I couldn't find an answer relating to this, maybe I just didn't come across it yet.
So the setup of the site I am working on at the moment:
The Front Page is not set, is default. I can't change this ...
0
votes
2answers
72 views
Including categories in search results
I am trying to include categories in search results. I've been searching for hours now with no solution.
By "including categories" I don't mean search in a certain category, I mean let's say I have a ...
0
votes
1answer
41 views
finding out the top 5 source ( source is a custom taxonomy ), in a given category
The client I'm working with have thousands of articles and media ( audio/video ) files.
To WordPress, all are posted by Author ID 1, which we named as STAFF.
All the content though in reality has ...
1
vote
1answer
140 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 ...
0
votes
1answer
25 views
Need help with category page customization meeting certain condition
I have 3 columns in my category page. On the left column, I want to show Recent posts only from that category I am viewing. In the middle column I want to show most viewed post only from that category ...
0
votes
1answer
29 views
Listing category
This is the code I'm using for listing categories:
<?php
$this_category = get_queried_object();
$args = array(
'orderby' => 'id',
'show_count' ...
2
votes
1answer
311 views
WP Query group/order by category name
I have a requirement for displaying a list of custom post types grouped by category, but in addition to this, each custom post is linked with a meta value (in this example lets say we have a custom ...
0
votes
0answers
28 views
Category “checked” for continuous upload + Critical Question
In contrast to Newspaper & Blog, an editor has to upload more and more news in categories for newspaper than a blog.
In newspaper, there might be not less than 30 news in a category, like:
...