There are two options:
// If the current page is the blog posts index,
// but is NOT the site front page
if ( is_home() && ! is_front_page() )
or
// If the current page has the ID of the
// page assigned to display the blog posts index
if ( is_page( get_option( 'page_for_posts' ) )
Related Posts:
- simply loop through posts
- Difference between an archive and a page listing posts
- Post preview mechanism architecture
- WordPress Queue like Tumblr?
- WP-CLI Bulk delete posts from specific category
- Update all posts automatically when using post_meta
- Moving WordPress to new server: no posts found
- Post ids are incrementing by an unknown number?
- the_post_navigation seems to ignore same category filter
- How to avoid duplicate posts on front page?
- Can’t show comments count per post outside loop
- Get current users post URL?
- Redirect based on user post count
- Append Text to $post->post_excerpt
- Custom fields on a virtual page
- Create post using JSON api plugin
- Are posts updated or built from revisions + autosaves?
- Get permalink of post that an attachment is linked to
- Adding footers to posts?
- Display post from specific date
- Filter Custom Post Type by Category with Ajax
- SQL query to retrieve all the records that have not indicated category
- Preserve term order per post in a non-hierarchical taxonomy
- open selected wordpress post with javascript
- do_shortcode within post query
- How to change the setting so there is no post on home page
- How should I add links to other pages/posts from my post?
- Unautop / Sanitize content added to a post through a plugin
- WordPress programatically inserted post not showing in authors profile
- WP Remote Request not returning all of content via request
- Update all comments time to random dates?
- How can I get global $post to work for CPT and update user?
- How to copy posts from one site to another in real time (not multisite)
- Unable to restore from backup – how to obtain old blog posts?
- Show only one page link in content pagination
- Include sticky posts on the static page front page
- Get attachments for posts that belongs to a specific category
- why are images not full size?
- How can I setup a relationship using categories in WordPress?
- hiding permalink in admin if the user is subscriber
- Exclude current custom post on single post
- How to make default “Privacy Policy Page” a normal page?
- Changing default WP-Site creation date
- In post.php how can I remove onbeforeunload?
- Query posts and filter at query time by value of custom meta
- Very complex post query
- Delete post revisions only for a single post
- Echo Text If User Is Logged in But NOT the Author of post
- wp_set_object_terms NOT working on CPT, but wp_set_post_terms does
- Update post meta within save_post action
- Auto delete posts based on content text
- Count the number of a post types associated with another post type
- How do post IDs work in WordPress?
- Where to insert the other site image url for our wordpress post
- Get Users Post ID
- add_rewrite_rule and template redirect not working
- adding my posts (author posts) in menu
- How to separate each individual blog post?
- Automate post update for all posts?
- Allowing Users to Register Themselves and Post : Does WordPerss Handle these Problems?
- ACF date picker to trigger category change
- DEL media from the post but keep my featured image or post
- wordpress admin missing Posts button
- Set post title font size automatically according to number of words in post title
- wp_trash_post() duplicates post to trash
- How to backup WP blog posts to computer, not new site
- How can I use query_posts to loop through posts and construct my own content?
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- Create Posts from API response without duplicates
- I want to change the WordPress comments file
- How to make an image appear as a thumbnail in the blog post?
- How can i take all ids from untrash_post action?
- Can I Paginate Post after every 25 tag?
- How to show posts ordered by random [duplicate]
- Not display post meta if empty
- Query posts from newest category
- Trim excerpt to first paragraph
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Adding div to WordPress page content
- WordPress loop uses unmodified posts array, why?
- Create new post on user registration
- Ajax – Post Categories and Load More
- Skip posts, but keep posts per page
- How to organise post by category and date
- Show post if in category
- How to display custom content in post with category XXX
- how to add a facebook page latest posts into my wordpress site
- How to include Related Posts in WP RSS feed
- Display only posts with comments
- retrieve post slug by post_tags taxonomy
- Display ONLY Latest Post From Several Categories
- Hide the contents for specific post
- how to show all type of author posts in author page (SOLVED)
- WordPress Page Column Problem [closed]
- If meta_key exists then don’t select this post?
- Hindi content automatically converting to unreadable language?
- I can’t edit my posts
- How can I add a custom caclulation form in post?
- Displaying all images from a WordPress post (including media library)
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link