.htaccess and proxy settings for routing a decoupled REST API consuming theme

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>

I would like to retrive JSON value and display it in wordpress page or widget

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 . ‘‘; }

REST Request Post including meta/custom fields

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)