Adding Pages and Read More for my News Page in the Site
-
Hi
I need to add a News page in my site, with 3 news showing in One page. Also with a read more link. Right now I am using Pages for this, but I am not able to create dynamic links in the bottom, so that I can add 3 News per page and clicking the Next button, goes to the next page with another 3 news. Also after some 250 charecters, I need to have a read more link so that the current page will look nice and clean.
I have added the code like this below for this
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<?php the_title(); ?>
<div class=”content_page”><?php the_excerpt(‘<p class=”serif”>Read the rest of this page »’); ?>
<!–more–>
<?php the_content(‘<span class=”more”>Read more >></span>’); ?>
<?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
</div>
</div>
<?php endwhile; endif; ?>but this didnt work, and not even the Read More.. It didnt even showed me that. Can some body help me to resolve this issue. I want to push this site up by evening.. For time being am adding static pages in the site with diff news in diff pages… but I know this is not the right way..
BTW, I am using Connection theme
- The topic ‘Adding Pages and Read More for my News Page in the Site’ is closed to new replies.