How can I allow plugin users to define layouts for a custom post type
How can I allow plugin users to define layouts for a custom post type
How can I allow plugin users to define layouts for a custom post type
You have just a little mistake in your preg_match, instead of this: if ( preg_match(‘/(year=\$matches|monthnum=\$matches)/’, $rewrite) ) { do this: if ( preg_match(‘/(year=\$matches|monthnum=\$matches\/)/’, $rewrite) ) { I was looking for a solution to clean a lot of rules, this source is useful: https://wpreset.com/remove-default-wordpress-rewrite-rules-permalinks/ My final code is this, it can be customized allowing more or … Read more
Multiple search forms and respective results page templates?
I am having a problem with fetching product data in the Gutenberg block editor
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