I changed this line:
$wp_rewrite->add_rewrite_tag( '%selected_meta%', '([^&]+)', '?meta=" );
Into:
$wp_rewrite->add_rewrite_tag( "%selected_meta%', '([^&]+)', 'post_type=ervaring&meta=" );
Wich was for both issue 1 and 2 enough to work with.
Related Posts:
- Can a custom post type have a Parent Page?
- How do I append multiple taxonomies to the URL?
- Multiple post types – share same ReWrite slug?
- Remove POST_TYPE from custom post type permalink
- Programmatically adding posts
- Extend the wp_get_archives output with ‘?post_type=foo’?
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Create a custom php page and load it at a specific slug
- How to include term custom meta into the custom taxonomy term permalink structure
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- WP 3.1 custom post type permlinks
- Custom post type defaults to index.php for archive page
- Add category slug as class attribute in a link array
- Add archive slug to default post post type
- Custom Post type and permalink settings
- How to check post type (to include custom css)
- Custom rewrite rule for hierarchical custom post type
- How to customize a permalink (URL) structure?
- Plugin: register custom post types, child ready and performance best practices
- Display only one post each WEEK
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Add meta value to custom post type on publish
- How to Mass Delete Images from Media Library
- add category name to permalinks on product page /category-name/product-name
- Use menus with anchors
- Custom Post Type permalink shows wrong page: homepage/index.php
- Get term name and term parent into custom post type permalink
- WordPress add_permastruct unwanted matches
- Rewrite rules for custom posts types
- How to integrate video slide using custom post types?
- Does WordPress consider a post name unique if that same post name is in multiple Post Types?
- Why doesn’t a custom post type permalink ever hit index.php
- How to hook custom taxonomies to custom post types and make the permalinks work?
- custom post type parsed as attachment
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- List custom taxonomy specific to one custom post type
- Define new user capability for custom post types?
- How to allow visitors to enter custom post type?
- Is it possible to create relational metabox values in a custom post?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Meta query for custom post type ignored in main query
- WordPress Custom Post Type Repeated 404 Errors
- How do I create an archive page as a including metadata?
- Child post with numeric only slug keeps redirecting to parent
- How to change custom post type permalink structure
- Custom post type url with category
- Help with Elementor Pagination CPT archive 404 problem
- 2 Templates 1 custom post type according url
- How do I move/order posts with a tag to the end?
- changing meta value and meta key of price field
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Allow post/page hierarchy across different post types?
- WordPress sort search results by custom order
- Permalink for a custom post type isn’t working and I don’t know why
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- How do I set default meta value by post type?
- Add custom post type settings to wordress default posts
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- WordPress Custom Post Type Permalinks dynamic term slugs
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- Hide parent categories when clicked, and show it’s childs
- Custom Path/Folder behind a custom post type
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Time based access control of custom post types – what is good approach?
- Show titles, date of all posts on single category page
- Assign same parrent Page to pages AND custom post types
- Can’t remove front from permalinks for custom taxonomy category page
- WordPress custom post type permalink rewrite shows page not found
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Completely remove custom post type permalinks (“One Page” website)
- Using taxonomy term in CPT permalink – Pages 404’s
- delete_published_posts does not work
- Removing custom post type slug from URL
- How to start a new post with custom Taxonomies already set?
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Custom post type as home page with custom url
- Customize Custom Post Type URL
- WooCommerce sort products by the actual product width(not the shipping width)
- Structure of data : CPT + terms
- URL rewrite add author as base
- Remove CPT name from permalink but add %category% instead
- How to handle paged param in post and custom-post-type?
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Default text in a specific post type, but not visible?
- Update postmeta Parent when post_status child change
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Need help with permalink rewrites for Custom Post Types with hierarchical relationships