WordPress.org

Forums

[resolved] Using WP tags on Subdomain Redirecting to Main Domain (7 posts)

  1. roberthilley
    Member
    Posted 6 years ago #

    I am in building WP out to act as a content management system. I have two urls up and running for testing purposes. Here is my problem:

    I would like the "Tag" link, i.e. <?php the_tags('Tags: ', ', ', '
    '); ?> on the subdomain to point to render the appropriate tag from the sub but point to the tag cloud on the main domain.

    EXAMPLE

    LINK: http://scott-nabers.injuryhelpnetwork.com/tags/regranex/

    At the bottom, below the contact form is the "tag" link for "Regranex"

    The tag, when clicked points to http://scott-nabers.injuryhelpnetwork.com/tags/regranex/

    I would like it to render the appropriate tag contained in the post but point to this url: http://www.injuryhelpnetwork.com/tags/regranex/

    Any ideas?

  2. roberthilley
    Member
    Posted 6 years ago #

    Maybe this should be moved to the WP-Advanced cat on the forum? I tried to post there but I did not have access.

  3. Ivovic
    Member
    Posted 6 years ago #

    you'll have to hack the core to make it do that, and therefore into territory which won't interest most people, as most people like to keep upgrading.

    I'm definitely in that camp myself.

    Take it from me, using multiple domains with wordpress isn't something that's established to the point where you can readily find answers to your questions. This is an area in which you'll need to forge your own path.

  4. roberthilley
    Member
    Posted 6 years ago #

    Thanks ... do you happen to know which file needs a mod? I have done a few for dif topics in the wp-includes folder. Trail and error is not so bad ... let me know if you know the file that needs the hack.

  5. Ivovic
    Member
    Posted 6 years ago #

    no, I don't... but I could find it... and if I can, so can you.

    follow the trail of breadcrumbs... the template tag for displaying tags will lead you to more functions, which will lead you to others, which will probably let you jump in with a quick mod.

    Searching the files is your friend.

    You're in for a lot of this sort of thing, if you wanna play with multiple domains, so I suggest you stop being shy and get your hands dirty.

  6. roberthilley
    Member
    Posted 6 years ago #

    Thanks Ivovic ... i already spent about 6 hours looking and testing dif scenarios and is why i asked. I'll keep looking :-) Thanks again man.

  7. Ivovic
    Member
    Posted 6 years ago #

    if its taking you 6 hours, then you're doing it wrong.

    use a text search... search the files for the function names.

Topic Closed

This topic has been closed to new replies.

About this Topic