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)

1
vote
0answers
66 views

ajax category filter

I know this is a big ask for you guys, but i can't seem to figure this out. I found this page : http://www.bobz.co/ajax-filter-posts-tag/#comment-28112 it shows how to make a dynamic filter for post ...
0
votes
0answers
7 views

About making a category-site in the menu

How do I make a category a site in the menu? Like for example "everyday pictures" (a category) to be one site?
0
votes
1answer
32 views

Hide category name using mod_rewrite

I have a website with at least 3 categories. I have set one of them as the default category. Next step was that I need to have the category slug of the default category to be hidden from the URL ...
0
votes
0answers
13 views

Styling based on category

I can't quite seem to get the hover to change colour based on the category the post is tagged in. I've added both body_class() and post_class() to the header.php as well as adding a function that ...
0
votes
1answer
135 views

Filter By Category Dropdown List With Custom Taxonomies

I have next category dropdown filter that atm supports only two levels "parent -> Child" and I want to get the third "parent -> child -> child". I have two functions: function ...
0
votes
0answers
30 views

Custom Post Type category nav isn't highlighting active category

I used Types from wp-types to create my custom post type. I have category archive pages and individual post pages set up. The category navigation is highlighting the active category like it's supposed ...
0
votes
0answers
21 views

Edit PHP / “Categories Images” Plugin

I need to upload YouTube videos to one of the folders/categories using "Categories Images" plugin. I know it is designed to create a gallery of images only, but with the way the website is structured, ...
0
votes
1answer
24 views

Setting category for post as default

How can I set a default category from posts that I create? I have tried modify setting options but have not been able to have the default category that I want show up. The current default is ...
0
votes
0answers
29 views

After sorting product with default sorting why redirecting on shop page instead of category page

I have website with woo commerce product's. I have 3 category's for product's Online Diet plan , Health Consultation , Corporate Wellness all of each category have more that 20 product's. On category ...
2
votes
1answer
41 views

Add category to custom post URL

I am trying to create custom post with custom taxonomy and categories. Structure is like: Product: Has categories Has taxonomy Custom post type create: function create_alco_custom_post() { ...
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
83 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
56 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
74 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
90 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
72 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
38 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
92 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
99 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
158 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
288 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
97 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: ...