• Well, its self explantary. I have a page id. How can I get the title/name of the page from this.
    Thanks, Josh

Viewing 1 replies (of 1 total)
  • Thread Starter jezternz

    (@jezternz)

    Well I eventually Worked out a way myself.
    With a pageid this will give you the page name surrounded with the link to the page.

    $pagename = strstr((wp_list_pages("include=".$pageid."&title_li=&echo=0")), '<a');
    $pagename = substr($pagename, 0, (strlen($pagename) - 6));
    echo $pagename;
Viewing 1 replies (of 1 total)
  • The topic ‘How to Get a Page Name from a Page id.’ is closed to new replies.