Pagination for Category does not work
You should use the pre_get_posts action to get the correct number of category pages and links. The complete solution is explained here.
You should use the pre_get_posts action to get the correct number of category pages and links. The complete solution is explained here.
User meta query using Wildcard
You can do what you need to with the wp_list_pages() function: <?php wp_list_pages( [ ‘child_of’ => 92, ‘title_li’ => false, ‘sort_column’ => ‘menu_order’, ] ); ?>
How to rearrange posts based on input field values added by WordPress “Advanced Custom Fields”
As @Robert hue says you can’t do it directly, you need a filter and a CASE in the orderby eg $args1 = array ( ‘orderby’ => ‘tag_count’, ‘order’ => ‘DESC’, ‘post_type’ => ‘post’, ‘pagination’ => true, ‘posts_per_page’ => ‘1’, // 1 post per page?! ‘meta_key’ => ‘_thumbnail_id’, ‘suppress_filters’ => false, ); function wpse173949_posts_clauses( $pieces, $query … Read more
How to extend WP_query to a specific table?
Problems in paginate_links with custom query loop and MB-Relationships
search multiple keywords with wp_query using one query
You need to alter the query using posts_where and posts_join filters. function restrict_media_images_per_post_type($query) { add_filter(‘posts_where’, ‘media_posts_where’); add_filter(‘posts_join’, ‘media_posts_join’); return $query; } add_filter(‘ajax_query_attachments_args’, ‘restrict_media_images_per_post_type’); Change “WHERE” clause to restrict to specific post type to which selected post belongs to function media_posts_where($where) { global $wpdb; $post_id = false; $whitelist_post_type = array( ‘post’, ‘{custom post type}’ //change this … Read more
No custom programming answer: A plugin like https://facetwp.com/ will allow you to set up filters as you have described. Custom programming answer: You can create a shortcode that renders fields for the user to check and submit. Then, attach a javascript submit handler to the form so that when the user checks a box or … Read more