• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

not passing parameters in custom permalinks.


I have a datagrid that I am trying to integrate with WordPress with little success.
I have downloaded it from http://phpgrid.wordpress.com/ and have the full paid version.

The problem I have is that when I create a template for WordPress and use it on my homepage I can see the datagrid with the data filled in, when I use the same template on another page there is no data in the datagrid

If i change the permalinks to default it works on all pages but when the permalinks are set to Post name then it only works on the homepage.

I have included the jqgrid_dist.php with its full path, i dont see any errors on the page to suggest it is not seeing the included script, if I change the include location to one I know is not there the I do get an error saying unable to locate the file.

Can anyone suggest a way I can get this to work with the permalinks set to Post name.

Please let em know if you need any more info
  • 2
1 Solution
Seems like some type of problem within the component? Have you tried to contact their support center?

sounds like your script is using url parameters and wordpress doesn't like that because there really is no file at the location you are going to, everything is handled by index.php, it decides what do display based on the url. In the case of the homepage, it is actually using index.php in it's actual location, I believe that is why it works on your homepage.

Check out these options:

I am guessing the 2nd example is what you would need and that you would need to add in multiple possible values to the plugin.
koop1koopAuthor Commented:
So this is what had to happen!

// fix for wordpress 3.4+ (auto replace 'page' variable in url]
$url_arr = explode("/",$_SERVER["REQUEST_URI"]);
if (is_numeric($url_arr[count($url_arr)-2]))
$_GET["page"] = $url_arr[count($url_arr)-2];

you can see more about it here
koop1koopAuthor Commented:
Found the problem
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now