Script on WP

Discussion in 'PHP' started by Hej, May 12, 2009.

  1. #1
    Any one know if it's possible to have a script working on a WP page?
    For example a url shrinking script.
     
    Hej, May 12, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you need to be more specific, since WP is one big PhP script that also allows for plugin capabilities (which are also php scripts)
     
    kblessinggr, May 12, 2009 IP
  3. fourfingers

    fourfingers Peon

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    set up the url shrinker in a subdomain.

    pass the url to shorten via a token (md5 hash or whatever) and then present it to the user.
     
    fourfingers, May 13, 2009 IP
    Hej likes this.
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    There are plugins available which allows you to run PHP code in both posts, sidebars and more. Google for "run php in wordpress" or "wordpress run php". If you are comfortable editing the main template (theme) files, you can add whatever PHP-coding you want.
     
    PoPSiCLe, May 13, 2009 IP
    Hej likes this.
  5. Hej

    Hej Active Member

    Messages:
    830
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Thanks a lot.
    Now I have something to work on.
    If I need help, can I hire one of you?

    Och till Norge är det inte långt. :)
     
    Hej, May 14, 2009 IP
  6. X-N2O

    X-N2O Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can also edit index.php directly.
     
    X-N2O, May 14, 2009 IP
  7. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #7
    @Hej: if you need any help, or have any work you need done, just send me a PM, with contact info, and we can work from there :)

    Og nei, du er ikke så langt unna Norge ;)
     
    PoPSiCLe, May 14, 2009 IP