You need to include post_type=
.
Your query would be an array of post types since you want 2 'post_type' => array( 'post', 'property')
http://codex.wordpress.org/Class_Reference/WP_Query#Type_.26_Status_Parameters
Related Posts:
- Pagination not working with custom loop
- How to use a custom post type as front page?
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Listing custom post types on archive page with array
- How to conditionally add Custom Post Type to Front Page
- Custom Post Type not showing in main loop
- Custom Post type showing up in loop, regular posts are not showing up
- Changing WordPress sort order for returned child pages
- Update query based on CPT / Post Type, show all sorted by date
- Shortcode with loop stacks output
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Is it possible to add query parameters on the archive page?
- $post breaking container loop
- Multiple Queries and Loops within CPT Archive
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- Get the ID of the latest post
- How do you get the count of posts in an archive page?
- Sort custom post type list table by display name of a user id stored as post meta value
- How to show Y number of custom posts after every X normal posts?
- Archive page…limiting posts per page
- Adding custom post type to loop
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- How to show related posts by category or custom post type?
- Adding posts of custom type into the main feed
- Posts navigation in custom post type single.php not working
- Calculating Bayesian average for custom post type
- Display custom field of specific post where post title matches variable
- How to filter custom taxonomy categories on archive?
- Remove duplicated values from a loop
- How to debug a blank page?
- query posts and custom post type with meta key
- Query string parameters from custom fields, inconsistent results
- How to connect two custom post types with nested loops
- Normal pages as children of my Custom Post Type
- Order By Post Type ThenBy Taxonomy
- Custom query to filter posts that have current post as a taxonomy [closed]
- Custom Post Type Loop throws 500 error when used in widget
- How to modify archive query with pre_get_posts to append CPTs?
- convert custom query to wp_query
- Get parse_query filter to return slug instead of id
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Problem: wp_query outputs all images on site
- The loop seems stuck to a single (now deleted) post
- Displaying Posts from Custom Post Types
- Custom Post Types strange pagination problem
- How to organise this data within WordPress
- Display related custom taxonomy posts in sidebar
- Targeting custom post type
- How to query 2 custom post types that need to share a slug?
- Using wp_query to modify the loop in index.php for a CPT
- Custom WP_Query doesn’t display all posts
- WP_Query() with custom post type and taxonomy — get all terms?
- Query & the_content() is showing in the header
- looping though custom post types and only return results in a given taxonomy
- Pagination not working on custom query on a page
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- get custom post type value in header.php [closed]
- Custom Post Type setup
- new WP_query > displays posts only once instead of running through full array
- Pagination on search results page
- get_terms() parent, child and grandchild
- Custom types, taxonomies and query optimization
- pre_get_posts works in post type archive but not in single post
- Query custom posts from custom taxonomy
- Custom PT, Taxonomys and wordpress query
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- creating a foreign key like relationship with custom post types
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Fetch data from two custom post types and create multidimensional array for output to html table
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Query filter by value in meta_value array
- Loop all post on single.php
- Accessing download link from the loop with WP Download Manager Pro
- Custom WordPress theme not displaying posts from category
- Combine multiple separate lists into one
- custom post type single page
- How to prevent post to repeat on my loop?
- Custom post types not displaying per category
- How to show Y number of custom posts after every X normal posts?
- Load different template for CPT (in loop) in my plugin?
- How to loop custom post type posts by author?
- Query child posts on parents single.php?
- WordPress can only query up to 766
- Inserting random posts
- Custom Loop and Standard Blog Loop Issue
- Custom loop won’t work, can’t find problem
- Categories and page filtering with pre_get_posts
- Loop to pull content from parent element in custom post type [duplicate]
- Allow admin to determine the order of queries?
- How to create custom page templates with default page layout framework?