Closed Prabhat36 closed 8 years ago
which WP-API version please? latest tested is beta12
using beta 12, still featured image are not getting load,,
this version should be fine. What's the network error?
i have set images to featured image on my wordpress site. using beta beta 12 ,, still?
give me the wp-api address, will try it here
Fine here, is it the same thing on device?
Check lib/index.html
if you run an old version.
it should have:
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data:; img-src * 'self' 'unsafe-inline' 'unsafe-eval' data: blob: filesystem:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
for pictures to get displayed
@Prabhat36 bhai Ik baat poochni hai yar apnay icons k colors (blue) kaisay change kiyae?? main bht try kr rha houn par nhi ho rha yar koi idea do na plz
?
In image he got blue icons. how did he do that? while we only can use icon from ionic, I am wondering
@AsadAlihp
in config folder open config.scss file and use below code
$palette-secondary-text:#3b5998 !default;
@shprink thanks,, i have made change as u said in index.html now when i open any post it showing featured image but when at posts it still not showing ..
Cannot reproduce
I'm also having this problem, is there anything I can do to help you be able to reproduce this?
v2.0.0-beta08
of WPHC.$ chromium-browser --disable-web-security
to make sure that external images can be pulled.$ npm --version
gives 3.8.5
.$ node --version
gives v0.10.25
.Ubuntu 14.04
.lib/index.html
has the line you mentioned above.http://localhost:8080/cordova.js
returns 404 Not Found
(although this is expected in the browser and not a build of cordova).https://secure.gravatar.com/avatar/58f112388eef616f919ca4ee8a030c9f?s=96&d=retro&r=g
returns (cancelled)
. Now although this returns as cancelled, there's a later one of the same image but in a different location that works fine at filesystem:http://localhost:8080/temporary/imgcache/187d8faa4479c50bbfceb64d56e7d8e9d5a45fc0
. This appears to be the only image that seems to show fine.https://www.hazrpg.co.uk/wp-json
.WordPress REST API (Version 2)
version 2.0-beta13
plugin found hereTry upgrading to the lastest version of WPHC first. It is just a git fetch and a checkout.
@shprink I assume you mean the develop branch instead of the release tags? I will give that a go and report back.
no no I meant if you do not run the latest then upgrade.
How is this behaving on device? Is it the same (with my web service it works and with yours it does not)?
Oh, in that case... I already had the latest. Seems the same problem happens in the develop branch too. However, I have not tried compiling to a native app so I will try that next. The behaviour locally using npm run devserver
however is that it works with your web service, but not mine. When inspecting the elements it seems the img src attribute is blank (on mine) - which is bizarre, considering the json feed definitely has a url to the image.
in the new version of app featured image are not displying in app.. help plz