Setting up image URL to a individual page

Hi There,

I am trying to setup the image URL for my banners so it will display the affiliate URl, but I want to link it to individual pages not to the homepage. I’ve tried a few different options with the shortcode but none of them seem to work correctly. Could you advise how to do this.

EG:

Thank you 🙂

Posted in

Comments

11 responses to “Setting up image URL to a individual page”

  1. bitofgrace Avatar
    bitofgrace

    Hi Antonio,
    What format should the attachment_id=”” be??
    I’ve had no luck in using that method to include a supplied image.

    attachment_id=”/image-address.jpg” ??

    -grace

    1. antonio Avatar
      antonio

      Hi,
      you can find media id: Place the mouse over the media link (in Media menu), and below you will see …post=XX… use this XX.
      XX must be an integer.
      cheers

      1. bitofgrace Avatar
        bitofgrace

        OOoooOOoh 🙂 perfection – thank you!

        Is there any chance you know how this could work with a coupon ID? (to apply a coupon when the link is clicked)

        -grace

        1. antonio Avatar
          antonio

          I’m glad that works.
          I have not tested with Affiliates, but this plugin seems to do that.
          cheers

  2. OzWellness Avatar
    OzWellness

    That was meant to read [code] – renders it with th word code before and after URL structure. Sorry, html doesn’t work in the comments .

    1. antonio Avatar
      antonio

      Hi,
      please, can you show us the shortcode and the result code? use pastebin.com please.
      cheers

  3. OzWellness Avatar
    OzWellness

    That’s weird, it looks fine in the HTML above. when I put the code you suggested it renders it with before the URL and after the URL before the affiliate ID, which means the link doesn't work when you embedd it.

  4. OzWellness Avatar
    OzWellness

    Antonio, that shortcode structure doesn’t seem to work, this is what it does <a href="http://ozwellness.com.au/product-tag/paleo/?ozid=13″>

  5. OzWellness Avatar
    OzWellness

    Thanks Antonia, I’ll give that a go.

    Just one more thing, if an affiliate wants to setup their own link to an individual URL, would they just put their ID on the end of the URL
    eg: http://ozwellness.com.au/product-tag/vegetarian/?affiliates=11

    Just wanted to check so I can make a simple tutorial for them.

    Thanks.

    1. antonio Avatar
      antonio

      Hi,
      yes, that is.
      Be careful not to have checked “Affiliate ID encoding” in Affiliates->options.
      cheers

  6. antonio Avatar
    antonio

    Hi,
    you can use “url” attribute, for example: ( XX is the media id)

    [affiliates_affiliate_link url="http://yourdomain.com/pageA/" attachment_id="XX" /]

    If you want render code:

    [affiliates_affiliate_link url="http://yourdomain.com/pageA/" attachment_id="XX" render="code"/]

    cheers

Share