The solution was actually quite lightweight. I found it by inspecting the plugin code. Luckily, plugin developer put a lot of filters and actions to extend and modify plugin functioning, so solution is also futureproof. The slug used for custom post type here is uciliste
.
Somewhere in PHP which loads before page (e.g. functions.php) this should be put:
// map all uciliste pages through falke plugin
add_filter( 'falke_mdmf_request_uri', function($newRequestURI) {
return $newRequestURI . ($newRequestURI === '/uciliste/' ? 'uciliste/' : '');
});
This filter prevents double slug appearing in url, like this: https://seconddomain/uciliste/uciliste (the first comes from cpt slug, second from remapping)
Further, in plugins settings the slug /uciliste
should be mapped to second domain, and that’s it.
Related Posts:
- Localization For Two Different Regions/Domains with the Same Language
- Custom post type role permissions won’t let me read
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- How to remove Filters from post admin page?
- Custom Post Types on Category Pages
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Display content from custom meta boxes in revisions
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Custom Post Type pagination – normal solutions aren’t helping
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Sort the main query in subcategories/terms?
- Getting Post ID from slug during init
- Rewrite custom post & taxonomy to share same URL path
- Paginate Custom Post Type Page
- Highlight nav menu terms
- Custom Post Types, Custom Taxonomies and Permalinks ?
- delete custom post based on custom field date
- Load custom post type in a different WordPress installation
- Get_post_meta() won’t return value
- Disable All In One SEO Pack for some custom post types [closed]
- Settings page above CPT page in admin section
- multiple search forms and search results
- wp parse_query not working with custom meta value
- Display Custom Category (taxonomy) Name in Custom Post Type
- Recommended way to remove WP REST API returned data for custom post
- How to create another version of the Category widget?
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Child Theme for Mobile Browsers
- How to use WP_Query in a CPT achive page?
- Have a Custom Post Type index page display taxonomy items instead of posts
- Custom Post Types relationships
- Display different content on homepage depending on post type
- How can i skip same post from taxonomy term?
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- just can’t get date-based archives per post-type to work
- Create/Edit posts and auto-redirect back to listing page
- How to load a template without it being assigned to a page/post?
- Is it possible to list and create custom post types with Vimpress?
- WP_Query orderby modified to include custom meta changes
- how to check if custom post type column already exists?
- Posts are duplicating on wp_post_update
- different post-class when template is loaded via ajax
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- Custom archive page for CPT UI
- Remotely search WordPress sites using xml-rpc
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- permalink /category/post-name with custom post type and taxonomy
- Creating a Custom Post Type and Joining with Users
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- Displaying tags associated with posts in Custom Post Type
- Using custom post type as taxonomy
- set_query_params using custom params defined in functions file?
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Select other roles as custom post authors
- Change WordPress custom field default calendar [closed]
- Show all Tags in each post
- Auto Expire/Delete Custom Post Type Posts after specified time
- saving dropdown menu data on custom post type
- Cannot Save MetaBox Data in Custom Post Type
- Custom post type 404 error on “default” or “numeric” permalinks
- List of a specific Custom Post Type in Custom Template
- How to register a post type so I have archive page, but don’t have single pages?
- Add Permalink to Post Thumbnail, syntax code issues
- Custom field with Types: get custom field’s value label (of type select)
- display custom portfolio tags
- WordPress sitemap with Custom Post Types
- Custom Post Type and Taxonomy Rewrite Error
- how to retrieve related projects in a post but via a custom taxonomy?
- How to avoid duplicate posts queried from custom meta?
- How do I find the count of the current post?
- How to display singular_name of custom taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- Show posts from custom post type sorted by category/taxonomy on a one-pager/page
- Add input radio menu to post
- Query a custom taxonomy in a function to create an csv file
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- Combine all posts into one places
- Mix Facebook and Twitter feed into custom posts
- ACF Post Content Not Being Searched
- Taxonomy Page Go to 404 pgae
- Custom Fields through plugin in a Custom Post Type
- Change the “Allow comments” text for admin edit screen for custom post type?
- Need some suggestion/help with custom post types project
- Custom Homepage As Single Page or Custom Post Type?
- How to loop through custom post type posts
- WordPress Permalink Custom Post type
- Custom Post Type only display items created by user
- Default custom column to off
- Taxonomy count per Post type
- Custom page template not being called
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- taxonomy terms array not working
- How to display only taxonomies of custom post type in a page?
- Adapting plugin for custom post type?
- Display by tag from different post types
- How can I modify this blog loop to display custom post type posts?
- Test if a Category contains certain Custom Post Types
- coloring row’s background based on custom field value
- How to exclude html tags and class on search