ACF loop and php formatting

If it can be explicetly defined as the_title, then this should work for you: $pages = get_pages(array (‘sort_column’ => ‘menu_order’)); foreach ($pages as $page_data) { $fields = get_fields($page_data); if( $fields ) { echo ‘<div class=”the_title”>’ .$fields[‘the_title’] . ‘</div>’; echo ‘<div class=”container”>’; foreach( $fields as $field_name => $value ) { $field = get_field_object($field_name, false, array(‘load_value’ => … Read more

featured post as div background

You’re code is not working as you have an echo within an echo, try this code (not tested) <?php echo ‘<div id = “circ” style=”background: url(‘.$src[0].’><ul><li><a href = “‘.the_permalink().'</a></li></ul></div>’; ?> If you’re echo’ing something and then you want to add php within that echo you need to break the echo by adding ‘. $variable .’

Overwriting a Shortcode

A child theme’s functions.php file is loaded before the parent theme’s, so the behavior you’re seeing is correct. Try adding your shortcode on a later action instead: function wpa_add_child_shortcodes(){ add_shortcode( ‘jo_customers_testimonials_slider’, ‘jo_customers_testimonials_slider_with_thumbnail’ ); } add_action( ‘after_setup_theme’, ‘wpa_add_child_shortcodes’ );

WordPress Errors after Host Migration

Disable all plugins and see if you can get into wp-admin. My guess is an errant plugin is causing problems. For example there might be a system specific setting in a plugin and causes it to break on another system

How to link a word comprised of a custom field with another?

According to the documentation, you should display a field like: <p><?php the_field(‘field_name’); ?></p> Change your get_field to the_field: <span class=”c_f”><a href=”https://wordpress.stackexchange.com/questions/131004/<?php the_field(“field2_link’); ?>”><?php the_field(‘field1_details’); ?></a></span>