WordPress.org

Support

Support » Plugins and Hacks » Page ID with permalinks

Page ID with permalinks

  • Hi there!

    I have a simple question about getting page ID inside plugin.
    I saw a variable $page_id is global and without permalink it contains correct page ID. But when I try to use this variable in case using permalink it’s empty.

    So, my question is how to possible get page/post ID if permalink is used.

    Thanks in advanced,

    Michael.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page ID with permalinks’ is closed to new replies.
Skip to toolbar