WordPress.org

Forums

How to add excerpts of my posts in my side bar (3 posts)

  1. vince_
    Member
    Posted 2 years ago #

    Hi,

    I'm creating a theme from the scratch and I need to display the 3 last excerpts of my posts in my sidebar and this only for the pages of my site.

    What is the code I have to add in my sidebar file ? Is there a way to detect that the page displayed is a "page" and not a "post".

    Thank you a lot

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic