Horje
Banner for Postmash Custom
Customize display order of posts by a simple drag-and-drop Ajax interface, now with support for custom post types and custom taxonomies. Wordpress Tutorial
Noted That:
  • To install correctly this postmash-custom.zip .
  • Fisrt Download the postmash-custom.zip to your computer
  • Extract/Open postmash-custom.zip to Your Computer.
  • Then, Find readme.txt file inside postmash-custom.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 " postmash-custom.zip " to Your Local Computer.

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

Login to Wordpress Postmash Custom

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

Go to Plugin Install Postmash Custom

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

Click Upload Button Postmash Custom

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

Upload Plugin Postmash Custom

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

Activate Postmash Custom

Step-7 : Then, See left Side Menu. " Postmash Custom " folder is added on left Side Menu. Now, Click on " Postmash Custom " folder.

Noted that: If you do not see " Postmash Custom " 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 Postmash Custom Configurations and Settings or How to work " Postmash Custom " 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 " PostMash Custom – custom post order " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is PostMash Custom – custom post order
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Upload to wp-content/plugins/ and activate.

To make use of this chosen order you will need to modify your template code:
Open wp-content/themes/your-theme-name/index.php and find the beginning of ‘the loop’. Which will start: if(have_posts()) . Then add the following code directly before this:



set('orderby', 'menu_order'); $wp_query->
set('order', 'ASC'); $wp_query->
get_posts();
?>

This just tells WP to get the posts ordered according to their ‘menu_order’ position. Therefore you can get the posts ordered anytime you use a function such as get_posts simply by giving it the required arguments:




Checkout the get_posts() function in the wordpress codex for more info.
Note that it says menu_order is only useful for pages, posts have a menu_order position too, it just isn’t used. postMash provides you with an interface so that you can use it.

Instructions for Twenty Ten

Things may seem a bit different in Twenty Ten, since the loop has been moved from the individual templatefiles into loop.php, but actually it still works almost exactly the same. Below is the entire code you need for Twenty Tens index.php:



 
set('orderby', 'menu_order'); $wp_query-> set('order', 'ASC'); $wp_query-> get_posts(); ?>

NEXT POST AND PREVIOUS POST LINKS

ALSO You can now use the ‘Next Post’ and ‘Previous Post’ calls in your template file ‘single.php’, as usual, but rather than calling items by date, it will call items using the same order as set in postMash, using the following modified commands in place of the regular tags


ORIGINAL TAGS next_post_link(); previous_post_link();
MODIFIED TAGS next_post_link_menu(); previous_post_link_menu();

(Please note that, by default, ‘In Same Category’ is set to TRUE. You will need to edit this if you wish to disable it. All other variables passed to the function should work as normal)

OPTIONAL ADMIN INSTALLATION

If you wish to view the posts in the WordPress admin ‘Edit Posts’ panel in the same order as you have set them postMash (rather than the default ‘Date Published’ or ‘Date Modified’), you can modify wp-admin/includes/post.php, on line 784 as follows;


ORIGINAL if ( isset($q['post_status']) && 'pending' === $q['post_status'] ) { $order = 'ASC'; $orderby = 'modified'; } elseif ( isset($q['post_status']) && 'draft' === $q['post_status'] ) { $order = 'DESC'; $orderby = 'modified'; } else { $order = 'DESC'; $orderby = 'date'; }
MODIFIED if ( isset($q['post_status']) && 'pending' === $q['post_status'] ) { $order = 'ASC'; $orderby = 'menu_order'; } elseif ( isset($q['post_status']) && 'draft' === $q['post_status'] ) { $order = 'ASC'; $orderby = 'menu_order'; } else { $order = 'ASC'; $orderby = 'menu_order'; }

Name

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