Redirect to All Custom post types
Redirect to All Custom post types
Redirect to All Custom post types
Yes, setting the hierarchical option to true when you register the custom post type will mean each of your “shop pages” can have child “shop pages.” So you could have example.com/shop/shop-name/ example.com/shop/shop-name/hours/ example.com/shop/shop-name/contact/ etc. I believe ACF has a simple toggle to enable the hierarchical option. If you were registering it in code, you would … Read more
Working with editors and pending custom post types
Meta query sort order is lexigraphical instead of numeric
How to get custom taxonomy from Custom Post Type to display in Post Block in Unlimited Elements
Pre defined checkbox / radio button state based on value stored in ACF fields in checkout form WooCommerce
I think you may check the Advanced Configuration of your CPT in ACF settings. There is an option to disable the View button in tab URLs called Publicly Queryable if it’s disabled. Publicly Queryable: disable Publicly Queryable: enable
How to change rewrite slug for custom post type without conflicting w/ child pages of page with same slug
Based on https://stackoverflow.com/questions/42011047/wordpress-query-by-acf-relationship-field, I was able to fix this by changing the ‘compare’ => ‘IN’ to ‘compare’ => ‘LIKE’. So the resultant code looks like this: $new_query_args = [ ‘meta_query’ => [ [ ‘key’ => ‘af_author’, ‘value’ => get_the_ID(), ‘compare’ => ‘LIKE’, ] ] ]; $query_args = array_merge( $query_args, $new_query_args ); I’m not exactly sure … Read more
Custom Post Type posts not getting picked up in archive widgets