Home > By category > Scripts >Modules > Sort Query Posts



Sort Query Posts

  • Downloads: 
  • Views: 
  • Rating:

A really simple and lightweight plugin (78 lines of code - comments included) to sort posts on-the-fly without making a new query to the database (improves performance).
Features:

* Supports all order_by and order values of the query_posts function except meta_value and meta_value_num (which require a database query).
* Supports changing the order of all types of posts, including custom post type posts and custom post type "archive" posts.

Documentation

This plugin adds the function sort_query_posts_by(string $order_by [, string $order]) to the global context. The second $order parameter is optional. Its default value is asc (ascending order).

Call this function after any wordpress query to change how posts are ordered. After calling this function you can show the posts as you normally would.

This is specially useful in two cases:

* When you need to reorder the posts returned by the query that WordPress creates from your given URL. Custom post type "archive" posts are a great example of this case.
* When you need the posts returned by your customized query (e.g. query_posts()) to be shown more than once on the same page and ordered differently.

Install :

1. Upload sort-query-posts folder to the /wp-content/plugins/ directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Use the added function sort_query_posts_by after any wordpress query and your posts will be sorted to your needs.

Free download from Shareware Connection - A really simple and lightweight plugin (78 lines of code - comments included) to sort posts on-the-fly without making a new query to the database (improves performance).

Publisher: Tubal | License: Freeware | Price: 0.00
Version: 1.1 | Size: 10 KB | Platform: PHP, Scripts
Released Date: 05-05-2013 | Rating: 0 | Title: Sort Query Posts

Author Url: http://downloads.wordpress.org/plugin/sort-query-posts.1.1.zip
Program Info Url: http://downloads.wordpress.org/plugin/sort-query-posts.1.1.zip
Download Url: http://downloads.wordpress.org/plugin/sort-query-posts.1.1.zip

Sort Query Posts keywords:
Sort Query Posts related downloads:

Sort Music Now - Sort Music, sort music files and sort music MP3s - easily? Then you need automatic MP3 music sorter. Sort music, sort music tracks, sort music anywhere - all is possible. Sort Music right now - Free music sorter download at SortMusic.net

ODBC database plugin - DODBC database plugin - created for export of data received over serial computer port to compatible ODBC database.

Sort Pictures - Sort Pictures - easily?

Sort Music Pro - Sort Music - How? Want to sort music - easily? Sort music and sort music files - with automatic music sorter. Music sorting program - is a music sorter that will sort music by artist, sort music by album and more - All is possible - Download now!

Sort Files - Sort Files: Download software to Sort files, Sort photos, Sort pictures, Sort images, Sort videos, Sort music, Sort MP3, Sort documents (sort Word, Sort Excel, Sort PDF and Sort Office files). Sort Files - Download file sorter at Sort-Files.com

Shareware Connection periodically updates pricing and software information of 'Sort Query Posts' from company source 'Tubal' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Sort Query Posts' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Sort Query Posts.

New Reviews

RawTherapee - There are so many image editors out there but when it comes to powerful and versatile RAW file editors, the choices are somewhat limited. With Adobe switching to Cloud-based subscriptions for most of its apps, semiprofessional users including ...

Sculptris - For 3D modeling and design, there are so many apps to pick from noondays. From feature laden and expensive apps of Autodesk to mid level and lesser known contenders, users are spoilt for choice. However, it is also possible to use a decently ...

Menu Uninstaller Ultra - For every Windows user it becomes necessary to remove some programs after prolonged usage. It can be necessary to free up disk space or the app may not simply suit the needs any more. Whatever is the reason, you need to uninstall third party apps ...

Bvckup - There is no denying the reality that computers have become a part and parcel of human existence. From education, work, entertainment and data storage, computers are required at every step of life. Safety of data is of paramount importance to PC ...

EasyBrake - PC users often need to convert videos from various formats to other formats that suit their needs. As expected, there are hundreds of free and paid apps to accomplish such tasks nowadays. It is not mandatory that you will have to pay a high ...

LastPass - Nearly every computer and internet users need to deal with a lot of passwords and this number only goes up with time! Remembering so many passwords becomes tedious with time and that can add to inconvenience. While you can assign the task of ...

Internet Explorer 10 - Up to the late 1990s, the web browser used by the bulk of Windows users was invariably Internet Explorer while Netscape played the second fiddle. The scene was relatively identical post 2000 but emergence of Firefox and later Google Chrome ...

FortiClient Standard - Every computer user needs to have adequate protection for his system and this holds true for corporate and network users. In business setups, where multiple desktops and servers are connected to a network, using regular antivirus suite may be ...

CamMask - There are several types of webcam software available in market and so you need not stick with the default webcam software of your laptop any longer. However, not all webcam apps can offer you a plethora of fun and dazzling effects as CamMask. ...

TinyWall - Nowadays, it is quite hard to locate a computer user who does not need to access the web. While you browse the web for any need, it is imperative that you use security applications to safeguard your computer from various online threats. The ...




New Downloads

Relief

An XML to Hash Ruby parser
DSL.

Discrete Least-Squares
Rational Approximation

Constructs discrete
least-squares rational
approximations to data using
the full-Newton algorithm for
solving separable ...

Calculated dielectric
constant of sea water

This code calculates the
dielectric constant of
seawater using the equations
shown in the paper of Stogryn
(1973), but ...

MATLAB Contest - Protein

The sixth MATLAB Programming
Contest, Protein, will run
from November 6-13, 2002.

ScaleTime

ScaleTime - fast linear matrix
interpolation

GNU Nana

GNU Nana is a free library
providing improved support for
assertion checking (as in
assert.h) and logging (printf
style ...

Double Fourier Series
Surface Plotting for
Mathematics

These MATLAB functions plot
and display number of terms
and oscillation smoothing of a
double Fourier series

Region of interest
Extraction by free hand
method

We run ROI_extract code in
Matlab, and chose the image
which want to extract ROI from
it and we select the ROI.

PARAFAC2

This m-file fits the PARAFAC2
model which is similar yet
more flexible than the
ordinary PARAFAC model.

rtdemo

The Real Time Toolbox for
Matlab interfaces Matlab to
external world

Bayesian Autoregressive
Modeling

The priors may be: Litterman
random walk plus drift prior

JPEG ENCODER

level shifting --> dct
-->quantization