Forums

PHP in Themes (3 posts)

  1. number34
    Member
    Posted 3 years ago #

    I really can't figure this out... My theme works great, but then when I use a PHP include in the header file to grab a banner, it does that, but then it stops parsing PHP for the rest of the theme (excluding the Loop). It doesn't show any sidebar widgets anymore or anything.

    The code in question is:

    <?
    $_GET['id'] = '11';
    include('/home/domains/mysite.com/ad.php');
    ?>
  2. Dgold
    Member
    Posted 3 years ago #

  3. Ethics
    Member
    Posted 3 years ago #

    try a absolute link path.

    ex.

    [code]
    <?
    $_GET['id'] = '11';
    include('http://www.mysite.com/ad.php');
    ?>
    [/code]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags