Wordpress Single.php

Discussion in 'Scripts' started by NaSh123, Sep 26, 2008.

  1. #1
    I am having a problem with my single.php understanding variables defined in a post.

    For Example:

    I have made a post using Exec-PHP and include something like
    Then in my single.php I have a code like

    For some reason the single.php does not understand what the variable $background is. Am I doing something wrong?
     
    NaSh123, Sep 26, 2008 IP
  2. Joseph S

    Joseph S Well-Known Member

    Messages:
    1,373
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Your code is correct, I have also tried adding it into single.php and it is working. So.. dunno what to say. Maybe give use the code you have in single.php?
     
    Joseph S, Sep 28, 2008 IP
  3. NaSh123

    NaSh123 Peon

    Messages:
    1,298
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just used the custom fields to get this done. Thanks though!
     
    NaSh123, Sep 28, 2008 IP