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.
0
votes
1answer
22 views
Show the latest post from child category?
How do i show the latest post from a child category?
I have the category Photos, but I want to only show the latest post from the Child category "Paparazzi"
what do i add to the code below to do ...
0
votes
1answer
37 views
Category that can hold only specific number of post
I would like to know is there any way/Plugin to limit the the post number of a category? And whenever user publish new post in that category then the category release the old post automatically?
Like ...
-1
votes
1answer
35 views
How to link images of one WP site to another WP site?
My first site is having 92 categories to display more than 10,000 SMS. Now I want to insert random images to all my posts (SMS) from my other site which is having images as per my categories in SMS ...
0
votes
0answers
25 views
Add new field to categories and use it to order get_categories()
I want to personalize the subcategories order using a new category field called "order".
I've been able to create this field using the 'edit_category_form_fields' & 'edited_category' hooks in my ...
2
votes
2answers
113 views
Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/.
After that, when ...
0
votes
0answers
33 views
About: Jigoshop - change the order in which products show up in a grid
I found a piece of code you wrote, this piece of code is exactly what I want to order products on a category basis, but it does not seem to have any effect when I test it.
Your code:
...
0
votes
1answer
31 views
wp_dropdown_categories initial value
I am currently pulling in an option drop-down of a specific category using:
<?php wp_dropdown_categories('child_of=20'); ?>
I would like the initial value of the drop-down to say 'Bedrooms' ...
0
votes
2answers
33 views
How to add the sidebar in all category page
I created custom post type. I created category called product-categories. I listed all categories in sidebar.php. How to show the sidebar in all the category pages listing all the categories. ...
0
votes
1answer
36 views
How to get the post of category
I have created the 2 categories. And these two categories have child category, how can i get the post of the category when I clicked on the category title. Please guide me
-1
votes
1answer
62 views
WooCommerce Product Search Error
I wanted to display product category,in product catalog on my WooCommerce site.I asked another question earlier to make this code working.I added this code on my content-product.php file.
...
0
votes
1answer
85 views
wordpress category.php query for featured news item, broken pagination and repeating posts
I am having a few issues with a site I am building, on the news page It has 1 featured post from the news category and then under that more news category posts, but missing out the featured news item ...
0
votes
1answer
40 views
I need to create a page or post hierarchy
I am currently stuck and I need some advice ASAP. I am making a site for a client on which they need to have a sort of hierarchy like this
Carriers (Main Category or page)
-Level 1
-Level 2
...
0
votes
1answer
91 views
How to display product categories and number of sales on WooCommerce
I am currently working on a WooCommerce site.I managed to set it up,do some configuration according to my plan.Now i want to display product categories alongside each products in product catalog,and ...
0
votes
1answer
28 views
Logic for Nearby places with post and categories
I'm developing a website which has states as categories and posts as cities. What we are trying to do is identify each post (city) and also show nearby cities to the current city.
As of now we are ...
0
votes
1answer
46 views
Can I hide a specific post from latest posts page?
Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page.
Is there a way to ...
0
votes
1answer
39 views
Display categories and their IDs
Could anyone please tell me the code to display parent categories and their children along with their IDs?
I'd like to, for example, print them in this way:
Europe, United Kingdom, London (Europe is ...
0
votes
1answer
73 views
Posts of specific category on page and excluded from index.htm
hope things are going well.
I'm trying to create a member's only section specific for posts of about job opportunities. My goal is to have posts of this category displayed on this page and excluded ...
-1
votes
1answer
198 views
WooCommerce: List All Categories
I'm using the WooCommerce plugin with WordPress and within my theme I'd like to list all categories within a navigation menu with PHP.
I've tried using woocommerce_product_categories();
but I don't ...
2
votes
2answers
130 views
Show pages and articles in category search result
I'm using "Map Categories to Pages" to add categories to pages.
When I call the link http://mypage.com/category/catA+catB I get all my articles, that are associated to the categories catA and catB. ...
0
votes
0answers
47 views
How to remove subcategory permalinks on archive page of customtaxonomy and category?
I display the list of parents-category on the home page.
I display the list of subcategories on archive category page.
<?php if (is_home()){?>
<div class="widgettitle"><h3> ...
1
vote
0answers
36 views
Creating Category Specific menus
I have a question.. I am trying for this since many days.. but didn't get success. My requirement is say I have 5 categories:
cat1,
cat2
cat3
cat4
cat5
Now each of category has 'N' number of posts.. ...
1
vote
1answer
59 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 ...
0
votes
1answer
39 views
How we add new categories by wp_insert_post
I am using fornt end form submission now i want to add new category and before adding this category i want to check whether it exist or not, if yes then simple add to that category otherwise add new ...
0
votes
1answer
187 views
wp_list_categories, Add class to all list items with children
I'm using wp_list_categories(); to show a list of all the terms within a custom taxonomy but I need to style list items that have children differently to those that don't.
Is there a way, PHP or ...
0
votes
3answers
50 views
Am I mixing up the concept of posts pages and categories?
I'm planning on having workshops on this layout:
I have several workshops: Meditation has 2 or 3, Reikki has 2 and Feng Shui has a couple.
So as I read the codex about pages and categories I get ...
0
votes
1answer
20 views
Display one category and its suncategories
I am using this code to filter posts. How can I modify to display only one category and its subcategories. Not all categories.
<form action="<?php bloginfo('url'); ?>/" method="get">
...
0
votes
1answer
24 views
output only if within a combination of two cats
What Im looking to do is look if on one page out put posts that have 2 cats selected (they must have both selected to be shown, not just one cat)
if (is_page(15) || $post->post_parent=="15") {
...
0
votes
0answers
35 views
Remove child categories from permalink
I have a custom post type permalink setup which looks like:
.../post_type/%category%/%postname%/
The problem is that when I have sub-categories, it adds them in the URL.
Instead of:
...
1
vote
2answers
25 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 ...
0
votes
0answers
12 views
WordPress MU Sitewide Tags restrict by category
I want to restrict or stop certain categories from being "sent to the "tags" blog.
The advice (on another forum and from one of the devs) is as follows (but i cant hack it!) :-
"hook into save_post ...
0
votes
1answer
74 views
get_categories() for only CPT
On the site that I am working on I have Jobs as a custom post type and Locations as custom taxonomy. The Locations are used by Jobs, Posts, and other CPTs.
I am working on a small filter for the ...
0
votes
0answers
28 views
display sub categories assoccited with each post in a category archive page
i have wordpress blog with many posts. each posts associated with many categories and sub categories. i want to display sub categories assoccited with each post in a category archive page.
for ...
0
votes
0answers
38 views
override “cat” parameter using pre_get_posts
There's this query:
new WP_Query('post_type=post&posts_per_page=3&orderby=date&cat=10' );
I'm using pre_get_posts hook to modify the query and it's working fine for different parameters ...
0
votes
1answer
43 views
One color to category link depending on category ID
I would like to style a category link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink.
I cannot find a way to do the same thing to links. What type of ...
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:
...
0
votes
1answer
49 views
Custom loop of a single category, cannot order by date. What am I missing?
I'm going nuts.
All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
0
votes
2answers
110 views
Add multiple orderby with pre get posts
I am already using a small code to set default sort orderby a custom field called "Year" I need to add another orderby to also sort by "Post Title" in the same sort.
Sort = Year-Customfield (DESC) ...
0
votes
1answer
34 views
How to differentiate the homepage structure from the category page structure in WordPress template?
I am very news in WordPress world and I am finding some difficulties with creation of a personal template.
I want implement a blog like this one (that is using WordPress): ...
0
votes
1answer
111 views
WP the_posts() on single-cars.php get category link
I have a custom post type called cars.
There is a taxonomy brands.
I have a template single-cars.php and I'd like to add a link to the brand page(The category).
Assume I'm on the page of the post ...
0
votes
3answers
54 views
how to “not” display new posts with a specific category on the main page?
I've read this and this but I'm just a basic user.
I have a "technical" blog that more and more people visit.
I'm a freelance, and now, when someone hears about me, he/she wants to search for me, ...
1
vote
1answer
58 views
How to get the url to tag & category base set by the user?
I'm searching for half an hour now on how to get the url/permalink base in Wordpress (the 'category' and 'tag' value set in the backend). Could you please point me in the right direction?
I want to ...
0
votes
1answer
37 views
How do I rename a category in the menu bar only?
I'm surprised this hasn't been asked before, but I couldn't find it via search.
I'd like to do:
Full Category Name -> Text in Menu Bar
Exercise Tips -> Tips
Reviews of Exercise Equipment -> ...
1
vote
2answers
51 views
get all sub categories without specify any category
I have 2 levels of categories ( one sub-category only. No sub-sub category ). I need to get all sub categories without parent category. (I don't want to specify any parent category.)
Example:
p_cat1
...
2
votes
1answer
51 views
Category page only displaying the posts from a custom type
Situation
I have two cpt:
Projects
Works
In these two CPT I share the same taxonomy 'Category', and the same terms:
Architecture
Landscape
Interior Design
I have URLs like
...
0
votes
1answer
119 views
Multiple Categories Filter
I'm trying to implement a multi-category checkbox filter for search as seen here at http://melandri.net/2011/12/31/multiple-categories-filter-in-wordpress-search/
When I add the first function ...
0
votes
1answer
31 views
Page that 'subscribes' to multiple categories
I'm creating a website where I need to 'subscribe' client Pages to certain categories.
For example:
On example.com/client/johnson-co/ show all posts in the categories 'GST', 'Estate' and 'Tax ...
0
votes
0answers
25 views
How to create a category template for each category hierarchy level?
Is it possible to create a category template for each of the available hierarchy levels? Here's the structure I want to replicate:
Product A (level 0)
Subproduct A1 (level 1)
Subproduct A2 (level ...
0
votes
3answers
130 views
How to filter posts by format and category via url?
I figured out I can filter posts by format just by doing /type/{format} e.g. /type/gallery/ in the url.
Looking for a way to filter by categories on top of this, something like ...
1
vote
1answer
65 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 …
...
0
votes
0answers
10 views
How to add a custom field to my custom taxonomy? [duplicate]
I need a new field above "Description". It will be a short description for my custom taxonomy.
So I would like this field only for my custom taxonomy, and not to all categories.
How to do that?



