• Hello all,

    sorry for asking a question which is solved anywhere, perhaps. As far as i have read, i have not found a solution for this question, even though it is a newbie’s one …, but it was just impossible to nav for it in the 7k+ pages jungle.

    Nowadays, though i’m a newbie in wp and php (other programming experience instead), i’m trying to program a new theme proyect from scratch, and i believe it is both defiant and interesting!!

    The thing is i need the page name in a string (if possible), say, $actual_page = “photos”, in a very natural, simple and elegant way, instead of a 17 if structure using is_page(‘photos’ {or other arguments}).

    Another thing i need is to get dinamically the page adress, so that i can override the permalink-page ID bond in this way:

    “get_page_adress(‘photos’)” = “https:// … .?p=22”

    where, of course, the “get_page_adress ()” is a silly way to refer to an unknown function i need.

    Thank you very much in advance.

  • The topic ‘How-to get page name and page adress’ is closed to new replies.