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
- How to change rewrite slug for custom post type without conflicting w/ child pages of page with same slug
- Removed custom post type slug but not working for child pages
- Canonical url differs from custom post type archive URLs
- Including taxonomy term before post type breaks top level pages
- Default post tab showing twice in admin bar
- Next Post links not working in custom post type shortcode
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type permalink returns 404
- remove base slug from hierarchical custom post type
- Rewrite Endpoints and CPTs – How to use in a plugin
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Custom Theme With Custom Loops
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Custom Post Types strange pagination problem
- Make custom post types and pages place nice, re: rewrite
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- Can slugs from posts and custom post types conflict?
- add_rewrite_rule and passing variables for custom post types
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Use date in the URL of custom post type
- Get url.com/post_type/taxonomy/term work!
- Specific routing for CPT
- Custom Post Type – Duplicate Page Slugs
- can these 3 queries be re-written as 1 query?
- Custom post type pagination – always return first page
- Rewrite rule for Custom post type Monthly and Yearly archive
- Different rewrite rules for taxonomies and cp in multisite?
- Best structure / rewrite rules to achieve the following url
- pagination not working for category.php (custom post types in categories)
- Add a permalink variable onto custom post type URL after post name slug
- Redirect to another page using contact form 7? [closed]
- Custom post type pagination 404
- Remove permalink for custom post type
- How to add custom taxonomy in custom post type permalink?
- Add parent post to Custom Post Type [closed]
- Auto Slug Generation for Custom Post type
- Properly flush rewrite rules on plugin activation
- How to make a posttype show under a page hierarchy (example.com/page/posttype/entry)?
- Pagination broken by naming conflict between CPT and Page
- Cant get paginations on single.php to work with my custom post types
- Custom Post Type archive-{post-type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- How do you create %post_type%/%postname%/ permalink structure?
- Number of posts in the archive
- Relationship between set rewrite flag in register_post_type and add_rewrite_rule
- How to query 2 custom post types that need to share a slug?
- Slug for custom post type
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom rewrite to fetch feed data
- Rename a slug label
- Pagination Error : Duplicate argument being outputted
- Custom Rewrite Rule for Custom Post Type with URL Param
- Slug Confusion Between Post and Custom Post types?
- WordPress custom slug rewrite
- How to find a specific post_type using its “rewrite slug”?
- Custom WP_Query always respond with 200 status even when no entry
- Different slug taxonomy for two different CPT
- Can’t use pagination with custom taxonomy
- How to add current custom taxonomy slug to body class
- Change Slug of a Custom Post Type
- Using page slug in wp_query
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- How can Custom Post Type and a page have the same slug?
- Trouble with pagination
- custom post type archive page has 404 error even though has_archive is true
- Pagination 404 on Index with custom query
- Custom post type paging 404 error
- How to get postname in custom page?
- previous_post_link in same taxonomy in custom post type
- Custom Permalinks for Custom Post Types
- How to do admin CRUD & Pagination
- Listing all slugs?
- Why WordPress is picking archive.php instead of page.php?
- Custom ordering of CPT items not matching with the ordering of its pagination