Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 8 posts - 1 through 8 (of 8 total)

Change the number of PAGES posted on the front page

Home Forums Free Theme Support Asteria Lite Change the number of PAGES posted on the front page

  • #444714

    Claire

    Hello
    I’m usine the theme Asteria on this website : http://www.pancartes-de-la-honte-pour-chats.com/

    you will see after the front posts, at the end, before the adsence add and the footer, the number of pages with all my others posts (19 actually). I would like to limit this number, for example have only the 15 latest pages : I tried to find where I could change something but no result… That’s why I’m writting here to have some answer
    Thank you 🙂
    Claire

    #446025

    Towfiq I.

    administrator

    Go to Settings> Reading set posts per page to 15

    Thanks

    #447779

    Claire

    Same answer that before, you didn’t understand what I need. It’s not the number of posts but the number of PAGES (cf title ….) on the front page. Go under the posts and before the footer, look, now it’s 22 it’s too much.
    Thank you for your respons.

    #447796

    Claire

    I’m thinking about changing something here, but i’m not sure and i’m not a pro in code …

    <!–Latest Posts–>
    <?php if ( asteria_is_mobile() && (!empty($asteria[‘hide_mob_frontposts’])) ) { ?>
    <?php }else{ ?>
    <?php get_template_part(‘layout’.$asteria[‘front_layout_id’].”); ?>
    <?php } ?>
    <!–Latest Posts END–>

    And there are two layout : 1 and 4 so I don’t know where to change something …
    <!–PAGINATION START–>
    <div class=”ast_pagenav”>
    <?php
    global $wp_query;
    $big = 999999999; // need an unlikely integer
    echo paginate_links( array(
    ‘base’ => str_replace( $big, ‘%#%’, esc_url( get_pagenum_link( $big ) ) ),
    ‘format’ => ‘?paged=%#%’,
    ‘current’ => max( 1, get_query_var(‘paged’) ),
    ‘total’ => $wp_query->max_num_pages,
    ‘show_all’ => true,
    ‘prev_next’ => false

    ) );
    ?>
    </div>
    <!–PAGINATION END–>

    #448293

    Towfiq I.

    administrator

    I understand perfectly. You want to limit the posts on frontpage. If you havent set any category for frontpage posts from Asteria Options >Frontpage Posts you will have to change the number of posts from Settings> Reading. If you have, you will need to set the number of posts from Asteria Options> frontpage Posts.

    Thanks

    #448660

    claire

    Hey Thank you for your answer but i don’t want to limite the number of posts (posts means articles in french no ?) but the number of PAGES indicated at the end of the web site…. posts is different from pages ! It’s the number of page i want to limited, , did you look at the end of my front page ?? There are 23 pages it’s too much and I insist on the word page and not post…
    Please, I m sur you don’t understand what I want because I decided to have 12 posts on my front page and it’s ok but i want to change the number of pages below !
    Thanks and sorry to insist but I can’t find anything about it

    #449790

    Towfiq I.

    administrator

    the number of pages depend on the number of posts you have and the number of posts you want to display per page. for example: if you have 120 page and you want to display 10 posts per page, you will see 12 page links under your posts. So if you want to reduce the number of pages you must increase the number of posts per page from Settings> Reading.

    Thanks

    #450177

    Claire

    Hello
    Thanks again for your answer, I thank it was possible to reduce the number of pages without increase the number of posts, to bad, but now I have my respons, thanks a lot
    Claire

You must be logged in to reply to this topic.