Title: Custom Query Fields
Author: julian1828
Published: <strong>मे 8, 2011</strong>
Last modified: मे 10, 2011

---

प्लगिनहरू खोज्नुहोस्

यो प्लगिन **वर्डप्रेसका ३ प्रमुख नवीनतम रिलीजहरूसँग परीक्षण गरिएको छैन**। यो अब 
सम्भवतः व्यवस्थित वा समर्थन नभएको हुन सक्छ र वर्डप्रेसका नयाँ संस्करणहरूमा प्रयोग
गर्दा अनुकूलता सम्बन्धी समस्या हुन सक्छ।

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

# Custom Query Fields

 [julian1828](https://profiles.wordpress.org/julian1828/) द्वारा

[डाउनलोड गर्नुहोस्](https://downloads.wordpress.org/plugin/custom-query-fields.zip)

 * [विवरण](https://ne.wordpress.org/plugins/custom-query-fields/#description)
 * [समीक्षाहरू](https://ne.wordpress.org/plugins/custom-query-fields/#reviews)
 *  [स्थापना](https://ne.wordpress.org/plugins/custom-query-fields/#installation)
 * [विकास](https://ne.wordpress.org/plugins/custom-query-fields/#developers)

 [सहायता](https://wordpress.org/support/plugin/custom-query-fields/)

## विवरण

THIS PLUGIN IS IN HEAVY DEVELOPMENT!

Extend your site’s querying and sorting functionality using custom field values.

The following function registers queryable fields.
 register_custom_queryable_field(
$fieldName, $options);

Simple Example:
 register_custom_queryable_field(‘city’); (The above registers the
custom field ‘city’ to be searchable using query variables) http://www.yoursite.
com/?city=Anahiem (displays posts which have a meta key ‘city’ and a value of ‘Anahiem’)

Advanced Example:
 register_custom_queryable_field(“price”, array(“dataType”=>”numeric”));(
The above registers the custom field “price” to be searchable as a number using 
query variables) http://www.yoursite.com/?price=500 (displays posts which have a
meta key ‘price’ and a exact value of ‘500’) http://www.yoursite.com/?price_min=
200&price_max=800&order_by=price (displays posts, sorted by ‘price’, which have 
a meta key ‘price’ and a value between ‘200’ and ‘800’)

Available Options:

 * dataType
    - text (default)
    - numeric (receive min/max query variables, see above example)
 * order
    - If the user uses the “order_by” query variable then this option determines
      the order. Available options are “ASC” and “DESC”(default)
 * compare
    - Compare method for text types. Defaults to ‘=’. Recommend ‘LIKE’

There is a “order_by” query var made available. This is used by adding `&order_by
=price` to the URL. In this instance, the query would sort based on the “price” 
field only.

Note: This plugin does not alter any queries when in the backend.

## स्थापना

 1. Upload `custom-query-fields` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. See Description on how to enable the custom variables.

## प्रश्नोत्तर

  When will you have some FAQ’s?

Soon.

## समीक्षाहरू

यस प्लगिनको लागि कुनै समीक्षाहरू छैनन्।

## योगदानकर्ता र डेभलपरहरू

“Custom Query Fields” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान
गरेका छन्।

योगदानकर्ताहरू

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

[“Custom Query Fields” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्](https://translate.wordpress.org/projects/wp-plugins/custom-query-fields)

### विकासमा रुचि छ?

[आरएसएस](https://plugins.trac.wordpress.org/log/custom-query-fields/?limit=100&mode=stop_on_copy&format=rss)
द्वारा [कोड ब्राउज गर्नुहोस्](https://plugins.trac.wordpress.org/browser/custom-query-fields/),
[एसभीएन रिपजिटरी](https://plugins.svn.wordpress.org/custom-query-fields/) हेर्नुहोस्,
वा [विकास लग](https://plugins.trac.wordpress.org/log/custom-query-fields/) को सदस्यता
लिनुहोस्।

## चेन्जलग

#### 0.1.2b

 * Fixed some foreach bugs that threw warnings if no fields were registered.
 * The plugin is now only using one global variable.
 * Added backward compatibility with version 3.0.
 * Improved code efficiency.
 * Added enable and disable functions to allow you to apply custom field query to
   external query’s.

#### 0.1.1b

 * Added the ability to control whether the query altering function is run only 
   once.
 * Added the compare option to the registered fields. This compare is ignored for
   numeric comparisons.

#### 0.1b

 * Initial build.

## मेटा

 *  संस्करण **0.1.2b**
 *  पछिल्लो अपडेट **15 वर्ष अघि**
 *  सक्रिय स्थापना **10+**
 *  वर्डप्रेस संस्करण ** 3.0 वा उच्च **
 *  जाँच गरिएको **3.1.4**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/custom-query-fields/)
 * ट्यागहरू
 * [custom fields](https://ne.wordpress.org/plugins/tags/custom-fields/)[meta_query](https://ne.wordpress.org/plugins/tags/meta_query/)
   [query](https://ne.wordpress.org/plugins/tags/query/)
 *  [उन्नत दृश्य](https://ne.wordpress.org/plugins/custom-query-fields/advanced/)

## रेटिङ्गहरू

अहिलेसम्म कुनै समीक्षा पेस गरिएको छैन।

[Your review](https://wordpress.org/support/plugin/custom-query-fields/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-query-fields/reviews/)

## योगदानकर्ताहरू

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

## सहायता

केही भन्नु छ? सहयोग चाहियो?

 [सहायता फोरम हेर्नुहोस्](https://wordpress.org/support/plugin/custom-query-fields/)

## दान गर्नुहोस्

के तपाईँ यस प्लगिनको उन्नतिको लागि सहायता गर्न चाहनुहुन्छ?

 [ यो प्लगिनको लागि दान गर्नुहोस् ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9BBXFXSUG2D6U)