Viewing 1 to 2 of 2 items
Tag Archives: ID

Get Post ID outside the Loop as PHP variable

In the wordpress loop section, each posts displayed on the page with defined format along with such criteria decided by administrator. The Loop template tag the_ID can be used to easily display the post’s ID inside the post. Alternatively, inside the the_content filter, declare $id global and use $id to retrieve the post ID. the_ID  Full Article…

0