I thing, you should use this code for filter the check box category
<?php // cat 42=Laos cat 57=2-4Days
<?php $my_query_1 = new WP_query(array('category__and' => array(42,57))); ?>
<?php while ($my_query_1->have_posts()) : $my_query_1->the_post(); ?>
<a href="https://wordpress.stackexchange.com/questions/100169/<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to
<?php the_title(); ?>"><?php the_title(); ?><?php the_excerpt(); ?></a>
<?php endwhile; ?>
Related Posts:
- Custom search filter causes menu and query_posts problems
- Search with filters and title
- How to limit search to first letter of title?
- Search pre_get_posts filter which can handle multiple post types and categories?
- WordPress Search Filter Only for Page with Child of Child of Child of Child of Child
- Filter keywords from search query
- Ignore dots when searching in the media library?
- Search results sorted by post types
- Adding id and class to the search input in WordPress search form
- How to apply filter at search of woocommerce products?
- How to edit dashboard search posts button texts for my CPT?
- Filter custom post type using multiple taxonomy dropdowns
- Admin Backend – Search Pages only by title
- Comment search plugin
- Create Search Form to Filter Through Terms
- Get Posts updated or published within the last x hours
- Map plugin with proximity search compatible with Buddypress
- How to trim white space in search terms?
- Search a title word through query_posts (not the exact match)
- conditional search
- How to set a filter search for categories of blog posts in wordpress
- Customising the default wordpress search functionality
- Search with filters
- Modify WordPress search behaviour in backend?
- Re-order search results with posts_orderby filter and post meta value
- meta box loop problem with a search filter
- Remove the post_content search from WHERE clause (and CONCAT sql function)
- How to sort posts according to meta value?
- Custom search fields and AJAX support
- How we make the filter for fornt end user
- Filter and Search
- Taxonomy search filters
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields
- what is __return_false in filters
- Passing Additional Parameters to add_filter Callable
- How can I add an Author filter to the Media Library?
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Change upload directory on custom plugin page
- How to use the_excerpt in a filter hook?
- Add wrapper to only youtube videos via embed_oembed_html filter function
- Hook into admin post list page
- Add post/page ID to inserted links within the_content
- Shortcodes not resolved in AJAX call response
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Ajax, filters and shortcodes
- wp_link_pages output appears twice
- Multiple Ajax Data Action
- Changing a WordPress core function without hacking core
- Change WordPress RSS link with filter?
- How to remove get_post_metadata using remove_filter inside a class?
- Modifying the Search Results
- Sorting and limitation with pre_get_posts
- Warning: Missing argument 2 for widget_title filter
- Use add_filter on concatenated string variable
- Change term name only on front
- How do I hide the current page’s title?
- Change name of existing post status type
- How to filter meta_values using REST API
- Header image automatically changes depending on season
- How to hide Ads in between posts on AMP? [closed]
- What is the downside of using a filter as a “poor man’s” dependency injection?
- BBPress changing default group activity
- Admin search post meta
- Filter the_content to add something before each element?
- Filter by category and city for doctors and hospitals in wordpress
- Prevent reset password specific user role
- Why is overwriting $GLOBALS killing the_content()?
- Create new custom field that calculates age
- Remove comments validation (remove filter?)
- Remove Site Name from wp_title WITHOUT removing from attribute
- Plugin default settings hook
- Filter Shortcodes when using get_page
- Usage of filters
- Where exactly does the edit_{taxonomy} hook fire?
- How to filter with dropdown in backend for custom data
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- Redirect an archive page to its relevant URL-friendly filtered page
- Show uploaded pdf files dynamically and filter by month name
- how to use substr with get_the_content()
- AJAX Post Filter
- Add filter return false not working
- How to add markup to the wp-custom-header div
- How to take shortcode and content separately from a page?
- Sorting query_posts() with a complex orderby filter
- Display post after choice two taxonomy terms
- How to stop echoing gallery inside content?
- how to filter datalist table of wordpress
- get_the_archive_title hook unwanted changes!
- Is there a function to edit Blogs contents in Blogs page?
- Can’t set properly WordPress add_filter function
- apply_filters to $GLOBALS
- The title of an attachment is not working
- query_posts() with multiple meta data comparisons
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- Hide H1 Title using the_title filter
- Select All not working in a WordPress search filter
- get_the_excerpt on mobile still displays continue reading
- filter a list by gender