Title: Sort Query Posts
Author: Tubal
Published: <strong>जानेवारी 15, 2011</strong>
Last modified: सप्टेंबर 4, 2012

---

प्लगइन शोधा

हे प्लगइन **WordPress च्या शेवटच्या 3 महत्त्वाच्या प्रमुख पुनर्वितरणांच्या साथी 
चाचणी झालेले नाही**. हे येथे वापरल्यास सामर्थ्य देणार नाही किंवा त्या आधारित असु
शकते आणि WordPress च्या अधिक अद्ययावत आवृत्तींसह वापरताना संगतता समस्यांची शक्यता
आहे.

![](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://mr.wordpress.org/plugins/sort-query-posts/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/sort-query-posts/#reviews)
 *  [इंस्टॉलेशन](https://mr.wordpress.org/plugins/sort-query-posts/#installation)
 * [डेव्हलोपमेंट](https://mr.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.

## समीक्षा

ह्या प्लगइनसाठी कोणतेही समीक्षण नाही.

## योगदानकर्ते आणि विकसक

“Sort Query Posts” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत
योगदान केले आहे.

योगदानकर्ते

 *   [ 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/), 
[SVN संग्रहालय](https://plugins.svn.wordpress.org/sort-query-posts/) तपासा, किंवा
[विकास लॉग](https://plugins.trac.wordpress.org/log/sort-query-posts/) च्या [RSS](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://mr.wordpress.org/plugins/tags/post/)[query](https://mr.wordpress.org/plugins/tags/query/)
   [reorder](https://mr.wordpress.org/plugins/tags/reorder/)[sort](https://mr.wordpress.org/plugins/tags/sort/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/sort-query-posts/advanced/)

## मूल्यांकन

 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)

[Your review](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/)