I’m wanting to customise the items that appear on the edit screen so it resembles more closely to the front end template output (like isotope / mansonry). At the minute its shows this once selected to be displayed on the front end:
<span class=”relationship-item-info”>Page</span>eCommerce and community site<span class=”acf-button-remove”></span>
<input type=”hidden” name=”fields[field_53da0c6d31c47][]” value=”3899″>
Is there a way to add a class, data-attr or ascertain other properties of the post from the post ID?
I’ve used the code and edited accordingly from:
http://www.advancedcustomfields.com/resources/customize-the-relationship-field-list-htm/
I’ve looked at this page thoroughly but doesnt update the DOM.
Thanks
Looking back at the link i had to include ‘core/’ in the path ‘acf/fields/relationship/result’ after ‘acf/’ and also when ever that path occurs in realtionship.php in the views folder of the plugin