Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

taxonomy

Need a simple but complete example of adding metabox to taxonomy

August 4, 2022August 3, 2022 by Magenaut

Now that WordPress 4.4 is out, we can start using the new awesome term meta functions!

Categories Q&A, Wordpress Tags taxonomy, terms Leave a comment

Get Posts Under Custom Taxonomy

August 4, 2022August 3, 2022 by Magenaut

I am not getting the posts under custom taxonomy(fabric_building_types). I am getting cat_id and cat->name also but not able to get the posts.

Categories Q&A, Wordpress Tags categories, custom-taxonomy, get-posts, posts, taxonomy Leave a comment

Taxonomy count per Post type

August 4, 2022August 3, 2022 by Magenaut

Below is the code i use to output the post tag (taxonomy) count/number. I want to be able to split the count based on post type that the taxonomy features in (rather than the total number).

Categories Q&A, Wordpress Tags count, custom-post-types, tags, taxonomy Leave a comment

Combine two taxonomies in a hierarchical tree

August 4, 2022August 3, 2022 by Magenaut

For example, I have WooCommerce products that have taxonomies:

Categories Q&A, Wordpress Tags categories, custom-taxonomy, plugins, taxonomy, wp-query Leave a comment

How to show a hierarchical terms list?

August 3, 2022August 2, 2022 by Magenaut

I have a hierarchical taxonomy called ‘geographical locations’. It contains continents on a first level, and then the countries for each one. Example :

Categories Q&A, Wordpress Tags hierarchical, list, taxonomy, terms Leave a comment

Can the default “post tags” taxonomy be renamed?

August 3, 2022August 2, 2022 by Magenaut

I’m intending to use the default “post tags” taxonomy to provide a common set of tags across posts and 2 custom post types (to allow for collection/aggregation by tag).

Categories Q&A, Wordpress Tags taxonomy Leave a comment

How to add terms to a post depending on its title?

August 3, 2022August 2, 2022 by Magenaut

I want to add all posts with keyword “Dog Training” in the post title to a specific category.

Categories Q&A, Wordpress Tags plugins, taxonomy, title Leave a comment

Get the first post term

August 3, 2022August 2, 2022 by Magenaut

How do I get only the first term of a custom post type.
I can get all – no problem. This what I am using to grab all of them

Categories Q&A, Wordpress Tags categories, custom-post-types, taxonomy Leave a comment

Counting number of posts in a category and its sub categories and displaying result using shortcode

August 3, 2022August 2, 2022 by Magenaut

I am trying to create a shortcode to display the posts count in a category.
I have successfully done this using this code:

Categories Q&A, Wordpress Tags categories, functions, php, shortcode, taxonomy Leave a comment

How to add a default item to a custom taxonomy?

August 3, 2022August 2, 2022 by Magenaut

WordPress default taxonomy (Categories) has the item Uncategorized by default. How to add a default item to a new custom taxonomy?

Categories Q&A, Wordpress Tags taxonomy Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page8 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress