• Resolved rpeters78

    (@rpeters78)


    Great theme, thanks a lot!!
    I done some changes to have a staitc home page with the slider and a news page without the slider (the normal home page).

    I’ve 1 problem with this news page it only shows static posts. But cannot find where this done. The template of this page is the unchanged index.php of the theme. In a child theme I just used the remove_action( ‘wp_enqueue_scripts’, ‘path_scripts’ ); in my child theme.

    http://friendsforlife2013.nl/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Sami Keijonen

    (@samikeijonen)

    Can you give me more details. What are you trying to do exactly and in what way?

    Thread Starter rpeters78

    (@rpeters78)

    If you go to the page http://friendsforlife2013.nl/nieuws/ (this is the normal home page where all posts are showing, but I deleted the slider from this page)

    The problem I face is that only the ‘normal’ posts are appearing here and not the sticky ones.
    It just uses the index.php with a normal loop
    <?php while ( have_posts() ) : the_post(); ?>

    b.t.w. this also happen on the theme as it is.

    But I cannot find where it says not to add the sticky posts. I thought that normally all posts are taken.

    Theme Author Sami Keijonen

    (@samikeijonen)

    I’m not on my computer right now, but try this in vhild theme functions.php

    remove_action( 'pre_get_posts', 'path_exclude_sticky' );

    https://github.com/samikeijonen/path/blob/master/functions.php#L126

    Thread Starter rpeters78

    (@rpeters78)

    Thank you, this is working like a charm!!

    Theme Author Sami Keijonen

    (@samikeijonen)

    vhild theme functions.php

    I meant to write child theme functions.php inside setup function.

    Thread Starter rpeters78

    (@rpeters78)

    I thought so.
    Thanks for the answer, it’s working really nice.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show sticky post in flow’ is closed to new replies.