the plugin “WDS Multisite Aggregate” store the blog identifier in a meta of the cloned post.
then in the template file wich display the cloned posts, you can retrieve the home url of the original website with that :
$blogid = $GLOBALS["post"]->blogid;
$blog_details = get_blog_details($blogid);
// the home URL is in $blog_details->home
I hope this is what you need because calculating the original post identifier from the permalink consumes considerably more ressources.
Related Posts:
- Get Permalink of Network Blog Post
- Multisite Network: How to change permalink structure programmatically on new blogs
- Why wordpress multisite root site showing blog prefix by force?
- Create unique alphanumeric ID on wp_insert_post
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- How to eliminate permalink prefix in WordPress Multisite
- Is it possible to install WordPress Multisite on a subdomain with subdirectories?
- flush_rewrite_rules on MultiSite
- WP Multisite Subdirectory Custom Permalinks 404
- Change permalink structure in all sites of a multisite
- 404 on wordpress multisite Permalink pretty URLs
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- In a multisite, how can I get posts from one site and display their permalinks in another site?
- Disable “similar permalink” redirect [duplicate]
- Parent/Child Relationships with Multisites?
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- Get current URL (permalink) without /page/{pagenum}/
- How to get pretty URLs with add_query_arg in permalinks
- How does wordpress keep track of post id when post id is not used in permalinks?
- How to add query parameters to all internal links?
- How to make draft posts or posts in review accessible via full url / slug?
- nginx – permalinks with .php in url not working
- Social Media Links on homepage – within posts/post loop
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- How to change the link structure of the homepage?
- Change permalink for a single post entry
- Does WordPress send a 301 header message when you change permalink structures?
- Removing /blog/ from multisites cause infinite redirection
- WordPress redirection problem after moving to a new server?
- Different permalink structure per category
- Multilanguage URLs
- Trying to get property of non-object when using get_post_permalink()
- Add .html to Woocommerce permalinks [closed]
- Multisite Pull Recent Image Attachments from Blog ID
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- How to protect htaccess so it can’t be overwritten?
- Is the ‘/category/post-name-date/’ permalink structure okay?
- How to link to current post in WordPress?
- how to add two same slug under two category?
- Does changing a post title of a published post automatically change permalink?
- How to Get Page 2 / Paginated RSS Feed with Custom Permalink Structure?
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Editing URL character replacement
- Get post text (by its URL) from database dump
- Why wordpress kicks me back to the dashboard of xampp? [closed]
- WordPress archive permalink with leaf category
- Permalink shows garbage character
- Rewrite rule intended for CPTs gives 404 for pages
- Redirecting all posts after changing URL structure with htaccess
- Permalink redirection.
- All top-level pages are using index.php as template
- Redirect all posts permalinks from “.html” to “/”
- Nginx url rewrite rule problem
- Permalink options page corrupts web.config file
- How to rename ‘Tag Base’ with WPeC 3.8?
- Custom rewrite rule ignored
- Permalink Problems
- Make last three words of excerpt a link
- Resolve 404 on posts without category
- Permalink of a page that has already been deleted
- How to remove .html from admin
- Retrieve default permalink while using seo friendly URLs in WordPress
- When I click on a single post my browser goes to about:blank#blocked and the page is white
- WordPress Permalinks problem
- How to get rid of an extra middle part my permalink
- Access or edit custom generated permalinks with WP_Rewrite
- Add custom query vars to pretty permalinks
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Redirect after permalink changes
- replacing post ID by custom post name in url
- Change type of permalinks on TinyMCE link dialogue
- Problem with special character WordPress
- Permalinks and page store
- Change pemalink for one single post without redirect
- Add .html permalink to post if specific category
- Strip subcategory base from URL
- rewrite based slug standar post wp
- How to update wordpress permalink structure with author role?
- How to turn a custom query string into permalink?
- Edit Post Permalink option removed, looking for possible causes
- Site Tagline ended up in permalink
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- Category Base permalinks
- Pretty Filter URL
- Add URL to selected post in meta box
- How to change dynamic link to relevant post
- Auto-generated pretty permalink not using title since 4.4 update
- Add Custom Pagination Permalink
- Prevent guessing slug
- Pretty permalinks to work for lighttpd webserver?
- Pages included in another page and duplicate content issues for SEO
- Customize category permalinks
- WordPress archive posts returns user to homepage
- Remove blog slug from WPMU?
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- permalinks url with woocommerce
- Blog url disappears
- Custom Permalink Structure For a Specific Category