[resolved] Call WP template tags from any .php file (3 posts)

  1. aldeasim
    Posted 7 years ago #

    Hi everyone.
    Is it possible to echo bloginfo('url'); (or just any function) from mysite.com/thisisnotawppage.php, which is a page that is not generated by my WP installation)?
    I'm trying to call a WP template tag from a modified stylesheet with .php extension.

    Any help will be very appreciated.

  2. moshu
    Posted 7 years ago #

    You don't have to edit anything - except the file where you want to use WP functions (template or plugin tags).
    Put at the top of it, before everything:

  3. aldeasim
    Posted 7 years ago #

    Wow, excellent moshu! Thanks a lot! ;)

Topic Closed

This topic has been closed to new replies.

About this Topic