WordPress.org

Ready to get started?Download WordPress

Forums

Path
[resolved] Show sticky post in flow (7 posts)

  1. rpeters78
    Member
    Posted 1 year ago #

    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/

  2. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

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

  3. rpeters78
    Member
    Posted 1 year ago #

    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.

  4. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    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

  5. rpeters78
    Member
    Posted 1 year ago #

    Thank you, this is working like a charm!!

  6. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    vhild theme functions.php

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

  7. rpeters78
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.