Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP Affiliate – create custom urls with affiliate ID?

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › WP Affiliate – create custom urls with affiliate ID?

Tagged: affiliate id, affiliates, custom url, referral, WP Affiliate

  • This topic has 12 replies, 4 voices, and was last updated 10 years, 9 months ago by admin.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 1, 2014 at 6:33 pm #11263
    echoleaf
    Member

    Can the affiliate ID be added to any URL? For example, can I add the affiliate ID to a WordPress post or page by editing the slug?

    August 1, 2014 at 8:27 pm #64707
    wzp
    Moderator

    Yes. Just add the ap_id query string to the end of any URL:

    http://www.tipsandtricks-hq.com/wordpress-affiliate/how-to-create-banners-for-affiliates-to-use-153

    Note: the URL must resolve to a WordPress page, on the site upon which Affiliate Platform is installed.

    August 5, 2014 at 6:26 pm #64708
    wrcaccess
    Spectator

    WZP, My wp affiliate plugin is integrated with multi-authors. When they make a blog post, only the

    [http://www.your-domain.com/link-to-your-post-or-page]

    is shown in search engines or social media sites.

    I’d like that I can add a ref id belonging to the affiliate who makes the blog post automatically each time they make a blog post as in eg

    [http://www.your-domain.com/link-to-your-post-or-page?ap_id=authors_aff_id]

    Is this possible and where I can I add the code to reflect that.

    many thanks

    August 5, 2014 at 7:07 pm #64709
    wzp
    Moderator

    You are trying to associate a particular permalink (for a post), with an affiliate ID; so that if a search engine sends someone to that permalink, the desired affiliate ID will be set?

    August 5, 2014 at 7:23 pm #64710
    wrcaccess
    Spectator

    Exactly. Even otherwise, I’d like the blog posters to have their aff id in the permalink each time they make a blog post. I know they can add the blog link before the ?ap_id=ref-name manually,

    But it would be nice if the plugin auto inserts their id attached to each post they make.

    Currently the link to each affiliate shows only the blog post url as in example below

    [http://1into1million.com/member/what-kind-of-asian-are-you/]

    It would be nice if the author/affiliate making the post had

    [http://1into1million.com/member/what-kind-of-asian-are-you/?ap_id=wonderjam]

    I’d assume it would be a matter of adding the ref-id php code to the single blog post page.

    August 5, 2014 at 7:31 pm #64711
    wzp
    Moderator

    It’s a little bit more complicated; and might be worthy of an addon creation…

    WordPress needs to be modified so that when a search engine or visitor, scans for or retrieves a particular page/post; a check is made to see if the page/post author has an affiliate ID, and then append the ap_id query string to the permalink that is returned.

    August 5, 2014 at 7:33 pm #64712
    wrcaccess
    Spectator

    I think I was misunderstood. My query has nothing to do with the search engine or whether and if they find the suggested link.

    My query was about the plugin itself and if the ?ap_id can be added to the blog posts made by the affiliates.

    August 5, 2014 at 7:43 pm #64713
    wzp
    Moderator

    My query was about the plugin itself and if the ?ap_id can be added to the blog posts made by the affiliates.

    I **think*** this might help:

    https://support.tipsandtricks-hq.com/forums/topic/automatically-add-affiliate-id-to-any-page-url

    You’ll have to do some additional coding.

    August 5, 2014 at 8:14 pm #64714
    wrcaccess
    Spectator

    WZP – Thank you for your prompt responses. Appreciate your time.

    August 5, 2014 at 8:37 pm #64715
    wrcaccess
    Spectator

    WZP, IN the above URL you gave me, admin gave this solution

    ==== Yep, just call the following function and it will return the Affiliate ID:

    wp_affiliate_get_referrer() ====

    Where and how to implement this. Thanks,

    August 6, 2014 at 1:40 am #64716
    admin
    Keymaster

    This is something your affiliates will do on THEIR site. Your affiliates will use a solution like the following to achieve a similar result:

    Affiliate Link Manager/Cloaker Plugin

    You (the product seller) don’t have to worry about it.

    August 9, 2014 at 10:40 pm #64717
    wrcaccess
    Spectator

    Admin,

    I am being misunderstood again. I don’t mind if this request can be a custom solution and if I have to pay for it if this solution is a major update.

    I know one can append the blog post link and add the /?ap_id=xxxxx to the link.

    But I want the AUTHOR making the blog post have the ref id automatically attach the affiliate ref id to the blog post url.

    For eg. I have 5 affiliates and they all are making their own blog posts. When they publish their article the url will show

    domain.com/blog_post_title/?ap_id=xxxxx where /?ap_id=xxxx is their own affiliate id.

    Appreciate a solution.

    Eg can be found at link below where the author making the post has his id appended to the blog post url.

    [http://jonmroz.com/members/empower-network/empower-network-is-a-scam-get-the-review/?id=jonmroz]

    August 9, 2014 at 11:57 pm #64718
    admin
    Keymaster

    I understand your setup now. You have authors (who are also affiliates) write posts on your site. You want their posts to have an affiliate link.

    You will need a custom tweak for this. Please fill in the following form to get in touch so I can be 100% sure as to what you need then we can develop a tweak/solution for you:

    https://support.tipsandtricks-hq.com/need-custom-work-done

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