How to filter archive-{custom-post-type}.php by category in Wordpress?

I created a custom post type called, "Portfolio," using a plugin called Custom Post Type UI v0.7.1. I have created several categories for it, such as Logos, Packaging, etc. I need to use...

Adding a Taxonomy Filter to a Custom Post Type

There is an amazing conversation from about two years ago on the Wordpress Answer site where a number of people came up with good solutions for adding a taxonomy filter to the admin screen for...

Display Portfolio Posts only from certain category with PHP

Good Day. I am using a theme that has a Portfolio. The portfolio currently displays all categories listed. How can I change it to display only certain categories ie. Design and Images? Here is the...

Sort Wordpress Search by Relevance

I've created a pretty advanced search for a Wordpress site I'm working on atm. Allowing visitors to filter results by different taxonomies, sort them by date or custom fields as well as the normal...

Wordpress Attachment Category Bulk Edit

I'm trying to assign a attachment category to my media files. With my theme I added a custom taxonomy called 'attachment_cat'. Now I want the bulk edit multiple files to assign this category(like...

Woocommerce filter products by custom taxonomy

I am new to wordpress and woocommerce. I have created custom taxonomy 'city' for product. Now on my website I want to filter the products by this custom taxonomy. Please help me.

How to add a menu item to the front page of a site?

I'm looking for a bit of help with a site that I'm working on that uses WordPress as a CMS. Basically, I am attempting to add a menu item called 'Mood Boards' to the front page of this site, so...

Custom Taxonomies for custom post type not showing up in Wordpress Admin column

I have created a custom post type called protocols and registered a few taxonomies for that custom post type to allow the customer a filterable/searchable list of posts. For some reason, the...

WordPress > Get custom taxonomy from a custom post type

Installed Custom Post Type UI wordpress plugin Created a custom post type = 'products' Registered a custom taxonomy categories (different from category) using 1. How to display all custom post...

Rewrite url for custom post type

I use wordpress theme called Dreamland which has defefined some custom post types and taxonomies. I want to change permalink structure for omit slug in in url. Almost every solution I've found is...

Advanced Custom Fields - Filtering a Post Object Field by previously chosen Taxonomy

I have a custom post type called Event in which I want to add a location chosen from a large list of locations. To make this process easier I want to filter these locations by a category called...

My CPT taxonomy meta_fields not showing in Wordpress REST API

I added a custom meta field to my cpt taxonomy with "{$taxonomy}_add_form_fields". So far it is working fine (add, edit and save) but I cant find this field in the API...

WP_Query filter custom taxonomy OR keyword search in custom post_type

I wonder if Is it posible filter by post title OR custom taxonomy. For example: I search 'human', I want to show the posts that contain the word 'human' in the post title and the category...

Wordpress Custom taxonomy dropdown list array to tagdiv composer

I am currently working on a new wordpress website which uses the Newspaper theme, which lets me compose pages with the tagdiv composer plugin. This plugin makes it fairly easy to show posts of...

Nested wordpress terms list - filter

I've made a custom term taxonomy in Wordpress with the plugin CPT UI. So I'm able to add "Product categories" to my Custom Post Type "Product". We have a parent categories and child categories....

AND Relationship not working in Search and Filter Pro's custom search using WP Query

I am using Search and Filter Pro plugin to fetch search result based on various post meta and taxonomies, I am not completely using the plugin's entire interface only its custom query...

Custom Post Type Single page shows 404 error

I am using Custom Post Type Permalinks By Toro_Unit plugin for customizing urls. Here is my custom post type <?php /** * Post Type: our-products. */ function...

Wordpress - Filtering Custom Post Type by multiple Custom Taxonomies on front end

I'm trying to allow users to select criteria from multiple custom taxonomies in order to filter a custom post type on the front end via a from with multiple selects. My problem is that the code...

Wordpress Ajax Filter Custom Post Type by Category returns [found_posts":0,]

I want to output the Post by category through an ajax filter. It works with the standard post type in the same setup but with the custom post type it's showing all post on page load but when I...

Need to assign custom taxonomy to the pages with specific php template - Wordpress

I created in Wordpress custom taxonomy called 'consultants_category' and assigned it to custom post type. Now I need to assign this taxonomy to pages with specific php template -...

Custom Post Type Yearly Archive Dropdown

I'm trying to build a new website, where I'm using the WordPress blog for 'Event Reports' and a custom post type for 'Event Photo Galleries'. I'm building a custom theme using bootstrap but my php...

Custom post type archive pagination problem with tax_query and pre_get_posts

I have problem with the pagination on the custom archive page. I have filter form which is sending the $_POST object with taxonomy parameters which were chosen to the same custom archive page I'm...

Add custom taxonomy term in woocommerce REST API

I have created custom taxonomy "Brands" and attached to woocommerce products. Unfortunately, It is not available in woocommerce REST API response. How to attach custom taxonomy term to...

Wordpress filtering custom post type taxonomy

I've been following this guide: https://rudrastyh.com/wordpress/ajax-post-filters.html#comment-908. I've got a custom post type called "project" and a taxonomy called "producten". What i'm trying...

Query posts based on an ACF repeater sub field custom taxomomy

I have a custom post type which lists a set of colours and the types of products they are available on using an ACF repeater. The intention is to list CPTs with the appropriate available colours...

How do I use array_filter() to group posts by their categories?

I have a custom post type called *cpt-magazines*, and a custom taxonomy called *ctax-publication-year*. In my template-file, I want to use array_filter() to group the posts by their category (all...

Filter WooCommerce products by taxonomy terms and custom fields in a WP_Query

In WooCommerce, I have a product category boots-2 (term slug) with 350 products in it. I need to return all products that are in this category that have the meta key _translate_lock with a meta...

WordPress Isotope Integration - Custom Post Type Filters

Am trying to integrate Isotope with WordPress to create a filterable portfolio grid. It's displaying the Project categories (my custom post type and taxonomy) but not showing posts from that...

How to create an Ajax Filter to display custom post types in WordPress

I asked a question to this topic before but since it seems like this requires just custom coding, I need help from the experts. I am not a coder, I design and build website in Webflow but want to...

Is there a way to refresh the category list that is used in a custom component if a user adds a new category using the editor itself?

I have built a custom component for wordpress's gutenberg editor. I needed a way to select a single category from a list of already selected categories. I was able to achieve this kind of...