Tagged Questions

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
7 views

How can filter for category children?

Following my previously problem (can you see here Problem when I try to insert pagination For these problem, I needed a "category-blog.php" file and the filter and the navigation works. But How can ...
0
votes
1answer
23 views

Different styles for categories - need to edit a plugin

I'm using a plugin to add recent posts to home page and I am using different styles for the categories. I have the different styles working on the blog page but not on the posts output from the ...
-2
votes
0answers
10 views

How to change post categories order per post basis?

I got stuck trying on a way for sorting categories of posts per post basis. Does anyone know a plugin or a code to help with that? i'am not a tech guy so i ratter go with something already built..
0
votes
1answer
11 views

How to query all custom posts of a certain type and checking what category they have

Here's what I have: Custom Post type: Vendors Vendor categories: Wedding Party Catering I want to query all Vendors and then assign them a class based on the category they are in. The class ...
-3
votes
0answers
14 views

Woocoommerce stop user from purchasing products from differerent categories

Does anyone know/have a solution that would allow user not to buy two product from different categories. So every time a product is added to cart I would need to check if a product is already in the ...
0
votes
0answers
24 views

WP_Query by a category id and a custom post_type

I need to query all posts that belong to a given category (default, not custom) and a custom post type. As simple as that. The fact that it doesn't work, to me, is ridiculous. Unless I'm missing ...
0
votes
0answers
8 views

Get link to top-level parent category of post

I am trying to create a link to the top-level parent of a given post. Many of my posts are in sub-categories. I intend to place a 'root category' image that links to the root category. I have tried ...
0
votes
1answer
18 views

Unable to get all tags from specific categories

Page in question. I'm trying to use a WP_Query(); targeting specific categories and displaying all the tags used for posts within those categories. I noticed that some tags, like truffles aren't ...
0
votes
0answers
13 views

how to place page navigation on a specific page at the end of posts from specific category in thesis theme

In single page of wordpress site I am trying to show 10 posts from a specific category. At the end of the list of 10 posts I want to show page navigation so user can navigate to old posts of this ...
0
votes
1answer
36 views

Exclude categories For Custom post types

I have category 1, category 2, category 3, to category 7 and custom post types Gallery, Article, Front Row.. How can we restrict the admin to choose the category for custom post type Gallery to Cat ...
0
votes
2answers
82 views

create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
0
votes
3answers
52 views

If statement within PHP echo

I have the following to display my list of categories: $categories = get_categories( $args ); foreach ( $categories as $category ) { echo '<li><img src=""/><a href="' . ...
0
votes
1answer
15 views

Extract post category except one category

My posts are in two categories - one that defines their type eg. article or review and the other defines the topic - tablets,smartphones,smartwatches, etc. How can I get the current post's category ...
0
votes
0answers
13 views

Post Editor: display categories from current post type taxonomy only?

I have a custom post type and a related taxonomy which is called "Asset_Type": Which is perfect. However, if I create a post with the default Wp Post type, I still seem them as categories: I'd ...
1
vote
1answer
18 views

Can you pre-check wordpress categories?

I have created a custom taxonomy, which has 2 terms. I'd like to have both of these checked/selected by default when someone creates a new post. Is this possible? I've searched but found no solutions. ...
0
votes
0answers
23 views

Linking custom post categories and post categories

I am using Posts 2 Posts which links between my posts and custom post types on a single page. For example I have a post about printing business cards and a coupon (custom post type) displayed in the ...
0
votes
1answer
39 views

How to make my category archive behave like a page

I don't want to use the category page as usual (list of posts). I would like to add more content: text, images, columns. Which is the best solution? Maybe redirect from a category page to a page? ...
0
votes
0answers
23 views

category__and works, but why?

I've already found a solution for my question/query but I can't help feeling dirty; this works, but I don't know why, or if there is a better solution. I have a post that has several categories, for ...
0
votes
2answers
21 views

Tags Instead of Category

I have this widget that allows me to show the latest posts from a specific category in the sidebar. Here's the code; add_action( 'widgets_init', 'tie_categort_posts_widget' ); function ...
-1
votes
0answers
32 views

Categories, Sub-categories and single posts

not sure what to do here. I have a client who has a downloads page, on that page they have a list of post categories (manuals, brochures etc.) which are links to their own pages using their own page ...
0
votes
0answers
12 views

Make a custom permalink for a specific category

I would like to make 1 post and check off 2 categories, say cat1 and cat2. I want cat1 to spit out my post like this : site.com/past-name Then cat2 to spit out the same post like this : ...
0
votes
1answer
41 views

Add advertising box to a specific category page

I need to add some ( image or texts ) on top of one of my categories I thought about editing category.php, but it affects all the categories How can I insert various static data on each category? ...
0
votes
0answers
9 views

How to add two-column rich-text category descriptions?

I want to have category descriptions that my website's editors can change without having to write HTML. And: Rich text and image insertion is needed as well. So I need to customize category ...
0
votes
1answer
35 views

How to show “category” name?

I'm a novice and Ii'm trying to edit my theme. I need to show the category after text "Listed in:": //echo $todaydate; if(is_array($rec_dates) && strtolower(trim($is_recurring)) == ...
0
votes
2answers
65 views

How to get a list of term names of the custom post type im currently on in single.php

Ok so I have a custom post type of "Products" and a custom taxonomy of "Types". Now in the types taxonomy I have dozens of categories and sub categories assigned to custom post types. Custom Post ...
0
votes
1answer
29 views

Custom Post Type - Admin Columns

I'm getting these 0's in front of my categories and tags: https://www.dropbox.com/s/7v9hvf25wsw15p8/Screenshot%202014-11-08%2020.50.02.png?dl=0 Here's what the code in function looks like: // Work ...
0
votes
0answers
27 views

Building a drop down menu for child categories

We have an auto selling WP site with a makes page with logo and a link to view all vehicles in that category. Ideally we would like a drop down menu in their displaying all models (the childs of the ...
0
votes
0answers
23 views

How to create team for users?

i trying to create team to manage all the users in more effective way in multisite. i want to create some temas like "support" "super admins" and etc... to each team we need to have option to select ...
0
votes
0answers
40 views

Some questions regarding post-types and pagination

I've built my own theme from scratch using the HTML5 Blank Framework My problems started when I added 3 differen post-types; Work, 50mm and Findings. I've hided the standard 'Posts' type, so that I ...
0
votes
1answer
16 views

Show category meta in loop on homepage

I'm working on a site that groups content into 'issues' using categories. The home page shows the latest issue by pulling the category with the highest ID (thus the most recent). What I want to do is ...
0
votes
0answers
14 views

Pages hierarchy: Category or Parent?

I understand that the Wordpress default is to have Posts organised in Categories and Tags, and Pages in Parent>Child relationships. Now I can make Categories available for Pages, in which case I can ...
0
votes
1answer
18 views

How set all posts in wordpress in one category

I Have 9587 Posts that in 2 category. I need to delete one category and set it in one category, For-example, I have post in (News, Hot News) categories. So i need this post in one category (News). ...
0
votes
0answers
17 views

How exclude some categories?

<?php $category_ids = get_all_category_ids(); foreach($category_ids as $cat_id): $cat_posts = get_posts('numberposts=3&category='.$cat_id); ?> <div ...
0
votes
0answers
15 views

Add custom field to category of custom post type

I want to add a custom field (for a icon) to categories of a custom post type. I use the default category type and not a own create category taxonomy. How can I add the custom field only to the ...
0
votes
3answers
47 views

Categorise Custom Post Types

I don't want to add the category support for the posts of a certain custom post type but to categorize the post types itself. How is that possible? Story behind: In my theme I handle different post ...
0
votes
0answers
22 views

Using categories and pages in menus

I've got a problem with mixing categories and pages within menus. As a fictional example: - About us (custom page template) -- What we do (page) -- Key staff (page) -- CEO blog (category) ...
0
votes
1answer
47 views

Retrieving posts by their date and category

I'm trying to create a plugin for displaying post titles and dates (which will be displayed as links to those posts) of a specific date range and category. So far I have managed to get to display the ...
0
votes
2answers
35 views

Adding a button to a product if it's in a category, then linking to that category

I've got a site with products... and some of those products are in categories (collections). For those products I want to show a button 'view the collection,' and have that link to the category. So, ...
0
votes
0answers
12 views

Particular category returns empty post both in admin area and in frontend

This category has 47 posts. Can view the individual post. When we filter the post with particular category in the admin area, it returns empty. In the frontend this category shows 0 post. Disabled all ...
0
votes
2answers
15 views

getting content from main domain to sub-domain using category and WP_Query

I have a main website with 2 sub domains. www.example.com www.space.example.com www.products.example.com I want to publish articles on my main website using categories to sort them. for example, ...
-2
votes
0answers
22 views

wordpress multisite, assigen blogs(webistes) to industry/group/category

i am looking for solution to assign blogs(websites) to industry/group/category. when new blog is created give the user option to select the blog industry/group/category. if it's not possible, i want ...
-1
votes
1answer
24 views

how do i set an image for a category in admin panel

i want when create a category,choose an image for it in admin panel and my category page seem like below image:
-1
votes
1answer
25 views

Link from navbar to categories

I have a navigation bar in homepage. I don't want show categories in navigation bar. I also do not want use a dropdown menu. I just want to have a link to a page that show all categories. I want ...
0
votes
0answers
30 views

Page Type with Category Link

I have a custom-page type "page-clients.php" which loads category of "clients". Example: http://website.com/clients (all clients-working) Example: http://website.com/clients/9 (sub category ...
0
votes
1answer
12 views

Use specific category for every author on author page

The authorpage is begin generated, and every post that an author has made will be shown. However I only want to show posts from a specific category (id=1). So basically, when you visit ...
0
votes
1answer
30 views

Retrieve Image from Media Library by it's category

What I am needing to do here is get an image from the media library only by it's category. It won't be attached to a post, meaning that, the image will not be uploaded as a "featured image" of any ...
0
votes
0answers
29 views

How do you add Author and date Published on Category Pages?

I made a category on my Wordpress site. when i write any post and tag it in the category, the post displaying on the category pages in a neat way, everything is fine. But Google webmaster tools are ...
0
votes
1answer
27 views

Loop doesn't exclude the specified category in home page

Oh, hello! I want to show the three most recent blog posts in the home page, excluding the "featured" category, which has the ID 8. In order to see the ID for that category, I went to Posts > Category ...
0
votes
0answers
27 views

archive.php can't find categorized posts

I keep getting the "Oops, post not found!" error message when I try and view all posts from a specific category. I think the issue is stemming from the fact that I'm actually using Custom Pages with ...
0
votes
0answers
23 views

Show posts on page by category

I have a theme where you can choose a 'Blog' template when creating a page. Issue is that currently this blog template displays all Posts in the page, which is expected. I only want to show one post ...