WordPress.org

Ready to get started?Download WordPress

Forums

Latest sticky post on homepage (2 posts)

  1. Weboxeur
    Member
    Posted 2 years ago #

    Hello,

    I'm looking to show on my wp homepage: the latest sticky post (exclude old ones and keep the latest every time) + normal posts

    Could anyone help me with that or tell me from where I can start ?

    Thank you & have a nice day !

  2. Weboxeur
    Member
    Posted 2 years ago #

    Sorry.

    I'm using custom post format (aside for sticky posts), here's my wp loop :

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.