Support » Fixing WordPress » Get Page Via Page Slug

  • I could have sworn there was a way to do this, is there? FYI, this is programming question. I would like to redirect to a page, given it’s page slug. Possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sure, but I don’t get what exactly you want to do. Is this .htaccess related?

    No, it’s not. This is what I would like. I’m just checking to see if it exists, if not, I’ll write the function.


    So, given a page slug, I can get the page id.

    Nevermind, I figured out a better way to do what I want.

    For reference, though, I think this would be a good function to have.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get Page Via Page Slug’ is closed to new replies.