Skip to main content

Questions tagged [categories]

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.

0 votes
0 answers
9 views

How to update blog post categories in WordPress?

I need to update a couple blog post categories, and the changes I applied are not working. I edited the category name on the back end under posts/categories, then went to the main blog page and edited ...
Rose Keyes's user avatar
0 votes
1 answer
26 views

WP_Query with multiple categories unexpected behavior

I'm working on a custom filter that uses checkboxes to choose which categories to show. I'm trying to get it show posts based on selecting more than one category. When I test with hard coded ID's it ...
justDan's user avatar
  • 103
1 vote
0 answers
9 views

The post filtering in child-category does not work

The post filtering in child-category does not work /category/child-category-1/filter_xxx-yyy/ - WORK /category/child-category-1/child-category-2/filter_xxx-yyy/ - NOT work /category/child-category-1/...
Te43922's user avatar
  • 11
1 vote
1 answer
30 views

Prevent publishing of uncategorized posts

I'd like to prevent posts under the default category named "affitti" to be published. I tried this but with no effect function prevent_default_category_publish($data, $postarr) { if (...
Andrea Sacconi's user avatar
0 votes
1 answer
19 views

Link to a specifc category?

As far as I understood I should be able to link to a certain category by url using: mysite.com/category/ But simply said it doesn't work. I have to use link like mysite.com/?cat=1 Meaning needing to ...
beginner_'s user avatar
  • 103
0 votes
1 answer
28 views

Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?

I have two custom taxonomies on the site - Countries and Cities. The Country taxonomy contains over 200 terms, and the Cities taxonomy contains over 47,000 terms. Naturally, editing content with ...
Toologic's user avatar
0 votes
0 answers
16 views

Unable to create categories and tags for posts in wordpress multisite

Good morning everyone, I inherited a wordpress multisite. Now I need to create a blog as a sub-folder site but it is impossible for me to generate new categories, or rather the number of categories ...
user249673's user avatar
0 votes
0 answers
12 views

Exclude the Newest Recent Post from their Category After New post Publish old post should be in their category at Home Page

For Avoid Duplication of Posts Exclude the (Recent Newest Post) from their Category. But when a new post is published again in a similar or another category, the old post should be included again in ...
Islamic Quran Center's user avatar
0 votes
0 answers
9 views

Hreflang Tags from the Most Recent Post Appearing in Category Page Headers

I'm encountering an issue on my WordPress site where the hreflang tags from the most recent post are being displayed in the html header of category pages. This causes the category pages to have ...
Numb3r_0n3's user avatar
0 votes
0 answers
27 views

Categories breadcrumb in a hierarchical order

Here is the code for the category breakcrumb: /* Display breadcrumbs for single post */ $count_loop = NULL; $count_categories = NULL; if ( is_single() ) { $category = ...
made leod's user avatar
1 vote
2 answers
16 views

How to display posts from a specific tag in the current category on a single page

I am trying to get all posts with a specific tag from the current category on a single page. However, my code is showing posts from the main category instead of the current subcategory. Let me explain:...
pagol's user avatar
  • 203
1 vote
1 answer
21 views

Exclude category when displaying all categories assigned to a post

I'm trying to exclude a Category from both the main list of Categories in my blog, as well as from the list of categories shown that are assigned to a specific post. I successfully hid it from the ...
jschultz's user avatar
1 vote
1 answer
18 views

Preset category checkbox from URL parameter when creating new post

I have added custom "New Post" links to the admin menus and dashboard widgets in the admin panel to allow administrators/editors to post new content with the category preset when the editor ...
Mike Hermary's user avatar
1 vote
1 answer
28 views

What is the best way to publish News articles?

I run a blog on affiliate marketing, SEO, and other topics and luckily got AdSense approved. Now, I want to start a News section on my site. Should I add a News category and write posts or create a ...
abizer izzy's user avatar
0 votes
0 answers
12 views

Menu item on a category

I read your post on how to create a menu based on category, but it displays all the posts in their entirety instead of just get the title as a link. I now have only some 12 posts in a category but ...
Robert Coles's user avatar

15 30 50 per page
1
2 3 4 5
322