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
1answer
58 views

Authors in menu, template list post by author

Can i get a specific author in main menu and when you click on it to see all the post buy this author. Also i need to see all posts ordered by authors too in the menu. In what template should it ...
1
vote
1answer
37 views

get_categories() returns “Uncategorised”

On the front-end of my WPMU site all categories vanished and every post is marked with "Uncategorised". This is however only on the single.php and not on home.php. The same error occurs on ...
0
votes
0answers
12 views

Admin Categories validation

i am trying to validate user input when adding new category through WP , i use jquery.validate() and validation error appeared successfully , but after pressing add new category , the category is ...
0
votes
0answers
95 views

how to capture the value of the selected parent category

I am very new to WordPress as well as coding and I am stuck with one of the form field, which has a select box for listing all categories and sub-categories (taxonomies) in it. But I would like a ...
0
votes
0answers
39 views

404 error on sub-categories

My website is setup as Static Home Page Then posts as Category/Sub-category/Post Some posts are simply Category/Post When you click on some categories it comes up fine e.g ...
0
votes
1answer
100 views

Front end page submission form does not attach custom post type

This side of WordPress is completely new to me, but is also extremely important. I have created a form that allows me to upload a page, with all the parameters I need, however a custom taxonomy is not ...
0
votes
0answers
53 views

Multiple Post Repeat for Related Post Loop by Category

