As popularity of WordPress is growing really fast, we’ve published a new simplified tutorial on how to integrate PHP Grid Framework with WordPress Sites. It allows using all features of our Data Grid inside WordPress and much simpler than previous implementations. Steps required to integrate are following:
and inside this folder the contents should be:
Step3: Goto admin panel and click Add Snippet as in image. Add any title you like and in code section, copy paste this Sample Snippet Grid Code in code section shown below:
Step4: In this code, we have created a shortcode here with name: [phpgrid-users] so we will now place it on page where we want to show our Datagrid.
Result: Now Save the page and open / preview it, you will get the datagrid.
Adding Grid in WordPress Admin Area:
Following steps will be required to make shortcode available in admin area – plugin development.
Step1: Add admin_init hook along with template_redirect.
Step2: Select ‘Run Snippet everywhere’ after snippet code block.
Step3: Call do_shortcode() function where you want to show datagrid.
Next Actions: You can create more snippets a (step3) by copying code from package demos and assign new unique shortcode for each grid which can be placed on your page/post of WordPress.
- Download Free version (for evaluation or non-commercial use – limited features)
- Buy Full Featured version License
- Upgrade your existing version to v2.6.2
Active License Subscription customers can get free upgrade using this link.
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!