How can I make a banner only appear on the index page of my wordpress theme but when the click to the second or any other page from the pagination of recent posts I do not want this to appear. Any suggestions?
Thanks
How can I make a banner only appear on the index page of my wordpress theme but when the click to the second or any other page from the pagination of recent posts I do not want this to appear. Any suggestions?
Thanks
You can use the conditional is_paged()
if( !is_paged() ) {
// Show what you wanna show
}
It's only going to show on the first page, on page 2, 3, 4... it's not going to show.