wp_dropdown_categories() will produce a select element with the default name and id of cat. You can change these by passing different values for id and cat in the $args array. The default value it uses is the term_id. Depending on what you’re expected to use in the get_field() function, you can also change that in the $args array.
$args = array(
'taxonomy' => 'download_category',
'order' => 'ASC',
'value_field' => 'slug',
);
Then in the second part:
$cat = esc_attr( $_GET[ 'cat' ] );
$product_args = array(
'post_type' => 'download',
'posts_per_page' => $per_page,
'offset' => $offset,
'download_category' => $cat,
);
I’ve never combined ACF and EDD this way, so it might need some fiddling.
Related Posts:
- importing third party json feed as custom post type [closed]
- how to get posts by custom post type then display Custom fields?
- wp_dropdown_categories in custom post type with custom taxonomy
- WP Rest API Querying Custom Posts by ACF fields
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Insert slider (Custom Post Type) into pages
- get terms that have post with custom post type between 2 values
- How to set custom post type as post title to avoid ‘Auto Draft’
- Query current and future events, ordered by begin date
- Change message given when deleting post from custom post type
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Linking three taxonomies with ACF
- Query Custom Post Types by date (custom field) range
- Remove duplicated values from a loop
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- “add_post_type_support” with Custom Post Type & ACF
- Custom Post type and Custom Field WP_Query
- Display multiple custom post types and sort them chronological by one of their fields
- get_posts of Custom Post Type AND Custom Taxonomy
- the_content() not outputting anything (Advanced Custom Fields)
- How to add a post slug to a url?
- ACF Field on CPT Slug
- custom post type WYSIWG removes paragraphs when displayed
- Custom Post Type + ACF and performance [closed]
- Meta Query Not Returning Output Despite Having Matching Values
- Retrieve custom field from Contact Form 7 [closed]
- The loop seems stuck to a single (now deleted) post
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- How to make custom taxonomy into drop down select in a custom metabox
- Multiple Frontend Filters Using Advanced Custom Fields
- Displaying custom field according to date
- wp_dropdown_pages doesn’t work with post_type argument
- Advanced custom field boolean value in custom post type
- Why would social icon badges disappear after adding a custom post type?
- Sort a custom post with ACF: Date Picker & Display Featured!
- ACF repeater field usage
- Page Template Dropdown For Custom Post Types
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- Custome fields not displayed
- Create short URL with auto 301 redirect
- Batch Extract Date from post title and put into ACF custom field
- Why is wp api returning old acf values?
- get custom post type value in header.php [closed]
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- Custom post types, disable fields
- How to selected value default in option list?
- ACF Relationship Posts how to show additional content
- Excerpt length: get first paragraph
- How to create Custom Taxonomy Search Drop Down for specific Post Type
- How can i show ACF in post excerpts
- count & sum the value of custom field of the author post in dynamic posts
- Grouping custom wordpress post types by acf value
- Set Post Private if no linked Post Objects (ACF)
- Show in an entry a Custom Post Type associated to a post
- Orderby custom fields is not working
- Change dynamically the dropdown list value
- Display a Custom Post Type with Advanced Custom Fields on Homepage
- Filter result of Custom Post Type using meta_query with ACF
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Same custom post type with different ACF
- Custom sorting in post columns by ACF Pro Select Field
- Load info from customposttype into template page
- Subpages URLs for Custom Post Type
- ACF meta_key and meta_value break loop
- search results to show individual ACF fields from inside custom posts
- Videos Post Type with Custom Filters
- How to show link to product in custom fields?
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- Looping through image object using ACF and CPT UI [SOLVED]
- How can I save a Custom Post Title and Slug with a Custom Field?
- WordPress page not showing up – replaced with last 10 posts?
- Custom permalink rewrite rules – how do I fix this?
- Best way to have one product in both rental and sale parent category
- How do I display specific custom posts, and how do I edit a post’s singular page?
- Automatically convert standard posts with custom fields to custom post types
- Showing custom post user wise with different color in wordpress
- Submit and edit font end custom post type
- How to make a custom search template for custom taxonomy?
- Making my custom column sortable
- Dropdown switching subcategories portfolio
- Filter Content on all Post Types
- Get month and day from a Date Picker custom field
- Advanced Custom Fields – Add Field to Specific Page [closed]
- Modifying and Displaying URL’s in a Post Template using parse_url
- Display posts order by custom post in a dropdown menu
- WooCommerce – Complete Order when an action occurs
- WordPress Loop trouble with ACF [closed]
- Elementor Custom Query to get Posts by ACF (Post Object Field
- Create WP multisites as a custom post type
- WordPress WP_Query Sort by 2 dates – custom fields
- Two custom post type relations
- selecting custom post types and taxonomies for hub page listing blocks
- Made a Custom Post Type using ACF. Via the dashboard I cannot see the view button to see the post
- Creating a Single Instance Custom Post Type with Limited Module Options using ACF and WPGraphQL
- How can I filter records in a custom post type list in the admin based on the ACF field in the post that contains the current user?
- WordPress duplicating posts from single loop
- How to automatically update ACF field value every year?
- Generate Post Title From ACF Fields on Custom Post Type
- Generate list of posts on a page, but fill shortcode values from ACF fields on that page