• Resolved freshifreshy

    (@freshifreshy)


    I need to get the parameters ‘offset’ and ‘cat’ from a URL that looks like this:

    /?page_id=87/?offset=3&cat=2

    With a custom permalink structure, I could just use $_GET[‘offset’] to retrieve the value, but this doesn’t work with the default permalink structure.

    I’d like to achieve this without the use of plugins.

    Any guidance would be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Your URL looks malformed to me. Shouldn’t it be /?page_id=87&offset=3&cat=2

    I imagine your $_GET[‘offset’] will work after you fix that.

    Thread Starter freshifreshy

    (@freshifreshy)

    Doh, you’re right. Thanks for pointing that out. Works now!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘URL Parameter Help!’ is closed to new replies.