Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 889
  • Last Modified:

not passing parameters in custom permalinks.

Hello,

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
0
koop1koop
Asked:
koop1koop
  • 2
1 Solution
 
BardobraveCommented:
Seems like some type of problem within the component? Have you tried to contact their support center?
0
 
jrm213jrm213Commented:
Hi,

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:
http://wordpress.org/support/topic/passing-variables-using-the-permalink-structure

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.
0
 
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
http://www.kombitz.com/2012/06/29/wordpress-3-4-page-variable-in-query-string
0
 
koop1koopAuthor Commented:
Found the problem
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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