Horje
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:

1. First Download " gnarly-frontend-page-sorter.zip " Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Gnarly Frontend Page Sort " folder is added on left sidemenu. Now, Click on " Gnarly Frontend Page Sort " folder.

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

8. Now you configure yourself oR Watch video tutorial below about  Gnarly Frontend Page Sort Configurtions and Settings or How to work " Gnarly Frontend Page Sort " 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

pages , drag , drop , sorting , front , site , great , sites , getpages , list ,

Name

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