• Resolved jean-sam

    (@jean-sam)


    Hello,

    My template has a page called “page-home.php” in which there is the following code : <?php include(TEMPLATEPATH . ‘ /home_content.php’);?>

    On my computer, works fine.
    Once uploaded, I get my header fine, my footer fine, but instead of displaying home_content.php I get the following :

    Warning: include(/homez.424/lesmegalh/www/wp-content/themes/megalodons /home_content.php) [function.include]: failed to open stream: No such file or directory in /homez.424/lesmegalh/www/wp-content/themes/megalodons/page-home.php on line 10

    Warning: include() [function.include]: Failed opening ‘/homez.424/lesmegalh/www/wp-content/themes/megalodons /home_content.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /homez.424/lesmegalh/www/wp-content/themes/megalodons/page-home.php on line 10

    Can anyone please tell me what’s wrong and what should be done ?
    Many many thanks

Viewing 1 replies (of 1 total)
  • Thread Starter jean-sam

    (@jean-sam)

    Replace TEMPLATEPATH… by <?php get_template_part(”);?>
    Seems to be a new custom template tag

Viewing 1 replies (of 1 total)
  • The topic ‘TEMPLATEPATH issue – homez.424…’ is closed to new replies.