In WordPress settings you can set a page as the Posts Page
. This can be found:
WP-Admin->Settings->Reading Settings->Front page displays
How do I retrieve the page ID that is set in this setting?
In WordPress settings you can set a page as the Posts Page
. This can be found:
WP-Admin->Settings->Reading Settings->Front page displays
How do I retrieve the page ID that is set in this setting?
You must be logged in to post a comment.
Use the
page_for_posts
option:This will return the ID of the Page assigned to display the Blog Posts Index.