<p> tag not working on href

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 6, 2008   (RSS)

Hi

I've got a niggly problem

I can't seem to get the 'See more >>' href to take on the 'p' tag properly in the 'Our Next shows' bit of the code below (in bold).

Its working fine in the 'Our Previous Show' section at the top but for some bizarre reason its determined to drop down and lose the 'p' tage on the 'Our next shows' section despite it being on the same line as the summary line. I can't seem to fathom it. Help please!!

I've enclosed the link below.

<h1>Our Previous Show</h1>
<p><strong><?php echo $past_showsRecord['title'] ?></strong><br/>
<?php foreach ($past_showsRecord['index_page_thumb'] as $upload): ?>
</p>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" /><br/>

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" /><br/>

<?php endif ?>
<?php endforeach ?>

<p><?php echo $past_showsRecord['summary'] ?> <a href="<?php echo $past_showsRecord['_link'] ?>">See more &gt;&gt;</a></p>

<p><?php echo date("D, M jS, Y", strtotime($past_showsRecord['date'])) ?></p>

<?php if (!$past_showsRecord): ?>
No record found!<br/>
<br/>
<?php endif ?>
</p>

<h1>Our Next Shows</h1>
<?php foreach ($customRecords as $customRecord): ?>
<p><strong><?php echo $customRecord['title'] ?></strong> <br/></p>
<?php foreach ($customRecord['poster'] as $upload): ?>

<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" />
<?php elseif ($upload['isImage']): ?>
<?php endif ?>

<?php endforeach ?>

<p> <?php echo $customRecord['summary'] ?> <a href="<?php echo $customRecord['_link'] ?>">See more &gt;&gt;</a></p>

<p><?php echo date("D, M jS, Y", strtotime($customRecord['start_date'])) ?></p>

<hr/>

<?php endforeach; ?>

<?php if (!$customRecord): ?>
No record found!

<?php endif ?>


http://www.faos.co.uk/index.php

Re: [Dave] <p> tag not working on href

Brilliant thanks Dave that fixed it