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
2answers
51 views
How to modify category.php to list posts alphabetically?
As the title says. Would be grateful for your help. Thank you.
-2
votes
0answers
22 views
How to change permalink in wordpress for a single category
I'm using this permalink for all /%category%/%postname%/. Due to some reasons i want to change permalink to %post_id% for a single category and it's sub-categories.
i.e. For all permalink is like ...
0
votes
1answer
88 views
load more posts by category
Well as you can see here im doing a load by category in every tab i have
and show a total posts of 10 by each tab i want to setup once the 10 posts are done.
i want to add a load more button to the ...
0
votes
1answer
30 views
Link categories to last post
I am using wp_list_categories() to show all my categories. But I would like that the child categories link to the last post of that category. For example:
<ul>
<li><a ...
0
votes
0answers
23 views
How to display category with post title in frontpage of the custom post type
Hi,everyone.Sorry my bad English,and I hope you can understand what I mean.
In my WordPress theme, I craeted a Custom post type named "Portfolio", Because I want show the single category with list of ...
0
votes
0answers
42 views
Show all posts grouped by category
I would like to show in a page all the posts grouped by category.
Example:
Category A:
Post 1
Post 2
Post 3
Category B
Post 1
Post 2
Post 3
How can I do it?
0
votes
0answers
22 views
How to populate a Wordpress install with a lot of categories, quickly?
I'm looking at starting a new project, but I've not done anything like this before. I'm hoping someone with more experience will be able to offer me advice on this one.
The site revolves around ...
0
votes
1answer
33 views
Display posts from a category
I am trying to display a bunch of posts from a single category on the category page, using multiple loops.
<div id="featured-content" class="clearfix">
<?
// assign the variable as current ...
0
votes
1answer
26 views
Disable custom taxonomy on admin bar
I created a custom taxonomy and i want to disable the taxonomy to show on the admin bar below my custom post type. How do i disable it?.
The reason i want to disable is because the user is not ...
0
votes
1answer
26 views
Display Sub-categories or Child Pages of Parent Cat/Page?
I am seeking two codes which I haven't been able to find which would allow a child menu to be created in a sidebar.
A code to display the sub-categories of the parent category.
A code to display the ...
0
votes
1answer
43 views
Assign a custom post to a custom taxonomy based on custom field value
This answer does exactly what I needed to do, but the only thing is I need it to select more than just one category.
So I have changed the code to work based on salary so salary gets entered into a ...
0
votes
2answers
57 views
How do I show posts from another wordpress installation?
I have looked around and I cannot seem to find an answer to this question. There are similar questions/answers but none I have seen managed to answer this question, so I am sorry in advanced if I have ...
0
votes
0answers
52 views
woocommerce horizontal menu parent cat and subcategories as vertical menu
I have looked a while to find a solution for this and cant get a clear path on how to do this.
basically i would like the child categories listed as a vertical menu but only the ones who belong to ...
0
votes
1answer
18 views
Get post category as a separate string and url
I need to figure out how to get post category as a string and link, both separate from each other.
So the return would be something like:
Uncategorized
http://link-to-the-category.com
however both ...
0
votes
1answer
25 views
Link each category to last post
I would like that each category link to the last post of each category.
category 1 ----> link to the last post of category 1
category 2 ----> link to the last post of category 2
category 3 ----> ...
0
votes
1answer
25 views
Make three menus with three category levels
I want to have 3 menus of categories, and each menu with diferent level of categories.
First menu with First level categories:
category 1
category 2
category 3
If I go to the first category, I ...
1
vote
1answer
37 views
Resort get_categories
I have a get_categories array
$args=array(
'orderby' => 'id',
'order' => 'ASC',
'taxonomy' => 'wpsc-variation',
'hierarchical' => 1,
'hide_empty' => 0
);
...
0
votes
1answer
47 views
Use the category name instead of category slug in permalinks
How to create a permalink structure which finish by:
/category-name/post-name/
Instead of:
/category-slug/post-name/
By default, Wordpress is offering %category% tag strucure as "A sanitized ...
0
votes
1answer
40 views
Editing “Kahi's Highlight Used Categories” plugin code - highlighting parent and child category in post page
I´m trying to highlight (using css), the child and parent categories in use in the selected post.
So I´ve found this plugin "Kahi's Highlight Used Categories".
Plugin´s website: ...
1
vote
2answers
49 views
I want to display the all the posts that are inside a certain subcategory
I want to display the all the posts that are inside a certain subcategory in a specific order that I decide (this is because the category contains a list of tutorials and I want to decide how to list ...
0
votes
0answers
34 views
Limit categories appearing in latest feed
I am using ColorLabsProject's 'Reportage' theme ( http://demo.colorlabsproject.com/reportage/ ) as a mobile site and the six categories listed at the bottom of the front page are pulled in ...
0
votes
2answers
30 views
Categories to A News Page
I'm trying to use categories to get all my posts (within a category-news) to go to the NEWS page on my site.
I've created the category 'news' with some posts and a 'category-news.php' file which is ...
0
votes
1answer
24 views
Get only X number of categories
How can i get only x number of categories using the_category. I triesd a few thing but none worked. I dont want to use get_the_category
-1
votes
1answer
68 views
woocommerce retriving category name as div class?
I am trying to retrieve the category name of a WooCommerce product displayed in a WordPress loop and use it as the class for an li (also inside the loop). I've tried this:
<div id="isocontent" ...
0
votes
1answer
55 views
Taxonomy page wpml dropdown not working
I have created the custom post type with the taxonomy product-categories.
I have installed wpml and added the menu with the custom category. When the menu created using the custom post type category ...
0
votes
1answer
38 views
How to get category names in post_class?
I have this class for my posts:
<?php post_class( 'entry-image' ); ?>
I want to add the category names to get isotope work, i followed this guide ...
0
votes
1answer
25 views
“Item not updated” when try to change category properties
When I try to change some properties for some categories (in most categories it works without any issues), like category name, or description, I see that it is not updated, and I get an issue "Item ...
0
votes
1answer
29 views
Slideshow with custom post type and categorize with taxonomies [closed]
So I have a problem. I made an custom post type and a taxonomy so I can categorize the pictures.
What I want is to filter pictures for example: category=Frontpage (shows all the items from the ...
1
vote
1answer
60 views
Show thumbnail for category?
I currently have a code where, in my category.php, it checks if the specific category has subcategories, and if it does, show them using wp_list_categories.
I'd love to have these wp_list_categories ...
0
votes
1answer
21 views
How can i show categories of custom post
I make my custom post and the name of that custom post is FAQ. so now i want to show the categories of that post. The code i am using for this is
<?php ...
0
votes
0answers
40 views
$category_ID = $category[0] ->cat_ID; For Single at Footer
I'm using the $category_ID = $category[0] ->cat_ID; for my code.
When on header, it's working well but when I add it to footer, then it doesn't work. And i used is_single() for it.
if ...
1
vote
1answer
77 views
Allow duplicate permalink slugs for posts in different categories
I have my permalink format set to /%category%/%postname%/ and I have two posts with the same permalink slug, but in different categories.
Ideally, the two permalinks should look like this:
...
0
votes
0answers
25 views
Display Category Navigation wp-navi
I am writing here because after hours and hours I can't fix my problem.
I am using a Custom Theme
I am using the plugin wp-navi
My pagination works fine.
The problem is to display categories when ...
0
votes
0answers
48 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 ...
-1
votes
1answer
25 views
Help Me “in_category” with echo? [closed]
if i usage below code, that show category id "20"
<?php echo $ct_portfoliocatid; ?>
But when i usage "in_category" for generate category ID '20'. Like this:
<?php if ...
0
votes
1answer
37 views
How to check if a categoryID exists in a theme options page
I have tried to make a theme options page (starting with a sample theme options page from themeshaper) and I want to check if a comma separated list of categories is valid. Remove duplicates, remove ...
0
votes
0answers
19 views
Filtering in category metabox in Edit Post screen
Is there any plugin that enables filtering of categories in the metabox shown on the Edit Post screen. One of my clients has over 200 categories and it's becoming quite a chore to look through that ...
0
votes
0answers
12 views
front end category change
Hey I'm looking for a simple way to change the category of a post from the front end. How could this be possible? (I really don't want to use have front end editor plugins, and I want to use a short ...
0
votes
1answer
58 views
Recent posts in current category?
On my category page (not single.php) I'd like to have the recent posts from that category in the sidebar, it also needs to be dynamic.
I'm already doing something similar on single.php, but I can't ...
0
votes
0answers
28 views
Incorrect template is being loaded [closed]
I have a custom category.php template within a theme which used to work.
Since making changes to other template files for other types of pages, this has stopped working.
Whenever I attempt to visit ...
0
votes
1answer
34 views
WP_query exclude a category unless it has more then one catagory
I have this category exclude_cat with id 39 I want to exclude it from the home. So I use for WP_Query args like this:
$args = array (
'category__not_in' => array( 39 ), //exclude ID
);
Works. ...
0
votes
1answer
26 views
PHP dynamical conditional post display
I'm trying to get the WordPress loop to display only the post has an ID that reflects whatever $category_name is equal to, as shown in the line of code below. It ends up showing everything and not the ...
0
votes
0answers
27 views
Displaying posts by year
I'm trying to display posts on the homepage from the current year only. I am using the following:
<?php if ( is_front_page()) { ?>
<?php $current_year = date('Y'); ?>
<?php ...
1
vote
1answer
24 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, ...
0
votes
0answers
35 views
Posts should use different layout based on URL
I have following situation:
My clients site displays various items respresented by posts.
The menu allows two options to view these posts:
First is "show all items of type X"
Second is "show all ...
0
votes
0answers
28 views
post count on toggel meny - product category
I want to add post count on product catalog at widget toggel menu. so product catalog menu will have post count examp computers (2), PC (15) etc.
below is the php lines
<?php
/**
* Your ...
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
35 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
34 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
23 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 ...


