WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
Convert author metadata to a custom field
HTML for adding a meta box (basic text field) to page editor?
Making custom meta box required (with error message if not filled in) on Gutenberg
Custom meta fields and meta keys
May be this thread could be useful to you: Also you could explain a bit more what’s the pourpouse of those images. Are they going to be printed in the fontend or in the admin side? Do you need them to be uploaded from the frontend or they can be retrived from the wordpress media … Read more
usually i’m typing a barcode or an sku number. so i’m fetching 1 result. when i’m not using this script the search results are taking about 2-3 seconds. this is my script: function cf_search_join( $join ) { global $wpdb; if ( is_search() ) { $join .=’ LEFT JOIN ‘.$wpdb->postmeta. ‘ ON ‘. $wpdb->posts . ‘.ID … Read more
I think this might be part of the problem in your past query (the second one) array( ‘key’ => ‘end_date’, ‘compare’ => ‘BETWEEN’, ‘type’ => ‘NUMERIC’, ‘value’ => array($past, $now), ), You’re using BETWEEN but I think something like < would be what you want. You don’t want to show events that have ended between … Read more
The closest to what you want is the wp cache flush CLI command, or wp_cache_flush() which will flush any object caches, but these only flush persistent object caches implemented via WP_Cache. In particular: this only applies to object caches. If you do not have a persistent object cache then it will have no effect CDN … Read more
get_field() and have_rows() work with post/term ID, not the whole “queried object“. You should try $term = get_queried_object()->term_id; in line 1. Also it is unnecessery to set $term again at line 3.