Title: Sort Query Posts
Author: Tubal
Published: <strong>જાન્યુઆરી 15, 2011</strong>
Last modified: સપ્ટેમ્બર 4, 2012

---

પ્લગીન શોધો

આ પલ્ગઇન ** 2 વર્ષથી વધુમાં અપડેટ કરવામાં આવ્યો નથી **. એ કદાચ જાળવવામાં અથવા સપોર્ટેડ
નહી હોય. વર્ડપ્રેસ ના વધુ તાજેતરનાં સંસ્કરણો સાથે ઉપયોગમાં લેવાય તો સુસંગતતા મુદ્દાઓ
હોઈ શકે છે.

![](https://s.w.org/plugins/geopattern-icon/sort-query-posts.svg)

# Sort Query Posts

 [Tubal](https://profiles.wordpress.org/tubal/) દ્વારા

[ડાઉનલોડ](https://downloads.wordpress.org/plugin/sort-query-posts.1.1.zip)

 * [વિગતો](https://gu.wordpress.org/plugins/sort-query-posts/#description)
 * [સમીક્ષાઓ](https://gu.wordpress.org/plugins/sort-query-posts/#reviews)
 *  [સ્થાપન](https://gu.wordpress.org/plugins/sort-query-posts/#installation)
 * [ડેવલપમેન્ટ](https://gu.wordpress.org/plugins/sort-query-posts/#developers)

 [સપોર્ટ](https://wordpress.org/support/plugin/sort-query-posts/)

## વર્ણન

A really simple and lightweight plugin (73 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](https://codex.wordpress.org/Function_Reference/query_posts#Orderby_Parameters)**
   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 before [the loop](https://codex.wordpress.org/The_Loop) to 
change how posts are ordered.**
 After calling this function you can show the posts
as you normally would.

You can sort posts by:

 * author
 * comment_count
 * date
 * id
 * menu_order
 * modified
 * parent
 * title

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.

**Examples:**

    ```
    <?php sort_query_posts_by('title', 'desc'); ?>
    ```

The example above will sort posts by their title in descending order without making
a new query to the database.
 This way sorting is performance friendly.

    ```
    <?php sort_query_posts_by('ID'); ?>
    ```

The example above will sort posts by their ID in ascending order.

    ```
    <?php sort_query_posts_by('rand'); ?>
    ```

The example above will sort posts randomly. When sorting randomly `$order` is ignored.

Plugin developed by Túbal Martín at [www.margenn.com](http://www.margenn.com).

## સ્થાપન

 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.

## સમીક્ષાઓ

આ પ્લગઇન માટે કોઈ સમીક્ષાઓ નથી.

## ફાળો આપનાર & ડેવલપર્સ

આ ઓપન સોર્સ સોફ્ટવેર છે. નીચેના લોકો એ આ પ્લગિન માટે ફાળો આપ્યો છે.

ફાળો આપનારા

 *   [ Tubal ](https://profiles.wordpress.org/tubal/)

[“Sort Query Posts” ને તમારી ભાષામાં અનુવાદ કરો.](https://translate.wordpress.org/projects/wp-plugins/sort-query-posts)

### વિકાસમાં રસ ધરાવો છો?

[કોડ બ્રાઉઝ કરો](https://plugins.trac.wordpress.org/browser/sort-query-posts/), 
જોવો[અસ્વીએન રેપોઝિટરીમાંથી](https://plugins.svn.wordpress.org/sort-query-posts/),
અથવા સબ્સ્ક્રાઇબ કરો[ડેવલપમેન્ટ](https://plugins.trac.wordpress.org/log/sort-query-posts/)
દ્વારા[આરઅસઅસ](https://plugins.trac.wordpress.org/log/sort-query-posts/?limit=100&mode=stop_on_copy&format=rss).

## ચેન્જલૉગ

#### 1.1

 * Code refactored for improved performance. Updating is recommended.

## મેટા

 *  વર્ઝન **1.1**
 *  છેલ્લી અપડેટ: **14 વર્ષ પહેલા**
 *  સક્રિય સ્થાપનો: **100+**
 *  વર્ડપ્રેસ વર્ઝન ** 2.5 અથવા ઉચ્ચતર **
 *  **3.4.2** સુધી પરીક્ષણ કર્યું
 *  ભાષા
 * [English (US)](https://wordpress.org/plugins/sort-query-posts/)
 * ટૅગ્સ:
 * [post](https://gu.wordpress.org/plugins/tags/post/)[query](https://gu.wordpress.org/plugins/tags/query/)
   [reorder](https://gu.wordpress.org/plugins/tags/reorder/)[sort](https://gu.wordpress.org/plugins/tags/sort/)
 *  [વિગતવાર દૃશ્ય](https://gu.wordpress.org/plugins/sort-query-posts/advanced/)

## પૉઇન્ટ્સ

 5 માંથી 5 સ્ટાર.

 *  [  3 5-સ્ટાર સમીક્ષાઓ     ](https://wordpress.org/support/plugin/sort-query-posts/reviews/?filter=5)
 *  [  0 4-સ્ટાર સમીક્ષાઓ     ](https://wordpress.org/support/plugin/sort-query-posts/reviews/?filter=4)
 *  [  0 3-સ્ટાર સમીક્ષાઓ     ](https://wordpress.org/support/plugin/sort-query-posts/reviews/?filter=3)
 *  [  0 2-સ્ટાર સમીક્ષાઓ     ](https://wordpress.org/support/plugin/sort-query-posts/reviews/?filter=2)
 *  [  0 1-સ્ટાર સમીક્ષાઓ     ](https://wordpress.org/support/plugin/sort-query-posts/reviews/?filter=1)

[તમારા અભિપ્રાયો](https://wordpress.org/support/plugin/sort-query-posts/reviews/#new-post)

[બધા  સમીક્ષાઓ જુઓ](https://wordpress.org/support/plugin/sort-query-posts/reviews/)

## ફાળો આપનારા

 *   [ Tubal ](https://profiles.wordpress.org/tubal/)

## સપોર્ટ

કંઈક કહેવું છે? મદદ જોઈએ છે?

 [આધાર ફોરમ જુઓ](https://wordpress.org/support/plugin/sort-query-posts/)