Support » Theme: Zenon Lite » limited Featured Image on home

  • Resolved stinnie

    (@stinnie)


    hi!
    First at all: thanks for this great theme!
    The “enable the posts under the blocks on homepage” is activated. Is there a possibility to show only three posts and not all?

    Thank You,
    stinnie

Viewing 15 replies - 1 through 15 (of 15 total)
  • anallabres

    (@anallabres)

    Hi!

    Same here! Didi you manage to do it?

    Many thanks.

    Ana

    stinnie

    (@stinnie)

    hi ana

    no sorry i`ve still no solution for this.
    tine

    anallabres

    (@anallabres)

    I’ve managed to do it!

    Just by adding this:
    <?php query_posts('showposts=3'); ?>

    on layout1.php just above <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>

    Althought just found out it also affects the category pages.

    Hope it helps.

    stinnie

    (@stinnie)

    right – this I`ve tried aswell. I need all Posts on the category page, so this is no solution for me.
    Ive now the upgrade theme, but theres the same.

    tine

    Theme Author Towfiq I.

    (@tislam100)

    Add this in your layout1.php file:

    <?php if(is_front_page()) {
    	 $args = array(
    				   'posts_per_page' => '3');
    	query_posts($args);
    } ?>

    before this line:

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

    stinnie

    (@stinnie)

    THANKS, Towfliq!!

    now it works! I don`t wanted the pagination, so I delete

    <?php if (function_exists(“znn_paginate”)) {znn_paginate();} ?>
    <div class=”hidden_nav”><?php paginate_links(); ?></div>

    in layout1.php

    now it`s perfect.

    thanks a lot!
    A great theme!
    tine

    Theme Author Towfiq I.

    (@tislam100)

    marking this as resolved! 🙂

    anallabres

    (@anallabres)

    Many thanks!!

    Although the pagination is not working. The page 2 stays loading and never does.

    http://anallabres.com/thecafeonthecorner/

    Theme Author Towfiq I.

    (@tislam100)

    disable the “ajax pagination” option from the theme options page.

    anallabres

    (@anallabres)

    Thanks. Done that and an error 404 page appears…

    Theme Author Towfiq I.

    (@tislam100)

    could you replace this:

    <?php if(is_front_page()) {
    	 $args = array(
    				   'posts_per_page' => '3');
    	query_posts($args);
    } ?>

    with:

    <?php if(is_front_page()) {
    	 $args = array(
    				   'posts_per_page' => '3',
    'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1));
    	query_posts($args);
    } ?>
    anallabres

    (@anallabres)

    Hi Towfiq,

    Thanks for that but still not working 🙁 error 404

    Theme Author Towfiq I.

    (@tislam100)

    can you go to settings> Reading and select 3 posts per page and see if that fixes it?

    anallabres

    (@anallabres)

    It does!! Thanks a lot!! You’re brilliant.

    Theme Author Towfiq I.

    (@tislam100)

    the issue is not resolved actually, because now the category page is also displaying 3 posts, right?

    a wordpress theme reviewer once told me its a core wordpress issue. I am not sure what it is.

    http://wordpress.org/support/topic/explanation-and-workaround-for-error-404-on-category-pagination?replies=1

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘limited Featured Image on home’ is closed to new replies.