This is my code: if ( is_single() ) { $categories = get_the_category(); if ( $categories ) { foreach ( $categories as $category ) { $cat = $category->cat_ID; ...
0
votes
0answers
33 views

Change categories count to include media attachments

I am creating a gallery that will automatically display new images from a chosen category and its subcategories. I have set up the categories so that they will apply to media using: ...
0
votes
1answer
39 views

Extract image url associated to a category

I found a function that allows me to attach a category to an image in media uploader function add_categories_to_attachments() { register_taxonomy_for_object_type( 'category', 'attachment' ); ...
0
votes
1answer
56 views

Admin Panel - Disable Moving Selected Terms To Top of Metabox

By default whenever you select a category it moved it to the top of the term list, which in most cases it pretty user friendly. I want to disable this featured and leave my term list in the default ...
0
votes
2answers
201 views

getting post data in functions.php

I have done this before but it doesn't seem to be working in this case. I am trying to get the category ID from the supplied slug and then add a metabox to the page if the page id matches the category ...
0
votes
2answers
34 views

Loop Through Categories in Custom Field

Specifically, I am using the add_image_attachment_fields_to_edit function. I have my declaration of label, input.. $form_fields["custom4"]["label"] = __("Custom Select"); ...
0
votes
1answer
59 views

How to exclude a specific categogy from a custom page template

I have a custom page template that uses the wordpress loop to display all my posts like usual: <?php if (have_posts()) : while (have_posts()) : the_post(); There is a category that I don't want ...
0
votes
1answer
70 views

/blog/ permalink prefix causes category pages to 404

I've followed the instructions in this post: http://wordpress.stackexchange.com/a/21208/51164 - And it worked but now category pages (/blog/news) don't show up, they 404 instead. Although on that post ...
0
votes
1answer
93 views

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
0
votes
0answers
50 views

Force an image upload form field to display as checkboxes

I'm using a plugin called Media Library Categories which adds category taxonomy to media files, so I can give images a category denomination. It works and displays as checkboxes in the Edit Media ...
0
votes
1answer
62 views

How to assign different categories to pages in wordpress?

I am beginner in wordpress, I want to assign my categories that contain multiple posts to particulate page. So please, anybody guide me?
0
votes
0answers
15 views

Diplay all posts and subcategories from a category sorted by title of both (posts and subcategories)

I would like some help to post all the posts and subcategories of one category with ordring by the title of post and title of subcategory ,it will be somthing like AAAA(post) cccc(post) ...
0
votes
0answers
65 views

Template for portfolio, posts existing but still “not found”?

I'm updating a website which wasn't made by me initially. The website has a portfolio-template which is used on severel sub-pages in the menu, and each sub-page has its own category. Now I want to ...
0
votes
0answers
39 views

WordPress generating 2 URLs of single post

I have created my own wordpress site , I have assigned category called "mycat" to post. Now wordpress has generated 2 URLS : 1 - mysite.com/mycat/post 2 - mysite.com/post It is good that ...
0
votes
1answer
61 views

add custom option to get_categories dropdown

I have a dropdown menu for selecting categories in a widget that I am working on. Everything is working and options are being saved in the database. What I am trying to do now is add a blank option ...
0
votes
0answers
27 views

Additional custom loop on the “category” page?

i'm having trouble trying to add an additional loop of my CPT inside my "category" page. What im trying to do: first display the latest post of my CTP, then show the posts from the category normally. ...
0
votes
1answer
92 views

How to have a static category/author page?

I'm using a static front page with my theme and it's convenient and just nice. I'd like to do the same for the category and author pages as well. I can't find this asked yet... My reasons are... • I ...
0
votes
0answers
38 views

get_categories that have 12 extra fields

I add extra fields for all category. like this :- //add extra fields to category edit form hook add_action ( 'edit_category_form_fields', 'extra_category_fields'); //add extra fields to category edit ...
0
votes
1answer
106 views

How to select single category in menu if post have two categories?

My website's post have one, two, three etc categories depends on articles. My menu is made of categories. when i select post (open whole article) it shows post category in menu. Problem : when i ...
0
votes
0answers
26 views

show the post and respective category name?

Here, I'am able to fetch the category name but I want that the each category name should be printed once and then all post related to it. For example: Category1 - here is posts and its content ...
0
votes
1answer
27 views

Category as subdomain

I am new to wordpress I need my categories as subdomains i,e. domain.com/category/post to category.domain.com/post I have tried using wp-subdomains , subdomains, main category subdomains plugins but ...
0
votes
0answers
10 views

Sidebar Categories Questio

I added five categories through widgets on my primary sidebar. Under each of them, all of my main categories that have posts in them are coming up. However, I only want certain categories to come up ...
0
votes
1answer
60 views

Custom Post Type with modified permalink structure results in 404

I've defined a custom post type, 'Review', that I'd like to utilize with a custom permalink: /reviews/year/postname. The below code correctly creates the CPT and the custom permalink appears correctly ...
1
vote
4answers
220 views

how to use a different domain/subdomain for authors/catagories on single site?

I'm not sure if I phrased this question correctly... My wife and I have one blog, family.com in this example, that we both contribute to. I would like family.com to show all blog posts. ...
1
vote
1answer
32 views

How can I get categories IDs if multiple categories requested via URI?

Let's say, I have two categories, 'color' and 'temperature'. Each one has a number of sub-categories. Wordpress does great job displaying posts in requested categories when I go to URL like this one: ...
0
votes
0answers
14 views

How to convert this snippet to taxonomies instead of categories

How would I change this snippet of code so that it outputs a list of the child taxonomies from the current custom parent taxonomy rather than categories. This will be outside the loop in taxonomy.php ...
0
votes
2answers
160 views

Meta data (Tags and Categories) for Custom Posts not showing.

I registered a custom post type ("movie") with tags and categories. Now, I'm able to filter and search for the custom post with these tags and categories, so I know they're present and working, but ...
1
vote
1answer
35 views

Assign automatically and manually modify category

I assign automatically a category to a post when published. But how can i modify this category in admin? function add_bookcategory_automatically($post_ID) { global $wpdb; ...
2
votes
1answer
222 views

Custom permalink structure leads to be 404 on pagination

I have a permalink issue. For your information, there are a few different categories within a website and there are many posts in a single category. My permalink setting is: Custom Stucture: ...
0
votes
0answers
17 views

Multisite - global categories [duplicate]

I have a multisite network set up (where each blog actually represents one language). The contents of each site can differ (since it's handled by different people with different focus). BUT: We want ...
1
vote
1answer
563 views

how to get value of wp_dropdown_categories

I am making a widget and I have used the wp_dropdown_categories() function in that widget. What I can't figure out is how to get the selected value from the dropdown. What variable is the selected ...
0
votes
0answers
13 views

Loop tags with specific design

Forgiveness for the title, I can not think of anything to describe it. First I have a basic loop: <?php $args = array ( 'category_name' => 'juego-de-tronos', 'orderby' ...
0
votes
1answer
31 views

How to create an array with category ids order by the one that has the most recent post

I can't find a proper solution to this. I have an array of categories for example: $slidercategories_array = array(3,5,6,9,10,11,12,23,24,27); I need to reorder the array like this first the ...
0
votes
1answer
68 views

How to Sync Menu, Widgets and other masters from Main Website to its Sub Site

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
0
votes
2answers
49 views

Show number of articles in menu

I want to display a number of articles in a certain category which is hooked to a menu item. It should look like Bootstrap's "badge" component. Now I've got: and what I want to achieve: Do I ...
0
votes
3answers
72 views

How to add custom post types to normal category pages

I want to have a custom post type, named event, listed with normal posts in the category pages. I have managed to add categories easily to the custom post type with this: add_action('init', ...
0
votes
0answers
24 views

Backend - Categories and Menus conflicts

I'm having a big problem with my WP instance which is frustrating. Every time I add a new Category ( a simple default category with no custom posts or taxonomies ) it adds, as expected, that new ...
-1
votes
1answer
28 views

Wrap posts from a category in HTML

I want to get multiple posts content from a particular category. I would also like to wrap each post around some HTML. Any ideas on how to best do this?
0
votes
1answer
35 views

Hide category links if there is nothing in the categories - Main Navigation submenu item

In my main navigation menu I have category links that are sub menu items: Example: Main Navigation: Listings Sub menu category items: Boating, Camping, Fishing So basically if there is no listing ...
0
votes
0answers
9 views

changing specific text in the categories meta box

I'd like to customize the categories meta box (the one you see when adding or editing a post). I need to rename the word "Categories" and "Category" to something else, please see the screenshot for ...
0
votes
1answer
94 views

Changing Woocommerce categories programatically

for the last two days I am trying to find a solution to this little problem. I want to change the categories of certain products programatically, so far I have this It seems quite logical for example ...
-1
votes
2answers
60 views

in_category in index.php

I am trying to separate categories because I am working on a theme that will have many different sections on the front page. It makes sense to use categories for these sections. Right now, I have ...
2
votes
1answer
178 views

get_the_term_list by hierarchy order

function btp_entry_capture_categories() { $out = ''; global $post; $taxonomies = get_object_taxonomies( $post ); foreach ( $taxonomies as $taxonomy ) { ...
0
votes
0answers
14 views

Display Children Category post and child post under it

Hi I need to display only child category post in home page and then its children title under it in home page recent posts . While doing this it displaying category children post too in home page ...