WordPress.org

Support

Support » How-To and Troubleshooting » Define variable in theme code and access it form a post content

Define variable in theme code and access it form a post content

  • Hi,
    I need to define a new variable in my “header.php” file, use it modifying its value and then access it from a post content using PHP code.

    Now I have tried it and I can’t see the variables from the content of a post.

    Could you give some help?

    Thank you very much,
    Guille

  • The topic ‘Define variable in theme code and access it form a post content’ is closed to new replies.
Skip to toolbar