Mate u saved my life 🙂 Any solution for image id instead of URL ?
Thanks ! its working. I tried myself before, same solution but probably i made some error. Thanks again!
I created new image size, but how to put in image code?
<a href="<?php echo $image['url']; ?>" class="project-caption"><span>+</span></a>
it says URL. thats full size image
Solution of dbrabyn works great. But how can i modify to display 3 columns? col-md-4 ?
Its working when i target specific ID but i have doze of posts i cant just add id by id, corect ? Can i target all posts for example from certain Custom Post Type?
Ok let me explain better because i am real stuck here. I have custom post type Projects (buildings), and i have custom post type Apartments. How can i assign some specific apartments to belong to some projects. For example i have Project 1, Project 2, and i have Apartment 1 and Apartment 2. How can i create relationship between those , i want to asign Apartment 2 to Project 1. Then i want to display on apartment-single.php some data from project 1 like location, features etc.
In basic its simple Apartment CPT have targeted field group called Projects for Apartment. That field group is set for POst Object and restricted to Projects CTP. Then i have field in repeater Location Facility that targets Projects CTP. So i create for example post under Projects with filled informations for location and i display that data on single-projects.php page. But i want to display that same data on single-apartment.php . When i try to extract data from normal field its ok, but i dont know how to extract field from repeater.
Sorry to bother you solution is to disable of fix settings in plugin called Post Types Order.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.