Theme Support Forum

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

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

Zenon Pro Blog page – accessing older posts

Home Forums Misc. General Forums Zenon Pro Blog page – accessing older posts

  • #12396

    colin

    subscriber

    Is there a way to include an “older posts” button or similar feature?

    My blog: http://headlamppictures.com/blog displays the most recent 10 posts only.

    #17129

    Towfiq I.

    administrator

    Go to Appearance> Editor and select “page-blog.php” from right and find these lines:

    <?php $loop = new WP_Query( array( 'cat' => ''.$zn_blog = of_get_option('blog_cat').'' ) ); ?>

    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

    and replace it with:

    <?php
    $args = array(
    'cat' => ''.$zn_blog = of_get_option('blog_cat').'',
    'post_type' => 'post',
    'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
    );

    query_posts($args);

    while (have_posts()) : the_post();?>

    #17130

    colin

    subscriber

    Thanks. That successfully created a nifty navigation bar at the bottom of the page, but the buttons fail to call up any other post/pages. Do I need to configure an archive somehow?

    #17131

    Towfiq I.

    administrator

    hmm… go to Zenon Options and disable “Ajax pagination”

    #17132

    colin

    subscriber

    Ha, Ha! Genius! Thank You. I was busy looking at query reset: http://bloggingsquared.com/qa/solution-wordpress-pagination-stays-on-same-page/

    #523370

    Dag

    Hello!
    We are working at carolinagardheim.temp-url.se.
    And we have created a category called blogg.
    We have created posts assigned to the category blogg.

    When we click to view the category it says 404.

    Any ideas why the theme does not allow us to show this?

    We have installed Visual Composer.

    Thanks
    Dag