Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Custom Post Type Templates in WordPress Coding Your Own Custom Post Type Templates

shareyourpeace
shareyourpeace
3,244 Points

Why do you choose to use a wysiwyg editor for the images ?

When you add a custom field named Images, there is an option to choose field type:image.

Can you explain the strategy why you choose wysispwyg editor rather than image if we are going to be adding images.

Thanks

2 Answers

Its easier to add images in with the WYSIWYG editor. If they had chosen to use the image uploader, they would have to explain how image objects (blocks of code that store the image URL, size names, height, width, name, caption, title, alt-text) work, how to retrive the URL from it and echo it out. To keep it simple and in context that most people would understand, its easier to let the WYSIWYG editor handle all the extra code.

shareyourpeace
shareyourpeace
3,244 Points

Thanks Colin. Sounds like y are quite adept at this. I know some php and other programming languages. If you have an chance and want to send me a few steps to get me going, would like to try it. No rush. This response came a while after I put it up. I am certain that you are busy. But I would like the steps.

the advanced custom fields website is great and gives examples of all their code. In their example they uploaded multiple pictures which isn't possible with the image field in ACF, so only use the image ACF if you want to upload 1 picture.