Try changing the page’s slug to something else and changing your post type registration to this:
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'has_archive' => true,
'show_ui' => true,
'rewrite' => array('slug' => 'properties', 'with_front' => false),
'query_var' => true,
'capability_type' => 'post',
'hierarchical' => false,
'show_in_nav_menus' => false,
'menu_position' => 5,
'supports' => array(
'title',
'editor',
'revisions'
)
);
The operative new argument is 'has_archive'
. This is new in 3.1, and gives you a /properties/
, /properties/page/2
, etc. structure by default. Then flush your rewrite rules and see if that fixes it. You may also need to comment out any code you’ve written playing with the query or rewrite rules
Related Posts:
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Prepend meta_value to permalink of post
- Pagination Doesn’t Work
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- WordPress rewrite my URL when i use pagination
- Pagination problem
- Custom post type with slug for plural (archive) and for single
- CPT custom archive template does not get loaded
- Am I using the flush_rewrite_rules function in the right place?
- Adding Post id to the end of slug in a Custom Post Type
- Pagination for custom post types – url rewriting
- Remove custom taxonamy slug with pagination
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Pagination URL in Custom Content Type
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom taxonomy archive slug overwrites static page
- Paging not working for hierarchical custom post type
- Get the custom post type slug but remove the rewrite prefix?
- How to make nested custom post type slugs work
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Ideal top-level slug methods
- WordPress pagination URL
- CPT Archive Pagination – Page not found
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Pagination not working with custom loop
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Modify custom post type rewrite rules in a separate function
- Change page /2 to /transcript with a Rewrite
- Permalink rewrite with custom post type and custom taxonomy
- Pagination with custom loop
- Group list of posts by taxonomy and allow for pagination
- Force unique page slugs across all post types
- Custom Slug for a custom post type and default post
- Pagination problems with multiple custom post type archive pages
- posts_nav_link on single post template
- wrong template for page of archive
- Pagination problem in custom post type used as front page
- WordPress Rewrite rule for nested post types
- Pagination with custom post types results in 404 issues
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Pagination on Custom Post Type: 404 Error
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- Add hierarchical taxonomy to permalink for custom post type
- How to Combine Two Custom Post Types into Single Permalink Structure
- How to rewrite custom post type with custom taxonomy urls?
- How to load custom post archives sub-pages with ajax?
- How to remove slugs from multiple custom post types
- Pagination on category page with custom post types
- Rewrite slug of custom post type to include post-id
- How to change custom post type permalink structure
- How do I move/order posts with a tag to the end?
- Front custom edit post page for each post
- Rewrite Question Mark in Post Template to Make it Pretty URL
- Add Pagination on Custom Post Type Archive
- Woocommerce search pagination not working
- Custom Post Type with Same Page URL
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- CPT Template Not Showing – Getting 404
- Including taxonomy term before post type breaks top level pages
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite Endpoints and CPTs – How to use in a plugin
- How to make a posttype show under a page hierarchy (example.com/page/posttype/entry)?
- How to add current custom taxonomy slug to body class
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Why WordPress is picking archive.php instead of page.php?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Combine multiple CPT names to create valid permalinks
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination for search results of custom post type [duplicate]
- rewriterule not working
- All blog posts are not showing up
- Subpages Permalinks Issues
- rewrite rules hierarchical
- How do I set a post slug automatically based on taxonomy?
- Pagination in custom post type archive.php not working
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- Custom permalink structure for custom post types including multiple taxonomy
- Custom Post Type Pagination getting 404 error
- Numeric pagination custom post type
- CPTs relationship
- Rewrite url for custom post type with specific url
- Custom post pagination not working
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Custom post type post_type_link gives “page not found” on any other custom post type
- Problem to get the link of the default ‘post’ post type like the orther custom types
- Can I override the permalink/slug on creation
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- custom post type archive slug vs. custom page template
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Pagination not working with custom loop
- Pagination not working with custom loop
- the_post_navigation in single page with multiple taxonomies
- Paginate yearly archives for a custom post type
- Custom Post Type slug has the same Redirection entry