Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter hanshjc

    (@hanshjc)

    Mika hi-hi,

    Thanks for your feedback. I motivate and explain the results using this plugin:

    I need to get the page contents ‘auto-inserted’ (GET-function) from Main domain page to Subdomain page using shortcode.
    Motivation: using 4 domains basically I don’t wanna always have to change Contact page contents of 4 sites, better change that in 1 page only. (And then the other 3 subdomain pages ‘auto-change’ as well. Hence, the required GET-function)

    When clicking on the Contact page of a subdomain, it currently leads BACK to Main domain Contact page, and this is not what I want. I need visitor to stay inside the Subdomain.

    (If it were bad for Google’s SEO, well, then so-be-it. As long as I can work with ‘my thing’ then that’s all.)

    The post-content-shortcodes plugin works with Posts, not Pages. But I figured if I learn how to use that as a first step, then I will learn to understand how it could work with Pages too.
    (And then I would ask the Plugin author how That could be done, in order to get my desired end-result). ^__^

    So, here-goes-the-result:

    1. I installed the post-content-shortcodes plugin in the subdomain site.

    2. Added the basic shortcode [post-content post_name="nieuwe-jurken-binnen"]
    testresult: Plugin works good INSIDE Subdomain

    3. Added the Multisite shortcode [post-content post_name="nieuwe-jurken-binnen" blog="www.dreamhousestudio.net"]
    result: Page all messed up
    This IS described at the very bottom of plugin faq page: https://www.ads-software.com/plugins/post-content-shortcodes/faq/

    I quote the FAQ:

    There is a known issue where HTML (especially [caption] shortcodes) within the excerpt can break the entire page. In order to avoid this, be sure to place the tag above the [caption] shortcode within the posts being pulled into the post-list shortcode.

    But then-again, I don’t know where-to-get-the-Tag-from …
    They also mention using shortcode [post-content post_name="this-is-my-cool-post" blog=10] but I have nooooo idea how to get to my main domain blog-number

    Of course I’m learning WP more-and-more continually, but when I have to start looking in the WP Codex, then I’m lost. ??

    Thanks so far already.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It IS bad for SEO, which is why you’re not going to find a lot of help here.

    3. Added the Multisite shortcode [post-content post_name="nieuwe-jurken-binnen" blog="www.dreamhousestudio.net"]

    You’re using it wrong. Re-read the FAQ:

    Will this plugin work in a multisite environment?

    Yes. You can safely network-activate this plugin, or even use it as a mu-plugin. To pull a post with a slug of ‘this-is-my-cool-post’ from a blog with an ID of 10 and a slug of ‘mycoolsite’, the usage would look something like:

    [post-content post_name="this-is-my-cool-post" blog=10]
    or

    [post-content post_name="this-is-my-cool-post" blog="mycoolsite"]

    Thread Starter hanshjc

    (@hanshjc)

    This is truly amazing.
    No solution found yet for my “Simple task”…

    I have tried post-content-shortcodes plugin
    [post-content post_name=”this-is-my-cool-post” blog=1]
    from the top (main) domain.
    When using blog= as website address, page is messed-up, but using blog=1
    it simply only shows an empty page.

    Maybe there would be a way to ask the page to address the top domain database ? somewhere, somehow ?

    I want to let the subdomain page to get information from a domain page > when I re-work the domain page, the subdomain page will see the changes and accept the changes too.
    That way, I won’t have to re-work 4 pages ( 1 domain site and 3 subdomains) every time.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If it was ‘simple’ and easy to do without killing a server, it would be done. I’m not kidding here. The plugin works as expected when I test it. Subdomains or mapped, it pulls in content.

    Try this:

    [post-content id=3152 blog_id=1]

    I did it that way so I can change slugs as I want. But I think the first example has a typo and it should be blog_id

    Actually, theoretically, it should work with blog=1 or blog_id=1. The code is set up to automatically assign the value of the blog parameter to the blog_id parameter if it’s numeric.

    @hanshjc – Can you please identify what the post ID is for the post/page you want to pull in from the main site? Then, please try using the shortcode example Mika provided. It may be that your site is having trouble identifying what the ID of the post is for some reason.

    Also, a few notes:
    1) This plugin does work with posts and pages, not just posts. It should, theoretically, work with any custom post type as well, but that can be a little tricky, since plugins and themes implement those things (and plugins and themes aren’t always active across multiple sites).
    2) If you are pulling content from one site into another, the content of that post will be cached for a while on the destination site (one hour, by default). Therefore, if you make changes to the original page/post, you may not see those changes on your subdomain page until up to an hour later.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import text from domain to subdomain’ is closed to new replies.