Support » Theme: Canard » Pages at mainpage

  • Resolved liludallas

    (@liludallas)



    Hi!
    http://ktrip.ru/

    I have a question. How can I do paginator for my posts on the main page?

    Adding footer I just have “previous” button… but what if I wan to have not more than 5 latest posts on the main page and all the others to be paginated?

    Thank you!

    Veronika

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Veronika,

    If you navigate to Settings > Reading in your admin area, you’ll find the option of increasing or decreasing the number of posts that display on your main page from five:

    http://ktrip.ru/wp-admin/options-reading.php

    If you wish to customise the pagination beyond that, then it may be necessary to set up a child theme and learn more about the underlying code for pagination here:

    https://codex.wordpress.org/Pagination

    Let me know if that helps out! Let me know a little more about your end goal and how you’d like you pagination to look, if you’d like some further pointer.

    Thanks!

    Hi! Wow, this looks complicated. I’ll first stop on changing only number of posts.

    Thanx

    Hi Veronika,

    The amount/complexity of code required depends on the specific customisations you’re trying to make to that button. If you could clarify your end goal then I could point you in the right direction, though some comfort with HTML and CSS may be required on your part.

    You could also enable Jetpack’s infinite scroll but that would require you to remove your footer widgets.

    Hi, Siobhan!
    My idea is to help people navigating my posts. I want to have 5-6 posts on the main page (I fix it). Than I want to have paginator on the main page: “previous-5-4-3-2-1”-etc. So that if someone remembers that post he needs was on the 3rd page, he can just press it.

    So this paginator is not for post content, but for the main page and list of posts.

    Thank you for clarifying, Veronika!

    That style of numbered pagination would indeed require setting up a child theme and some fairly advanced HTML/PHP. You can find an overview of the sort of code required to create numbered pagination here:

    https://codex.wordpress.org/Pagination#Numbered_Pagination

    Moderator Kathryn Presner

    (@zoonini)

    Automattic Happiness Engineer

    You might also be able to use a plugin to get you part of the way there. I don’t have a specific one to recommend — and you may still need to create a child theme to add the code to implement it — but it might be easier than starting from scratch. There are some pagination plugins you could try experimenting with here:

    https://wordpress.org/plugins/search.php?q=paginate+posts

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pages at mainpage’ is closed to new replies.