Closed michaelbragg closed 10 years ago
Add a build guide via the Media Uploader and update post:
Remove a build guide via the button and update post:
@Todo: Build in check to see if the "Remove Build Guide" button is already there.
TODO: Look into merge JS file as admin.js
and build-guide.js
contain the same code but are called on different pages.
TODO: Can Add/Remove buttons be disabled when 'Disable Build Guide` option is clicked?
Deployed to DigitalDev for testing.
Redeployed to DigitalDev for testing.
Post's build guide not recognising attachment.sizes.thumbnail.url
for attached build guide.
Does the media object have a thumbnail version?
Other images have thumbnail.
Is it because the images are 100px x 100px or smaller? Has a setting changed?
Fun fact. WP doesn't create thumbnails for images under 200px x 200px.
Need to add a check to see if attachment.sizes
is true but attachment.sizes.thumbnail
is not. Then return the image url to use.
As a super admin click Settings > Adverts Settings
Add your build guide and select save
Ref #242