Moin!
Ich habe ein kleines Problem mit den Links die ich über Advanced Custom Fields 5 über die Link Feld erstelle. Das erste Feld funktioniert einwandfrei. Nur beim zweiten kommt es zu einem Array und einer 404 Seite wenn ich draufklicke
Hier mal eine Seite wo es auftritt wenn ich 2. Links einfüge:
https://hoerspielbaer.de/kinderserien/f…ahn/#produktion
Der Code sieht wie folgt aus:
echo '<table>';
echo '<tr>';
echo '<th>Aufgabe</th>';
echo '<th>Name</th>';
echo '</tr>';
while ( have_rows('reihe_produktion_aufgaben') ) : the_row();
echo '<tr>';
echo '<td>'.get_sub_field('reihe_produktion_aufgabe').'</td>';
echo '<td>';
while (have_rows('reihe_produktion_name_box')): the_row();
echo get_sub_field('reihe_produktion_name');
echo '<br />';
$value = get_sub_field('sprecher_link_1');
if ( $value ) {
echo '';
echo '<span style="font-style: italic; font-size:12px;">ebenfalls in <a href="' . $value .'">' .get_sub_field('sprecher_link-text_1'). '</a>';
echo '';
}
$value = get_sub_field('sprecher_link_2');
if ( $value ) {
echo ' und ';
echo 'in <a href="' . $value . '">' .get_sub_field('sprecher_link-text_2'). '</a>';
}
echo '</span> ';
endwhile;
echo '</td>';
echo '</tr>';
endwhile;
echo '</table>';
endwhile;
else :
echo '<h2 id="produktion">Produktion</h2>';
echo '- folgt -';
endif;