How to pass custom URL arguments (2 posts)

  1. FlannelShirtMonster
    Posted 10 years ago #


    I am working in WordPress, and I want to be able to include certain arguments in the URL to interact with the PHP code in the theme templates. I thought I was going crazy, because simple php if statments wouldn't work at all. I then tried loading the code I was trying to execute directly, and it worked. WordPress was filtering arguments that it didn't recognize (for security, obviously).

    I was wondering how I'd overcome that so that I can pass my own custom arguments through WordPress to code in the theme. Any help would be greatly appreciated.

  2. FlannelShirtMonster
    Posted 10 years ago #

    If I didn't make it clear, I'm trying to pass arguments using the http://url/?variable=value form. Can anyone help me out?

Topic Closed

This topic has been closed to new replies.

About this Topic