As popularity of WordPress is growing really fast, we’ve published a new simplified tutorial on how to integrate Grid 4 PHP 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:
Updated 20-Oct-2020: New revised tutorial support data-grid custom event handlers as well.
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 & admin_footer hook along with others.
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.