ACF – add a group inside a repeater [closed]

You code looks very confusing. Why are you using the ‘foreach’? If you follow the ACF documentation, you just need to use: <?php if( have_rows(‘questions’) ): while( have_rows(‘questions’) ): the_row(); // vars $repeater-item = get_sub_field(‘repeater-item’); ?> <div class=”content”> <?php the_sub_field(‘caption’); ?> </div> For the group. Source: https://www.advancedcustomfields.com/resources/group/ And you only have to use: if( have_rows(‘item’) … Read more

How to get a custom type post data when it has a connection with another custom type post?

If in a country looking for cities $args = array ( ‘post_type’ => ‘cities’, ‘meta_key’ => ‘country’, ‘meta_value’ => get_the_ID() ); This assumes that the “Country > Name* > [drop down]” you screenshot saves that the selected value using post_meta and is saving the country’s post ID. (If it does not please adjust or specify). … Read more

ACF Pro make URL Linked in Custom Template [closed]

You echo value of the field, so you get what you do 😉 There is no way to make ACF print it your way. You have to wrap it yourself. Here’s a code that would do exactly that: <?php if ( get_field(‘svcta_contact_information_group_svcta_contact_website’) ) : ?> <div class=”svcta-contact-website” id=”svcta-id-contact-website”> <strong>Contact Website:</strong> <a href=”https://wordpress.stackexchange.com/questions/304107/<?php echo esc_attr( get_field(“svcta_contact_information_group_svcta_contact_website’) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)