inboundnow / retired-landing-pages

Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
http://www.inboundnow.com/landing-pages/
GNU General Public License v2.0
4 stars 2 forks source link

Always set default images for options #243

Closed DavidWells closed 8 years ago

DavidWells commented 9 years ago

http://www.screencast.com/t/HduubyaYwrY

Also in the description field of the image give the original dimenions of the image to help the user.

Example: "Use an image with the dimensions 200x200 pixels"

atwellpub commented 9 years ago

I'm not sure if we can set default repeater field images. Might be a good time saving solution to make the field required instead.

atwellpub commented 8 years ago

At the moment we can't set default values for images unless we find out a way to upload them programmatically to the media uploader and return the gallery id instead of the image URL:

https://github.com/elliotcondon/acf/issues/449

This is even more difficult to do with repeaters. I believe we are still in discussion on how to automatically populate repeater field rows with default content, though I am having trouble finding the discussion issue.

Should we give this a shot?

DavidWells commented 8 years ago

We can just use conditional logic to use the default images associated with the templates.


if($repeaterImage){
// use it
} else {
// use default image from template files
}