• hi there

    i am making my first wordpress theme but got in trouble
    i have script.php file in theme folder
    i am using jquery to load it from index.php
    `$(document).ready(function(){
    var templatepath=”<?php bloginfo(‘template_directory’) ;?>” jQuery(‘ul#morepostul’).load(templatepath+’/script.php’); }); `

    in script.php i have code like below

    <br />
    <?php</p>
    <p>echo bloginfo('template_url');</p>
    <p><?

    i dont know why i am getting this error
    Fatal error: Call to undefined function bloginfo() in /home2/agricul1/public_html/webtutsandseo/wp-content/themes/webtutsandseo/script.php on line 11

    please help i could not figure out what i am doing wrong from last 2 days

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘undefined function bloginfo’ is closed to new replies.