Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] <?php include ...?> is not working


 
Prev Previous Post   Next Post Next
  #1  
Old Sep 3, 2009, 06:28 PM
astera's Avatar
astera
 
5 posts · Sep 2009
Unhappy [SOLVED] <?php include ...?> is not working

Hello,

I put my php code in files and leave them under the templatepath.
So far so good.
As I want to put in "Atahualpa 3.4.1" in "Post & Pages" in ""Edit POST/PAGE INFO ITEMS in "KICKER: Single Post Pages" the php code:
PHP Code:
<?php include (TEMPLATEPATH 'landingsites.php'); ?>
or
PHP Code:
<?php include ('landingsites.php'); ?>
Nothing comes out.
But if I put the original code:
PHP Code:
<?php if (function_exists('ls_getinfo')) : ?>
    <?php if (ls_getinfo('isref')) { ?>
        <div class="landingsites">
            <h2>Ihre Suche nach: <?php ls_getinfo('terms'); ?></h2>
            <p>Sie kommen von <?php ls_getinfo('referrer'); ?> und suchen nach <em><?php ls_getinfo('terms'); ?></em>. Folgende Beitr&auml;ge k&ouml;nnten von Interesse f&uuml;r sie sein:</p>
            <ul>
            <?php ls_related(510'<li>''</li>'''''falsefalse); //related post from content ?>
            <?php ls_related_tags(5'<li>''</li>'); //related posts from tags ?>
            </ul>
        </div>
    <?php ?>
<?php 
endif; ?>
then its OK.
What is wrong. Please, can anybody help me?
My WP-Version is 2.84 my PHP Version : 4.4.2-Debian-0.1~sarge1

Thx in advanced
astera
 

Bookmarks

Tags
include php



Similar Threads
Thread Thread Starter Forum Replies Last Post
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
How to include images in post in my RSS feed? stevesp RSS, Feeds & Subscribing 1 Sep 2, 2009 11:07 AM
make index.php be a "page" and blog postings go to different php page zhidoni Atahualpa 3 Wordpress theme 0 Jun 21, 2009 04:25 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 08:41 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.