Hi James
sorry for not replying before – very rude when you were helping
cant remember what happened
i think i did it all manually in the end
tom
hi james
thanks, but still can’t get it to work. do you think the 2 , ‘option’s are helping?? i’ve tried without – no joy
tom
hi james
thanks for replying.
i tried your code – but it didn’t work.
i also tried changing return ‘<h2> Test hello</h2>’ to <?php return ‘<h2> Test hello</h2>’; ?>
is ‘option’ right, is == ‘caci_facials’ right??
tom
Right, couldn’t come up with a solution to this so gave up and added them manually instead.
thanks john – ‘.get_bloginfo(‘name’).’ has worked a treat
thanks again
tom
John – thank you – works a treat now.
‘.bloginfo(‘name’).’ was outputting text above everything (loop problem??) but once i got rid of that it all worked fine.
thank you so much for your help.
have a good christmas
tom
HI John
thanks for replying. I tried this code.
It only output one image where it should have done and the lat tags at the top of the sidebar.
I tried moving return $output; to before } // end foreach, but it was the same problem?
tom
sorry, the answer was staring me in the face.
i changed:
<?php $rows = get_field('left_side_bar_content'); ?>
to
<?php $rows = get_field('left_side_bar_content', 'option'); ?>
and it worked!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.