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'); ?>
PHP Code:
<?php include ('landingsites.php'); ?>
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äge könnten von Interesse für sie sein:</p>
<ul>
<?php ls_related(5, 10, '<li>', '</li>', '', '', false, false); //related post from content ?>
<?php ls_related_tags(5, '<li>', '</li>'); //related posts from tags ?>
</ul>
</div>
<?php } ?>
<?php endif; ?>
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