[resolved] Passing arguments when all plugin files are in one directory (4 posts)

  1. Ian Dunn
    Posted 10 years ago #

    I've put all my plugin files in one directory (e.g., "/wp-content/plugins/my-plugin") and can have the files link to each other by doing something like

    <a href="post.php?page=/my-plugin/scriptA.php">link

    That works fine, but if I want to attach some arguments like this

    <a href="post.php?page=/my-plugin/scriptA.php?id=38&action=delete">link

    I get a blank page with the error: "Cannot load /my-plugin/scriptA.php?id=38."

    I've tried using the HTML entities in the link instead of just a ? and &, but that didn't change anything.

  2. Chris_K
    Posted 10 years ago #

    If you edit that and put backticks (`) on each end of the code fragments we'll probably have a better idea of what's in your post. :-)

  3. Don't use the second question mark. Change it to an ampersand.

  4. Ian Dunn
    Posted 10 years ago #

    Ah, sheesh, that's it. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.