WordPress.org

Ready to get started?Download WordPress

Forums

How to remove query strings (6 posts)

  1. charlietech
    Member
    Posted 1 year ago #

    I tried to use this code but its not working. What am I doing wrong or give someone give me a difference code?

    function remove_querystring_var($url, $key) {
    $url = preg_replace(‘/(.*)(\?|&)’ . $key . ‘=[^&]+?(&)(.*)/i’, ‘$1$2$4′, $url . ‘&’);
    $url = substr($url, 0, -1);
    return ($url);
    }

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Is this not resolved in your many posts about this?

  3. charlietech
    Member
    Posted 1 year ago #

    Im still posting so I guess not. The codes isnt working. I put this code in and its not working so could you provide another method or help fix this code. I put it in my function.php file and nothing happen

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    This exact issue has been posted somehow several times here...summer is over here - we will catch up

  5. charlietech
    Member
    Posted 1 year ago #

    I read them and no results, why did you even come and post anything? waste of time. You can keep comments to yourself. I didnt post to hear nothing but some good advise for the question I post. not you talking about we'll catch up.

  6. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    I have resolved very many issues here. I choose to do this as a voluntary member here. I do not have to wait and watch a lack of moderation at this forum. Please actually review the time it would take to provide this help, be thankful, and instead of re-posting the same issue that is NOT understood, ask for more help...Thank you.

    [ Links to website and profile moderated. The links are already in your sidebar ]

Topic Closed

This topic has been closed to new replies.

About this Topic