Title: Custom fields to api
Author: Memomon
Published: <strong>29. Oktober 2016</strong>
Last modified: 1. November 2016

---

Search plugins

![](https://ps.w.org/aliens-sci/assets/banner-772x250.png?rev=1524661)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/aliens-sci/assets/icon-256x256.png?rev=1524662)

# Custom fields to api

 By [Memomon](https://profiles.wordpress.org/4samy/)

[Download](https://downloads.wordpress.org/plugin/aliens-sci.zip)

 * [Details](https://de-ch.wordpress.org/plugins/aliens-sci/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/aliens-sci/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/aliens-sci/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/aliens-sci/#developers)

 [Support](https://wordpress.org/support/plugin/aliens-sci/)

## Description

Puts all code from Custom fields to api.

## Installation

 1. Unzip and upload the `aliens-sci` directory to `/wp-content/plugins/`.
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress

## FAQ

  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.md` file.

  How can I filter posts on a custom field?

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Custom fields to api” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Memomon ](https://profiles.wordpress.org/4samy/)

[Translate “Custom fields to api” into your language.](https://translate.wordpress.org/projects/wp-plugins/aliens-sci)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/aliens-sci/), check
out the [SVN repository](https://plugins.svn.wordpress.org/aliens-sci/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/aliens-sci/) by 
[RSS](https://plugins.trac.wordpress.org/log/aliens-sci/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

### 1.0.1

 * Bug fixes and performance improvements.

## Meta

 *  Version **1.0.1**
 *  Last updated **9 Jahren ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 1.0.1 or higher **
 *  Tested up to **4.6.30**
 *  Language
 * [English (US)](https://wordpress.org/plugins/aliens-sci/)
 * Tags
 * [api](https://de-ch.wordpress.org/plugins/tags/api/)[custom fields](https://de-ch.wordpress.org/plugins/tags/custom-fields/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/aliens-sci/advanced/)

## Ratings

Es wurden noch keine Rezensionen eingereicht.

[Your review](https://wordpress.org/support/plugin/aliens-sci/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/aliens-sci/reviews/)

## Contributors

 *   [ Memomon ](https://profiles.wordpress.org/4samy/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/aliens-sci/)