• 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?

    Thread Starter thejoker101

    (@thejoker101)

    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.

    get_page_id($page-slug);

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

    Thread Starter thejoker101

    (@thejoker101)

    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.