WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to add pagination at homepage? (9 posts)

  1. Thodoris Konsoulas
    Member
    Posted 1 year ago #

    Hello there!

    My site is socialsteps.gr and the template I am using (Journal Crunch) doesn't have pagination at the homepage. It shows a number of articles defined by the user.

    I am not an expert of wordpress, so I have tried to copy html code into home.php and I have managed to diplay the pagination, but all the pages show the same articles. They don't seperate them, even if I set it from the reading page at wp admin.

    The code is:

    <div style="clear:both;"></div>
    			<?php if (function_exists("emm_paginate")) {
    				emm_paginate();
    			} ?>
    	</div>

    Can you help me with which extra code I have to add so it can work?

  2. Johnny Gav
    Member
    Posted 1 year ago #

    You want to add pagination at homepage, so change is here

    I'm just add this

    <div class="navigation">
    <div class="alignleft"><? next_posts_link('« Previous') ?>
    </div>
    <div class="alignright"><? previous_posts_link('Next') ?>
    </div>
    </div>

    you creat and add per page of this..

    [signature moderated]

  3. Thodoris Konsoulas
    Member
    Posted 1 year ago #

    Hi there and thanks for your answer.

    The code you gave me is similar to the code I gave you in the first post. I have found how to add page 1,2,3 or next/previous posts at the homepage, but the pages show the same articles each time.

    What i need is some extra code (perhaps) for pages to show the right arcticles.

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    I suggest WP-PageNavi and then replace the defaults per the included instructions...working example with WP3.4 and child theme.

  5. Thodoris Konsoulas
    Member
    Posted 1 year ago #

    It won't work. My template uses homepage for certain number of articles and if I click a category or a tag then pagination exists and works fine. The problem exists at homepage. I think extra code is missing, but I am not a developer or sth like that.

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    managed to diplay the pagination, but all the pages show the same articles

    check the front page template (home.php) code for any custom query which might be stopping the pagination.

    the theme seems to have its own forum: http://forums.site5.com/forumdisplay.php?f=104

  7. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    You need to follow and find each template that uses the default next prev links code and change in child theme...it DOES work

  8. Thodoris Konsoulas
    Member
    Posted 1 year ago #

    Thank you very much alchymyth!

    Theme's forum has the solution here: http://forums.site5.com/showthread.php?t=32434&highlight=pagination

    Thank you all for help. :)

  9. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    I would follow the plugin authorized help, not an unsupported forum post...please mark this as resolved if so.

Topic Closed

This topic has been closed to new replies.

About this Topic