How to add taxonomy to user?

There comes a hook in wordpress named Parent File (Filters the parent file of an admin menu sub-menu item) read more about it here In your case it goes like: add_filter(‘parent_file’, ‘parent_menu’); function parent_menu($parent=””) { global $pagenow; if(!empty($_GET[‘taxonomy’]) && $pagenow == ‘edit-tags.php’ && $_GET[‘taxonomy’] == ‘category’) { $parent=”edit.php”; } /*If we’re editing one of the … Read more

404 error- issues with pages after adding custom rules for posts

Why it happens The error 404 on the th/<page slug> pages occurs because your custom rewrite rules overwrite the default Page rules which would otherwise load the correct Page (having the slug <page slug>). How to fix the issue If your permalink structure is /%postname%, i.e. example.com/<post slug>, then a simple fix to the error … Read more

custom permalinks based on taxonomies for custom post type

Permalink structure is a hierarchy, each level should be descendent of one another, be more specific i.e. shop.com/products/books/fiction/harry-potter where every book is a product, fiction is a genre of books and Harry Potter belongs to fiction books. So in your example product/manufacturer/brand/model every brand should belong to a single manufacturer and every model to a … Read more

WP plugins for building a database?

WordPress natively stores content in a database. It sounds like you’re wanting to store info in that database, and retrieve and present it – rather than actually create a separate database. If that’s the case, creating custom post types are likely the way to go. An author can be a custom post type, which would … Read more

list/consult Taxonomy only for the respective author/creator in dashbboard

The WP_Term_Query class doesn’t have a method named set, and calling $query->set() in my case resulted in a fatal/critical error saying “Call to undefined method WP_Term_Query::set()“. :/ But you can directly modify the query_vars property (i.e. $query->query_vars), like so, to set, unset or override any query variables like meta_query: // Use this: $query->query_vars[‘meta_query’] = $meta_query; … Read more