• I’ve written a plugin which display dynamic content onto post and page by detecting tags in the content. I then use use add_filter() for ‘query_vars’ to add custom URL parameters to allow changing the dynamic content as per visitors needs.

    The page/post works perfectly when linked to from anyway else. But the custom URL parameters fail when I put that page as Front Page.

    Say my static page is at -> https://www.example.com/wordpress/mypage/
    added custom query -> https://www.example.com/wordpress/mypage/?custom=x

    Now with that page set to Front Page, it became
    -> https://www.example.com/wordpress/ (works well)
    and ->www.example.com/wordpress/?custom=x (will show the lastest post instead of the static page)

    Any idea?

Viewing 1 replies (of 1 total)
  • Thread Starter faulty

    (@faulty)

    I notice that if I comment out this line,
    add_filter('query_vars', 'parameter_queryvars' );

    It will show the front page properly. So I ended up accessing $_GET directly for the sorting query

Viewing 1 replies (of 1 total)
  • The topic ‘Custom URL Parameter fail when using Static Page as Front Page’ is closed to new replies.