Skip to main content

Forums

This topic contains 4 replies, has 0 voices, and was last updated by  mkhululi 9 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27279

    mkhululi
    Member

    Hi all,

    Please help me with the following problem:

    The normal practice is to put all post on the index page. For my design I want to put the 2 or 3 posts on the sidebar and in the end put a link to view all the posts in a different page.

    So far, I have moved this code snippet following code snippet from the index.php page:

    Code:
    < ?php if (have_posts()) : ?>

    < ?php while (have_posts()) : the_post(); ?>

    id=”post-< ?php the_ID(); ?>“>

    < ?php the_title_attribute(); ?>

    < ?php the_content('Read the rest of this entry »'); ?>

    < ?php the_tags('Tags: ', ', ', '
    ‘); ?>
    Posted on < ?php the_time('F jS, Y') ?>

    < ?php endwhile; ?>
    View All…

    < ?php else : ?>

    There are no projects to view at the moment

    < ?php endif; ?>

    to the sidebar.php page.

    Now what I want is to have the posts showing on a new page called ViewAll.php but don’t get to see anything.

    What am I missing?

    Thanking you in advice.

    #68947

    mkhululi
    Member

    Anyone?

    #68985

    craigfarrall
    Member

    Have you created this page template?

    #69002

    mkhululi
    Member

    here is the url to the page:

    http://www.imustsolutions.co.za/sbs/

    Please note: this is under development.

    Look at the page before reading further…

    The idea is to list the last two posts at the bottom of the sidebar with a link to view the rest of the posts in the end – "View All". The link should direct the user to a new page showing all the posts. The page in question is the same template – linked to by "Clients" from the main menu. I have put all the code that normally goes the the index page in it. But I have not put the code there yet. I want to sort out the sidebar first.

    Also, I don’t want the posts under the sidebar to change after View All is clicked. Click the link to see the mess I want to prevent.

    I hope that I have articulated the problem enough.

    Thanks in advance.

    Regards.

    #69106

    mkhululi
    Member

    Please help again…

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star