Forums

[resolved] TEMPLATEPATH issue - homez.424... (2 posts)

  1. Jean-Sam
    Member
    Posted 1 year ago #

    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

  2. Jean-Sam
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic