Horje
Banner for Gnarly Frontend Page Sorter
Drag & Drop sorting of pages on the front end of your wordpress site. Great for sites that use get_pages to list sub pages of a parent page. Wordpress Tutorial
Noted That:
  • To install correctly this gnarly-frontend-page-sorter.zip .
  • Fisrt Download the gnarly-frontend-page-sorter.zip to your computer
  • Extract/Open gnarly-frontend-page-sorter.zip to Your Computer.
  • Then, Find readme.txt file inside gnarly-frontend-page-sorter.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " gnarly-frontend-page-sorter.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Gnarly Frontend Page Sorter

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Gnarly Frontend Page Sorter

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Gnarly Frontend Page Sorter

Step-5 : Now, Browse " gnarly-frontend-page-sorter.zip " Downloaded plugin from your computer, Where you downloaded " gnarly-frontend-page-sorter.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Gnarly Frontend Page Sorter

Step-6 : Now, Click on " Active Plugin "

Activate Gnarly Frontend Page Sorter

Step-7 : Then, See left Side Menu. " Gnarly Frontend Page Sorter " folder is added on left Side Menu. Now, Click on " Gnarly Frontend Page Sorter " folder.

Noted that: If you do not see " Gnarly Frontend Page Sorter " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Gnarly Frontend Page Sorter Configurations and Settings or How to work " Gnarly Frontend Page Sorter " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Gnarly Frontend Page Sort " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Gnarly Frontend Page Sort
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

This is the code I used to list the child pages on a parent page. I changed the sort_column to menu_order instead of the default post_title, and the sort_order is asc.



 0, 'child_of' =>
 0, 'parent' =>
 $post->
ID, 'number' =>
 '', 'sort_order' =>
 'asc', 'sort_column' =>
 'menu_order' ); $child_pages = get_pages( $args );
?>

With the Child pages, I then created a custom loop (an example will be included later on in a separate file. I made 2 functions to spit out the pages of the parent page). From there I can add the gnarly tags to the parent container and the child items.

When you install the plugin, just find the template that controls your pages loop and make the following modifications. This example uses Twenty-Fourteen as an example.


Your Page Title

Your Page Title

Your Page Title

Your Page Title

Notice the following code


The data-gnarly-sort=’true’ attribute tag. This tells the plug-in that it is the parent element of the sorter.

On each of the pages that get spit out, you must include the data-gnarly-id=”58? in order to tell the sorter that it is a page item that will be drag and drop sorted using the page ID. This attribute is important because it tells wordpress what position it’s in when you drag and drop each element by using the page ID. You can echo out the page ID by using the following PHP pre in the loop.


Minimum Requirements

  • WordPress 3.9 or greater
  • PHP version 5.2.4 or greater
  • MySQL version 5.0 or greater

Name

Read Article
https://develop.horje.com/learn/1434/reference