pagination – Show content only on front page? – WordPress Development Stack Exchange

To show a slider or other content only on home page (that shows latest blog posts) use the code below. This will prevent the slider from showing on other pages in pagination.

<?php if(is_home() && !is_paged()) { ?> 

via pagination – Show content only on front page? – WordPress Development Stack Exchange.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.