WordPress.org

Support

Support » Themes and Templates » How to add excerpts of my posts in my side bar

How to add excerpts of my posts in my side bar

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add excerpts of my posts in my side bar’ is closed to new replies.
Skip to toolbar