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.

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

Generate Permalinks on same category

I'm using categories to create a content matrix. I have two kinds of categories: tracka trackb trackc topic1 topic2 topic3 Articles are then categorised with one of the first group, and one of the ...
1
vote
1answer
82 views

Hide posts of a certain category unless logged in

I want to hide posts belonging to a certain category unless logged in. I found some code(attached) in the codex that works great for the loop. But how to ensure the post pages are empty as well? ...
3
votes
1answer
29 views

Page naming when there is a sub-category only sometimes.

I need help with understanding page naming to display a sub-category which only occurs only sometimes. I also need to understand if I need to create a custom Taxonomy to achieve this? I am using CPT ...
0
votes
0answers
45 views

Post's URL changes automatically to category's URL. How to solve?

When I create a new post, I edit its URL to be something I like, let's say "My Post". I put this post in a category, say "Cat1". After I publish the post, the post itself is accessible from its ...
0
votes
2answers
31 views

Show One Level Category id

This is my cat directory structure Games Cricket -- Bat -- Ball -- Wicket Machines Electrical -- Fan -- generator -- Computer I am on category page of Bat or Ball or Wicket. Can anyone tell ...
2
votes
1answer
55 views

get_field not displaying my custom field value

I'm asking regarding the ACF plugin (Advanced Custom Fields) I'm working on creating a category group that will add custom fields to the category pages. These are the fields: They seem to work in ...
1
vote
1answer
46 views

Show only one category

I have this code to show cathegory like image: <?php foreach((get_the_category()) as $cat) { $catname =$cat->category_nicename; echo "<a href=\"/category/"; echo $catname; ...
0
votes
0answers
35 views

WooCommerce - order products by default or a-z

I have changed the Breadcrumb Bar in breadcrumb.php and added 2 arrows "> next" and "< prev" to the right top, and now we are able to browse the products. To do this, I get the category of the ...
2
votes
1answer
18 views

New blog template to display only one category

I understand that I can copy my theme's default blog template and change the code to make it display only posts from one category in the theme's style. I tried tinkering with it, but to no result yet. ...
1
vote
2answers
73 views

Pagination Not Working on Category.php page

My site is enerating some code for older/newer posts on the category page, but when you click "older" the link does not work. it is generating /blog/page/2 from /blog/ Tried a few plugins (WPnavi, ...
0
votes
0answers
20 views

Hide categories from authors

Is there a possibility to hide certain categories from specific user roles? This must only affect the backend, especially the create post site. On the frontend these "hidden" categories must not be ...
0
votes
0answers
88 views

Using both woocommerce default category display display types for different categories

I have two WooCommerce Category types, Films and Collections, each with associated sub categories. I want to be able to use both WooCommerce 'Default Category Display' types i.e. the list view (show ...
1
vote
2answers
34 views

How do I render all posts of the same category in same layout?

I have several posts that share the same layout but have different title and content. This layout is different from that on the site. I can use single.php to render them, but then ALL posts will ...
0
votes
0answers
13 views

How to update/ change category of post when it is inactive for a certain days

From the discussion setting, I found that wordpress can turn off the comment automatically when you don't get any comments for a certain days. I am trying to write a function so that I can change the ...
1
vote
2answers
58 views

Script to duplicate categories as tags

I have a site with 900+ posts, each with about 3-5 categories. I would like to copy each of the categories to be a tag and am looking for the SQL code to do just that. I do not want to delete or ...
-1
votes
1answer
24 views

How to add a tag above a category post that displays the category name in Wordpress

I am wondering how I can display the category name on top of each article on this page. For example, each of the articles on this page are from multiple categories. Preferably, the category name would ...
0
votes
0answers
26 views

Use two categories and remove for first data

So I find id for two post categories, and now I'm trying to write php code in content-single.php in acesspress lite. This is that I obtained: <article id="post-<?php the_category_ID(7); ?>" ...
0
votes
0answers
6 views

I've moved one catagory of posts to another wordpress blog, how do I redirect only those links?

I have a personal blog that covers, amungst other things, the process of starting a charity and a number of guest posts on disability issues. It also contains quite a lot of 'fluff' - personal rants, ...
0
votes
1answer
71 views

How to filter out post from a category not its subcategory in wordpress dashboard

I have a category named "SERVICES" and I have added three subcategories for "SERVICES" category. I have added three posts for the category "SERVICES" and several posts for the subcategories. Some of ...
0
votes
0answers
37 views

problem with php script inserting categories in wordpress

I have a php script taking categories from softonic.com, and im trying to insert them into my blog, but I have a few problems. The first of all, is that the categories are not with any link into my ...
0
votes
1answer
29 views

All categories displays the same posts

Googled for hours and couldn't find solution anywhere. =) This solution doesn't work as well: Display all posts in current category Regardless of how I alter my query_posts - it always displays all ...
1
vote
1answer
57 views

Not sure if I should create multiple custom post type [closed]

I am working on a projects that has different tutorials, such as js, html, css and etc. I was initially thinking to create one custom post type for each tutorials, but after some research, I think ...
0
votes
1answer
91 views

query_posts by category_name and custom taxonomy

I want to display posts filtered by category_name and custom taxonomy-term: I have function channel_init() { // create a new taxonomy register_taxonomy( 'channel', 'post', array( ...
0
votes
0answers
8 views

Displaying only post from certain category on index [duplicate]

Currently on my homepage, I have a portion which displays my post but it also has page navigation for all of the post now what I am trying to achieve is having the same layout nothing changing other ...
0
votes
0answers
24 views

can't see categories in appearance-menu-categories

I have a php script that takes categories from softonic.com. It is supposed to insert these categories inside an apps category. It does it with wordpress functions. After launch my script I can see ...
0
votes
0answers
28 views

Getting posts for a category

I have a menu made up of categories, click a category shows the users list of articles beloging to said category. However I seem to have stumbled across a problem if a post belongs to 2 or more ...
0
votes
1answer
98 views

Combine results of multiple WP_Query to resemble single WP_Query

This is the code I've been using, with the preceding query parameters excluded for brevity. As you can see, this comes from a widget that displays a grid of posts. The problem is that I can't figure ...
0
votes
0answers
39 views

Ordering posts in chronological order by category

I have pages that populate all the posts within a category. Here's an example. I would like these posts to be ordered in chronological order, but currently it's in reverse chronological order. I ...
0
votes
0answers
13 views

Custom Theme with Included Infinite Scroll Won't Load Post Thumbnails

I'm open to any constructive feedback, here. I have a custom theme that we've included infinite scroll in but I noticed today that, when loading category posts, once the additional posts are ...
0
votes
0answers
155 views

Pagination for ajax category filter

I created an AJAX category filter for a custom post type with custom taxonomy. 1)It's working but can't figure out how to add pagination for the custom taxonomy once it filters. When I click on ...
2
votes
4answers
287 views

Custom edit post column - category not showing

I added a custom column to a custom post type: add_filter('manage_posts_columns', 'custom_columns', 10); add_action('manage_posts_custom_column', 'custom_columns_thumb', 10, 2); function ...
0
votes
3answers
113 views

Static text above category page

I'm trying to add some static (welcome) text above my post excerpts, for which the posts page has been set up to display a category, in this case News. Link I've tried entering the following: ...
0
votes
1answer
41 views

Display child categories in WooCommerce

This code displays the category thumbnail and title of the two parent categories for WooCommerce product categories. I have several child categories I'd like to display as well. Is there way way to ...
0
votes
0answers
9 views

Custom internal search posts based on location and category

I have the next function in wordpress wich search in DB after if (isset($_GET['where'])) $metrodir_search_location = $_GET['where']; else $metrodir_search_location = 'Pitesti'; if ...
0
votes
2answers
73 views

Inserting HTML to close and open divs in WP_Query loops

The output I am trying to achieve is this: <div class="row"> <div class="small-1 large-4 columns"><a href="some link"><img src="some image"></a></div> <div ...
1
vote
1answer
96 views

get_post_type_archive_link('post') returns current category archive

I am using get_post_type_archive_link('post') on my index.php page to get the url of all posts from all categories. I'm using it in a filter. I have listed all the categories separately using ...
2
votes
1answer
50 views

Attachment page per category

I want to display a custom attachment page for a specific category, i.e. attachment page for category wallpapers should have a different template than category cars. Any suggestions?
0
votes
0answers
30 views

Remove /category for multisite

I need to remove /category word from URLs on Wordpress multisite: This code works fine for single Wordpress site: RewriteRule ^category/(.+)$ http://www.domain.com/$1 [R=301,L] But it doesn't work ...
0
votes
1answer
139 views

Woocommerce - Display product category of product in Orders page

I need to show the product category of product in admin Orders page when a customer make a purchase.Appreciate if any one can help. :) screen shot attached where in need to display product category of ...
0
votes
0answers
24 views

Tags & categories in post not found how can I fix?

I am setting up a custom theme with as base template underscore. New I am completing the last bits and bolts ... but it seems that the categories and tags are not working: ...
0
votes
2answers
61 views

Category page shows only 1 post when that post has more than 1 category?

The error I'm seeing is that the way I currently have my category page set up, if a post on that page has more than 1 category, the loop won't load the posts that follow the one with multiple ...
0
votes
1answer
38 views

Having pages after specifying post_type post

I want to loop through all posts in category 4,but why is there still pages in the result after specifying post_type post? $homeNeWs = new WP_Query(array( 'post_type' => 'post', ...
0
votes
1answer
17 views

Assign a category to all articles

I have a database of 4000 articles and I need to assign a specific category to all of this articles. How I can do? If I try by selecting all in the CP and trying to modify them, i get an URI too ...
0
votes
2answers
52 views

Custom post types and 'new WP_Query'

I have custom post type 'Partnerzy' already set. While adding new 'Partner', you select a category (kredyty, leasingi, etc.). And having that, I need to show them on a page, like this: I figured out ...
0
votes
0answers
70 views

How to filter woocommerce order with category

I want to filter orders by category of products, what I have tried based on research is : $filters = array( 'post_status' => 'any', 'post_type' => 'shop_order', 'posts_per_page' => 200, ...
0
votes
1answer
179 views

Show different menu on each woocommerce category page

I have created several custom menus that appear under the main menu on the shop page. Each category (and its subcategories) should display a different custom menu like below: custom menu: ...
0
votes
0answers
261 views

Ajax - Post Categories and Load More

I have a page_template on my front page where I want to show "all post category" by default with a maximum of 5 post, but there will be buttons for each of my category, so when they click on a ...
0
votes
3answers
131 views

404 error on subcategory pages

I have seen some other questions and answers on this but unable to resolve at the moment. I have some categories setup as follows: Blog -- Sub Cat The Permalinks are currently setup with custom ...
0
votes
1answer
153 views

Hide uncategorized when no category set

I have the following permalink structure: /%category%/%year%/%monthnum%/%postname% I'm using the code I found here to get rid of the "uncategorized" slug when I don't set any category. URLs are ...
1
vote
1answer
40 views

Cross reference custom post types

Just curious if can I autopopulate custom post fields (like checkboxes or select items) based on another custom posts setup? My goal is to create a custom post types "employees" which can have ...