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
2answers
9 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

How do I use 'category-specific' colours in my theme? [on hold]

The theme I am using (Multinews) comes with the ability to assign colour schemes to entire categories, so that all posts within that category take on the colour scheme that is assigned to that ...
-2
votes
0answers
14 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
19 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
23 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
26 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
8 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
23 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
22 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
23 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
25 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
17 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 ...
0
votes
0answers
23 views

Next post with category with an option to view all

Wordpress provides for a way to link to next/previous posts within a category but is there a way to get this to work with a 'View All' option, as well? In other words, the main page would look like ...
0
votes
1answer
20 views

category__in not working on custom post type

Can't get my WP_Query loop to work, cannot figure out why category__in won't work. Just want to pull certain categories FROM my custom post type $args = array( 'post_type' => 'bbt', ...
0
votes
1answer
32 views

How to assign image on specified category and not show the image on other categories

I want to assign an image to 1 category and want the rest of the categories to be hidden on my home page. I tried this: foreach((get_the_category()) as $category) { echo '<img ...
0
votes
0answers
5 views

How to display related posts based on specific shared subcategories with current post

Im trying to find a way to display related posts that share specific subcategories with the current post. So for example, lets say the current post has the following subcategories associated with ...
-3
votes
0answers
20 views

How to change category for posts. (about 30000 posts)

We have about 30000 posts. we need to change category of them to "news category". How can I change them? Should I do on database? if so, which fields I need to update? Thanks,
0
votes
2answers
20 views

Add Date & Author Meta to Category Archive Page

I want to add author name and date on category pages under Title. Here is the page But i don't how i can edit it ? where i have to go to find category template file. By Googling i found it is ...
0
votes
1answer
28 views

Custom Post Type Custom Archive Page Not Working

I've created a custom post type and taxonomy for a portfolio loop: // Portfolio CPT function portfolio_cpt() { $labels = array( 'name' => _x( 'Potfolio Items', 'post type ...
0
votes
1answer
25 views

A dropdown with checklist

I'm working on a wordpress website now but I have a problem with a dropdown on a taxonomy. This code is in a public form so that the visitor send a recipe, taxonomy is the ingredients which already ...
1
vote
1answer
28 views

Multiple custom post type loops in category.php

I have multiple custom posts types that use the same category taxonomy. Let's call the CPT's 'venue' and 'story', and say we have categorised each of them as 'foo'. I already have the following code ...
0
votes
0answers
15 views

If it is a top level category show children otherwise show sibling categories

I found a great piece of code for my category.php file to list categories for a specific taxonomy (not tested). BUT - how can I change the code (or achieve it) to show the default Wordpress categories ...
0
votes
0answers
23 views

Want to get posts with their content with their category and subcategory?

I am working on a theme in which I have to show all the posts with their dedicated category and subcategory. Actually I have tried on Google and codex, but I can't find what I want. Actually I have ...
0
votes
2answers
39 views

How to get nav to show current_page_parent class when on regular post (not blog), differentiated by category

In order to highlight menu item when viewing single post (not blog), am trying to add special classes to single, (regular, not custom) posts from different categories. this is the basic code: ...
0
votes
0answers
9 views

Keep last used category at the top in “Categories” or “Most Used” box?

Is there any way to tell WP to keep last used category on top of "Categories" or "Most Used" tab in admin area when adding new post? I would like to have last used category on top of list of ...
0
votes
1answer
56 views
+50

Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category

I would like to create 2 lists of pages and include and exclude some of them depending on their category. In the following example, I have my 2 lists. A list of promoted pages and a list for the rest. ...
0
votes
1answer
50 views

Show Posts from Single Category Not Working

I have a simple loop that outputs the content of posts and then adds some navigation links at the bottom. Wordpress is set to only show 5 posts at a time. <?php while(have_posts()) : the_post(); ...
0
votes
1answer
23 views

Showing HTML if Post is In Certain Taxonomy Term

I'm using the following code to display an image based on which category a post is in on my blog. I'm trying to use this same concept under my custom post type. Instead the category is a Term in my ...
0
votes
1answer
21 views

How to get selected taxonomy or category ID if using custom walker?

I'm building a taxonomy->child taxonomy dropdowns where the child will only be active if the parent is selected. Everything works great, except that I'm using wp_dropdown_categories for the parent ...
0
votes
2answers
21 views

How can I implement pagination on custom category page?

I have created a custom template page for every one of my categories. I am using a foreach loop in order to fetch the posts of this specific category in my page. if (is_page()) { ...
0
votes
0answers
15 views

Categories showing up on wrong page

I do not run the site, but am doing some updates. One of the ones I was asked to do is remove the cats from the adopt a dog or puppy page. When I go into the dashboard and look at the posts, they all ...
0
votes
0answers
25 views

I cant get archive-gallery.php for custom post types

Hi to all I have just created a gallery with the codes below: //---------------------------------------------- //----------register and label gallery post type ...
0
votes
1answer
34 views

A simple question regarding tags and categories

I was wondering if there was an easy way to display posts from a tag from a specific category. In other words, if I have Category1, Category2, and Category3, and these all have posts with a tag ...
0
votes
1answer
25 views

List categories with custom code

Right now, and taking from http://codex.wordpress.org/Template_Tags/wp_list_categories we can use the following code to list categories in a wordpress page: <?php $args = array( ...
0
votes
0answers
23 views

Get custom type category from a category posts

I've been searching the way to do it but no good. The title may be confusing, let me explain my problem... I have the archive page (the main category), then I've posts inside that category and inside ...
0
votes
0answers
18 views

Posts of Certain Category as Menu

I want to retrieve posts by certain category dynamically as a menu. What I need is: On the left-side of the page I want to display a menu as following | Category Name | | Post of This | | ...
0
votes
1answer
15 views

Change existing taxonomy settings when using custom taxonomy

For a plugin I have created a new custom taxonomy for attachments using the function register_taxonomy() and parameters like "show_admin_column". When this parameter is set to true, it shows the ...
0
votes
1answer
28 views

Wordpress showing wrong category name

I'm using: $category = get_the_category(); echo $category[0]->cat_name; to display the current category as a header in an archive template (example of local url is ...
0
votes
1answer
25 views

Get latest post from categories

I have 3 categories: Travel, Destination and Tips. I've been trying to get the latest post from each categories then put them into an array. Here's what I have in mind. //GET CATEGORIES //I have this ...
0
votes
0answers
13 views

Bulk assign Categories by ID

I have several hundred posts that need to be recategorized. I have all categories established and know the category IDs that need to go with every post ID. Some posts need to be assigned multiple ...
0
votes
1answer
22 views

Add category to all post by using sql query?

I have a thousand posts and all them don't have category. Do you know how to associate category with all posts by using sql query?
0
votes
0answers
34 views

Wordpress category filter update subcategory

I'm building a new theme and i need to have an option at the top where there are three dropdown fields which represent three unique categories. The three categories are basically ( Country, City, ...
0
votes
0answers
14 views

How to create archive page for items in custom taxonomies within custom post types

I'm working on building a portfolio system that's setup with a custom post type (portfolio_items) and a custom taxonomy (portfolio_category). One of the portfolio categories is called "Branding" and ...
0
votes
1answer
32 views

How to check if a post belongs to a category that has only 1 posts?

Although I've done some searches on Google, I have not found an answer to this question: Is there a way to check if a post belongs to a category that has only 1 posts (is the only one in its ...
1
vote
3answers
132 views

Dropdown with category selection

I created a directory website with dropdowns in the menu allowing the user to navigate throughout the categories and sub categories. Website I am using wp_dropdown_categories() to display the menus ...
1
vote
0answers
31 views

custom taxonomy archive by year

there is one custom post type News there are 3 taxonomy terms(like category). 1). press-release 2). in-the-news 3). events i have list out all this three category. now what i am looking for is ...
0
votes
2answers
35 views

How could I know all the categories from post?

I need know all the categories from post in wordpress, but my code only give me the first category and I don't know for why. For example: if one post have the category "category1" and "category2" I ...
1
vote
2answers
122 views

Sort posts by post_type in category.php template

In my category.php template I want to sort category posts by their post types dynamic. My block must have this structure Restaurant (custom post type) - posts Bars (custom post type) - posts ...
1
vote
2answers
62 views

How to only show posts on last child category

By default WordPress will list posts on each category in its hierarchy. Example: Parent /- child /-- grandchild When viewing the "Parent" category you will see a list of posts from child, ...
0
votes
1answer
31 views

How to use a hierarchical taxonomy in permalinks?

I use permalink: /%category%/%postname%.html and want to have categories like this: Wheels Mercedes Toyota Brakes Mercedes Toyota I want their URLs like this: ...