Conditional Tags problem
-
Can anyone help me figure out what’s wrong with this code?
It is suppose to be, if a Page with page slug “links” is being displayed, it will process the code below.
Now what I am getting is it echo/print out all the codes instead of processing them.<?php if( is_page(‘links’) ) : ?>
echo ‘If you want to display your links in the list below, you can submit your site here.’;
require ‘../linkman/settings.php’;
$lines = array ();
$lines=file(‘../linkman/linkinfo.txt’);
echo ‘<p class=”linkman”>’;
foreach ($lines as $thisline)
{
$thisline=trim($thisline);
if (!empty($thisline)) {
list($name,$email,$title,$url,$recurl,$description)=explode($settings[‘delimiter’],$thisline);
if ($settings[‘clean’] != 1) {$url=’https://www.raymond.cc/linkman/go.php?url=’.$url;}
echo ‘- ‘.$title.’
<br>’;
}
}
echo ‘<hr size=1 noshade>
<p align=”center” class=”linkman”>Powered by Link manager LinkMan ‘.$settings[‘verzija’].’ from PHPJunkYard – free php scripts
‘;
<?php endif; ?>
- The topic ‘Conditional Tags problem’ is closed to new replies.