how to insert my cloaked link into my wordpress blog

Discussion in 'WordPress' started by tmontana, Dec 1, 2008.

  1. #1
    hey guys, ok i have just started a new blog (see siggy) and was able to cloak my affiliate links using PHP

    basically what i did was

    ?php

    $redirecturl = 'http://my....affiliate...link...inserted...here';
    header('location: '.$redirecturl);

    ?>


    and save as .PHP file, the theme im using (woo themes) let me easily do this for my banners but i want to know how its possible to insert this code into posts. i know this is possible but im not sure how

    when writing a post how would i insert my new cloaked .PHP file into it? would i use the HTML option or how can i do it?

    hope someone can help me out as im a newcomer to blogging

    thanks guys

    alan
     
    tmontana, Dec 1, 2008 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
  3. dpsubi1

    dpsubi1 Notable Member

    Messages:
    9,318
    Likes Received:
    420
    Best Answers:
    0
    Trophy Points:
    280
    #3
    if you want to insert a php code in your wordpress post you need execute php plugin.
     
    dpsubi1, Dec 1, 2008 IP
  4. tmontana

    tmontana Guest

    Messages:
    670
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can you tell me how to do that mate if you dont mind?

    thanks
     
    tmontana, Dec 2, 2008 IP