JamesThePanda Posted January 13, 2010 Share Posted January 13, 2010 Hi I need some help I want to know how I would get a page ID for a wordpress page. Bassically Im writing some code so it will echo the page/post id of a page that a user is surfing on. so at the bottom of the post it will be this ia a wordpress page and the its ID is 'X' Just need some help on finding out what the id is. Thanks James Quote Link to comment https://forums.phpfreaks.com/topic/188313-gettting-wordpress-page-id/ Share on other sites More sharing options...
PHP Monkeh Posted January 13, 2010 Share Posted January 13, 2010 I'm surprised why you came to a PHP forum, rather than the WordPress site http://codex.wordpress.org/ has all the answers. If you're "in the loop" I think the code is the_ID() to get the post/page ID Quote Link to comment https://forums.phpfreaks.com/topic/188313-gettting-wordpress-page-id/#findComment-994264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.