विवरण
Puts all code from Custom fields to api.
स्थापना
- Unzip and upload the
aliens-scidirectory to/wp-content/plugins/. - Activate the plugin through the ‘Plugins’ menu in WordPress
प्रश्नोत्तर
- requires you to add the following to your functions.php file to allow filtering on the WP-API by meta_key
-
add_filter( ‘json_query_vars’, ‘filterJsonQueryVars’ );
function filterJsonQueryVars( $vars ) { $vars[] = ‘meta_key’; return $vars; }
- Once you added that, you can filter using these arguments
-
dowmian.com/wp-json/posts?filter[orderby]=meta_value_num&filter[meta_key]=order&filter[order]=ASC
- Usage
-
filter[orderby]: Either meta_value or meta_value_num depending on whether you’re filtering on an alphanumeric value or a numeric value filter[meta_key]: The key you want to filter on, this is the name of the ACF field filter[order]: The order to receive the data in, ASC or DESC
See the
CONTRIBUTING.mdfile. - How can I filter posts on a custom field?
समीक्षाहरू
यस प्लगिनको लागि कुनै समीक्षाहरू छैनन्।
योगदानकर्ता र डेभलपरहरू
“Custom fields to api” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान गरेका छन्।
योगदानकर्ताहरू“Custom fields to api” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्
विकासमा रुचि छ?
आरएसएस द्वारा कोड ब्राउज गर्नुहोस्, एसभीएन रिपजिटरी हेर्नुहोस्, वा विकास लग को सदस्यता लिनुहोस्।
चेन्जलग
1.0.0
- Initial release.
1.0.1
- Bug fixes and performance improvements.
