Article: Bottom Ad Image

$image = get_field(‘bottom_image’); $size = ‘full’; // (thumbnail, medium, large, full or custom size) if( $image ) { echo wp_get_attachment_image( $image, $size ); }Continue reading

Article: Related Articles

global $post; $the_query = new WP_Query( array( ‘post_type’ => $post->post_type, ‘post_status’ => ‘publish’, ‘orderby’ => ‘desc’, ‘category__in’ => wp_get_post_categories( $post->ID ), ‘post__not_in’ => array($post->ID), ‘posts_per_page’ => ‘4’ ) ); // Check value exists. if( $the_query->have_posts() ): echo ‘ Related Articles…Continue reading

Article: Related Articles

global $post; $the_query = new WP_Query( array( ‘post_type’ => $post->post_type, ‘post_status’ => ‘publish’, ‘orderby’ => ‘desc’, ‘category__in’ => wp_get_post_categories( $post->ID ), ‘post__not_in’ => array($post->ID), ‘posts_per_page’ => ‘4’ ) ); // Check value exists. if( $the_query->have_posts() ): echo ‘ Related Articles…Continue reading

Article: Sidebar Table of Contents

// Check value exists. if( have_rows(‘body’) ): // Loop through rows. while ( have_rows(‘body’) ) : the_row(); // Case: Post layout. if( get_row_layout() == ‘post’ ): $title = get_sub_field(‘title-1’); $string = str_replace(” “,””,$title); $stringId = substr($string,0,12); echo ‘ ‘.$title.’ ‘;…Continue reading

Article: Main Image

$image = get_field(‘main_image’); $size = ‘full’; // (thumbnail, medium, large, full or custom size) if( $image ) { echo wp_get_attachment_image( $image, $size ); }Continue reading