[wp-trac] [WordPress Trac] #28243: If a static page is used as the "Posts page", the page's metadata is not availible
WordPress Trac
noreply at wordpress.org
Wed May 14 16:35:49 UTC 2014
#28243: If a static page is used as the "Posts page", the page's metadata is not
availible
--------------------------+------------------------------
Reporter: Kelderic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0
Severity: normal | Resolution:
Keywords: close | Focuses: template
--------------------------+------------------------------
Changes (by helen):
* keywords: => close
Comment:
Give `get_queried_object_id()` a shot. In general you'll have a better
time with that than `global $post`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28243#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list