Hello, everyone,
I use ACF on the website of a small open-air theatre. ACF occurs in “almost” every page.
URL: http://www.reckenfeld-freilichtbuehne.de
I would now like to optimize some pages that have become very long, e. g. the detail page of the play “Michel in the soup bowl” (https://s.reckenfeld-freilichtbuehne.de/qNU35).
I have the following ACF fields that appear as repeater fields:
Upper field: stueckverlinkung
Profile picture: verlinkung-stueck-profil-bild
Year of performance: verlinkung_jahr
actor’s name: verlinkung-mitglied
URL to the actor profile: verlinkung-mitgliedurl
Name of the role: verlinkung-stueckrolle
if necessary, special task: verlinkung-sonderaufgabe
I would now like to place two entry blocks next to each other – maybe three blocks side by side, I have to look.
So how can I create two columns where multiple ACF fields are queried with the repeater function?
Example:
<table>
<tr>
<td>
profile picture
Name of the actor incl. profile linking
Year of appearance | Role name or special task
</td>
<td>
profile picture
Name of the actor incl. profile linking
Year of appearance | Role name or special task
</td>
</tr>
</table>
Greetings Tobias
Yes, I used this field.
Yes, but… yes but…. after saving, the field type has changed over and over again automatically. This is not logical.
Screen 1: Creating the field (open the screen in a new tab and zoom in)
Screen 2: Settings after saving the fields
Hi Keith,
Thank you very much for your quick help.
I put the following code in the message field:
<?php
global $my_row_number;
if ( !$my_row_number ) { $my_row_number = 0; }
$rows = get_field('allgemein_mitglied');
$specific_row = $rows[$my_row_number];
$sub_field_value = $specific_row['allgemein_profilbild'];
echo basename($sub_field_value['url']); // echos *just* the filename for the image
$my_row_number++;
?>
After updating, however, the field changes to a “one-line text field”. Unfortunately, the desired effect does not work.
I found a solution with ACF … topic solved
Topic solved, I found another solution with ACF
Has anyone any ideas?
I found the problem … klicki-bunti … the category of the articles where I use ACF changed …
…. SO: cased closed …
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.