WordPress.org

Ready to get started?Download WordPress

Forums

Ascetica
[resolved] When using static page, blog page not working (3 posts)

  1. rachellucie
    Member
    Posted 1 year ago #

    Hi there,

    I have just updated to the new 0.3.1 version of the theme, and am using a child theme for it.

    I have created a static page called 'welcome!' and a blog page called 'blog' and in settings/reading have set the front page to 'welcome!' and the post page to 'blog' as directed elsewhere here. However when this theme is installed, the blog page only shows one post. When changed to a default theme, there is the list of blog posts. I have been advised that this is therefore a theme issue.

    Can this be fixed, what is the fix?

    Thanks :)

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    The home.php which is a template used for Blog Home page has this in it.

    <?php query_posts( array( 'post__not_in' => get_option( 'sticky_posts' ), 'paged' => get_query_var( 'paged' ) ) ); ?>

    So, any posts marked as sticky will not be shown in the main loop. Could it be that most of your posts had been marked as sticky from the usage of previously used theme ?

  3. rachellucie
    Member
    Posted 1 year ago #

    Hi paulwpxp,

    yes, thanks Paul, this solved it :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic