Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #11060

    Hello Christian and all the rest, back again:

    I would like to add previous and next functionality to the posts in Corona. I can’t figure out how to do this.

    Looks like it that in the older themes this is done in loop-singlepost.php, but I can not find a document like this in Corona.

    Appriciate your help.



    Hi Erik,

    If you open up includes>loop-index.php you can add the following after the entry content is called but still inside its div, right around line 118:

    previous_post('« % ','Previous', 'no');
    next_post(' % »','Next', 'no');


    This will just check if the post is alone and if so add the Previous and Next links at the bottom. WordPress codex on the functions here: http://codex.wordpress.org/Next_and_Previous_Links#The_Next_and_Previous_Posts




    Thanks Devin, works wonderfully, but……………………………………..it’s displayed on the blog archive pages as well as on the single posts.

    Actually I would only like them on the single posts.



    You can add this to your custom.css or Quick CSS

    .archive .navigation{display:none;}



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

The topic ‘Previous and next in Corona posts’ is closed to new replies.