The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Adding Pages and Read More for my News Page in the Site (2 posts)

  1. techiebrain
    Posted 9 years ago #

    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 »'); ?>
    <?php the_content('<span class="more">Read more >></span>'); ?>
    <?php link_pages('Pages: ', '', 'number'); ?>
    <?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

  2. moshu
    Posted 9 years ago #

    Wrong approach...
    Pages are NOT meant to do what you want to force them to do.
    Make those "news" of yours a category - and use a category template.
    Also, the read more doesn't work a on Pages.

Topic Closed

This topic has been closed to new replies.

About this Topic