Thank you all for your attention
Suddenly someone come in handy:
<?php if ( ! post_password_required() ) { if( have_rows(‘test’) ): ?>
<?php while( have_rows(‘test’) ): the_row();
// vars
$tesst = get_sub_field(‘test_tesst’);
?>
<?php echo $tesst; ?>
<?php endwhile; ?>
<?php endif; } ?>
I’m trying to bring in such a way
<?php if( have_rows('servise_price') ): ?>
<?php while( have_rows('servise_price') ): the_row();
// vars
$content = get_sub_field('servise_name');
$price = get_sub_field('serv_price');
?>
<?php echo $content; ?>
<?php echo $price; ?>
<?php endwhile; ?>
<?php endif; ?>
The result is not what you want
Screen
https://yadi.sk/i/Y3U1sZZzybrBo
Please help me
I understand that for a simple user this plugin does not bear any good and you need to see a specialist, even if purchased plugin?
Your design produces only Array, Array, Array, Array, Array, Array, Array, Arran
In any case, thanks for trying to help
Did not help.
So please help here.
A separate gallery displays and works as it should.
But with the repeater does not operate.
I do this
<?php if( have_rows('repeat') ):
// loop through the rows of data
while ( have_rows('repeat') ) : the_row();
// display a sub field value
the_sub_field('galery-head');
the_sub_field('galery-rep');
endwhile;
else :
// no rows found
endif;
?>
Result:
Наша парикмахерскаяArray, Array, Array, Array, Array, Array, Array, ArrayНаш солярийArray, Array, Array, Array
And if you do so:
<?php
global $post;
if( have_rows('repeat', $post->ID ) ):
// loop through the rows of data
while ( have_rows('repeat', $post->ID ) ) : the_row();
// display a sub field value
the_sub_field('galery-head');
the_sub_field('galery-rep');
endwhile;
else :
// no rows found
endif;
?>
The result is the same…
Hello !
thanks for the answer
The result did not change ((
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.