Problem with revisions only returning four results
Problem with revisions only returning four results
Problem with revisions only returning four results
How to delete all images from code in all post_content
Change search query in wordpress custom post type
I found the answer here. The query is simply : $meta_query[] = [ ‘key’ => ‘adresse’, ‘value’ => $_GET[‘field’], ‘compare’ => ‘LIKE’ ]; As it will search into the serialized (2D) array of the key adress in the table post_meta from the DB any occurence of my $_GET[‘field’] value. That means it will also search … Read more
Here is a way to achieve the validation while typing the value in the ACF field, put the code inside your theme’s functions.php or create a plugin for it: You will need to change the $fieldName, $fieldKey properties values to the correct values of your field —they are the field name and field key of … Read more
Update query based on CPT / Post Type, show all sorted by date
Sort a list of a CPT ( job) if a meta is empty
Managed to get what I wanted like so: // first query $first_ids = get_posts( array( ‘post_type’ => POST_TYPE_KIB_HIREK, ‘posts_per_page’ => 1, ‘post_status’ => ‘publish’, ‘orderby’ => ‘date’, // popular – ha a legolvasott ‘tag_id’ => 102, ‘order’ => ‘DESC’, ‘fields’ => ‘ids’, ‘post_status’ => ‘publish’, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ )); // second query … Read more
Merge CPT Taxonomy and Post Taxonomy in $query->set
Change language on website and change currency with url query