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)

-2
votes
0answers
20 views

Would this structure be possible in wordpress? [on hold]

A site with 4 different locations, for example: London Cambridge Manchester Briton Once the user click on any of them, a new menu will appear: Cars Tvs Trains Ships So if I click in first in ...
0
votes
1answer
31 views

How do i change the sql query for wp_get_archive()

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. So how can I change the query for ...
0
votes
2answers
21 views

Check if current category has subcategories

I have found the following piece of code in the WP Knowledge Base theme in order to show subcategories of a parent category. The problem is that this only works for the first level of hierarchy, so I ...
-2
votes
0answers
13 views

List Woocommerce product with its category ID - MySQL / PHP [on hold]

I am using a MySQL query to list all product addon variations(swatches), I am able to do this fine, as well as list the product the variation is associated with. The problem I have is listing that ...
0
votes
0answers
20 views

Display category and subcategory hierarchical

This is what I'm trying to achieve: So the result should be like this: <ul class="product-categories"> <li class="cat-item cat-item-18 current-cat"> <a ...
0
votes
3answers
25 views

Getting category URL with hyphens, not spaces

So, I am using this to get the URL: <a href="/category/<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?>"> Which is outputting: ...
0
votes
1answer
16 views

Group Posts by First Letter of Title categories

Questions is a duplicate of this one: Group Posts by First Letter of Title However, I was unsure whether I could ask on that, or I had to start a new question, so I did the latter ;) I implemented ...
1
vote
1answer
14 views

Excluding a category from next and previous post links

I am trying to figure out the code to exclude a category from my next and previous post links. My code for the next and previous is as follows: <div class="next_prev_cont"> ...
0
votes
1answer
14 views

Use post in multiple places on a page with multiple posts

I have three custom post types: workouts, news_items, and business_items. I'm trying to display the top (most recent) item from each on the home page and I'm trying to put the featured picture from ...
0
votes
0answers
21 views
+50

Same menu for different taxonomies to reach different content

I'm using a "location" taxonomy to show the same website for 4 different locations. Each of them will have the same categories which I want to display in a menu. Is there anyway to create the same ...
0
votes
1answer
12 views

Multiple categories for one menu item?

I have six categories: Seasons Categories: Spring Summer Fall Winter Collections Categories: Formal Wear Night Wear Ready to Wear Sports Wear I need to put them up in the navbar custom menu ...
0
votes
1answer
27 views

How to link a PDF file to a category URL

I am not sure if it is possible to do this but I have a category called case-studies into which I write individual posts to summarize a case-study - for the sake of this question let's give a title of ...
0
votes
0answers
16 views

Page with the same name of a category

I've a category, let's say "testcat". I want to create some pages which the final url should be "http://example.com/testcat/pagename". To do this, I should create a page named "testcat" and then a ...
1
vote
1answer
20 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
1answer
16 views

I have many different products on my website how can I get them to display under specific categories?

How and where do I put code to get products assigned to categories. I bulk imported categories after I already had products setup. Now I was wondering how I can move all the different products to the ...
0
votes
1answer
15 views

How to Customize the category list page

i use evolve theme for my site. here is the screenshot of category list the page display the raw code of the page content which contains a gallery. How can i customize the category display?
-3
votes
2answers
24 views

Post list category plugin alphabetical order [closed]

Is there a way we can set these to list the posts in the category by alphabetical order?
2
votes
1answer
21 views

Multisite - create a category in specific site

I have a multisite I want to create a category but in a specific site. I used this functions below: wp_create_category('mycategory', 0); but this will create a category on the main site. I keep ...
0
votes
1answer
41 views

Category Template for Custom Post Type

I'm driving myself crazy with the following issue, hope you can help me! I'm working on a WordPress theme for a business directory so I decided to make some custom posts types on functions.php file ...
0
votes
1answer
14 views

Help with SQL query, how to add taxonomie terms with value stored in options?

i need your help in making SQL What i have: custom post type ( company ) taxonomie ( category ) applyed to cpt ( and has ct section select field ) custom taxonomie ( section ) applyed to nothing ...
0
votes
0answers
13 views

post by Category not working after setting 4 post per page

I am trying to show 4 posts on my homepage that is working fine but whenever i click on sidebar post categories it still shows the 4 post from homepage i.e the filter doesnot works and it shows 4 post ...
0
votes
1answer
21 views

Adding a block with query in homepage

i want my 2 post blocks to show by Categories not recent And not by category. <!-- Latest posts --> <div class="home-section"> <div class="container"> <div class="row"> ...
0
votes
0answers
15 views

How to get category id's which are added in main menu?

I called post categories in my main menu using menu section and set them as child menu items now when I click that category menu items I need to make parent menu item active.I know doing this with ...
0
votes
1answer
34 views

Query posts by views on category page

I'm having trouble trying to create a second query on the category.php pages, what I'm trying to achieve is displaying the most popular posts from the current category archive page being viewed. ...
1
vote
1answer
14 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
24 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
4 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
34 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
1answer
44 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
16 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
7 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
21 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
23 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
40 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
25 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
23 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
18 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
28 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
21 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
2answers
38 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
9 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
32 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
30 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
23 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
24 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
49 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
10 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
46 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
13 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
17 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 ...