PHP Executing a url

Hello everyone,Sir can you help me?i am using WordPress CMS,but one articles READ MORE button not working in this code,kindly help me sir please as early as possible.
Code is

<?php /** * @category Fishpig * @package Fishpig_Wordpress * @license http://fishpig.co.uk/license.txt * @author Ben Tideswell */ ?> <?php $posts = $this->getPosts() ?> <?php if (count($posts) > 0): ?>
            <div class="block-content">
                    <?php foreach($posts as $post): ?>
                            <?php $post->setExcerptSize($this->getExcerptLength()) ?>
                                    <?php if ($this->canDisplayExcerpt()): ?>
                                            <a href="<?php echo $post->getPermalink() ?>">
                                            <p class="post-excerpt">
                                            <?php $content = $post->getPostExcerpt(); $content = strip_tags($content); echo substr($content, 0, 250); ?>
                                            </p>
                                            <p style="text-align: right;">Read More</p>
                                            </a>
                                    <?php endif; ?>
                    <?php endforeach; ?>
                    <script type="text/javascript">decorateList('<?php echo $this->getListId() ?>')</script>
                    <?php if ($this->canShowPager()): ?>
                            <?php echo $this->getPagerHtml() ?>
                    <?php endif; ?>
            </div>
<?php endif; ?>

Please sir

Sponsor our Newsletter | Privacy Policy | Terms of Service