Accessing secure endpoint with X-WP-Nonce?
Accessing secure endpoint with X-WP-Nonce?
Accessing secure endpoint with X-WP-Nonce?
It is a bad API design to return different structure based on “external data” not passed in the request itself. Either construct different API for logged in users and use a different end point for it, or return a “filler” when the user do not have permission to access the data. (and it is always … Read more
Showing added mime types in REST media response
I have found the solution with the help of a great friend. I will post it here if anyone else needs to utilize the fucntion. Again in summary, this function will display posts from another blog and you can enter specific category ID’s from the other blog and also control how many posts are displayed. … Read more
Ok this probably has a superfluous few lines but this works for me: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^static/(.*)$ /wp-content/themes/MYTHEME/static/$1 [R=301,NC,L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
How to properly set a value to meta fields of a custom post type in WP-API/node-wpapi REST API?
REST api v2 how can modify respond types and make custom DTO for better performance
I found some articles on net on how to proceed, tried this code: $url=”https://api.crex24.com/CryptoExchangeService/BotPublic/ReturnTicker?request=[NamePairs=BTC_BZK,BTC_DOGE]“; // path to your JSON file $data = file_get_contents($url); // put the contents of the file into a variable $characters = json_decode($data); // decode the JSON feed echo $characters[0]->PairName; foreach ($characters as $character) { echo $character->PairName . ‘‘; }
Like bueltge alluded, you need to register custom meta fields and expose to to the api. I recently had this problem when I was trying to get a custom meta field for our users. I think my solution will work for you if you adapt it for posts vs users (pay attention to the Register … Read more
filter rest api post by a acf filed