Section not appearing
-
I have a page under development. I’m making a custom wordpress theme based on 2016. Below is link to home page. On this page there is an orange section i named CTA. I added it via content-home.php template file. The problem is I want it to be the last section on page under news. I have added it in two places to show my problem. when it’s above the news or blog section it appears fine. When I add it it under the news or blog section it doesn’t appear right.
URL:
https://www.rdb-concepts-dev.com.php56-1.dfw3-2.websitetestlink.com/Code from content-home.php where it calls sections
<?php /** * The template used for displaying page content * * @package WordPress * @subpackage RDB * @since RDB 1.0 */ ?> <div> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php rdb_post_thumbnail(); ?> <div class="entry-content"> <div class="banner"> <?php echo do_shortcode('[simpleresponsiveslider]'); ?> <div class="banner-mask" id="anchor1"><div class="left-mask"></div> <div class="mask-icon"></div> <div class="right-mask"></div></div> </div> <section class="services"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'service_heading',true); ?> </div> </div> <div class="service-list"> <div class="row"> <?php query_posts("post_type=service&posts_per_page=-1&order=Asc"); ?> <?php while(have_posts()):the_post(); global $post; ?> <div class="col-lg-4 col-sm-6 col-xs-12 service-item"> <a>ID,'service_url',true); ?>" style="background-image:url(<?php $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full' ); echo $thumbnail[0]; ?>)"> <div class="service-text"><span class="title"><?php the_title(); ?></span> <span class="text"><?php echo get_the_content(); ?></span></div> </a> </div> <?php endwhile; wp_Reset_query(); ?> </div> </div> </div> </section> <section class="feature"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'feature_heading',true); ?> </div> </div> </div> </section> <section class="testimonial"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'testimonial_heading',true); ?> </div> </div> </div> </section> <section class="technologies"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php the_field('logos_heading'); ?> </div> </div> <div class="tech-list"> <div class="row"> <?php query_posts("post_type=tech-logo&posts_per_page=-1&order=Desc"); ?> <?php while(have_posts()):the_post(); ?> <div class="col-lg-2 col-md-4 col-sm-4 col-xs-6 tech-item"> <?php $service_url=get_post_meta($post->ID,'logo_service_url',true); if($service_url!=='') { ?> <a>ID,'logo_service_url',true); ?>"><?php the_post_thumbnail("full"); ?></a> <?php } else { ?> <span> <?php the_post_thumbnail("full") ?> </span> <?php } ?> </div> <?php endwhile; wp_reset_query(); ?> </div> </div> </div> </section> <section class="cta"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'cta_heading',true); ?> </div> </div> </div> </section> <?php $home_posts = get_posts("numberposts=3"); if(count($home_posts) > 0) : ?> <section class="news"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'blog_posts_heading',true); ?> </div> </div> <div class="news-list"> <div class="row"> <?php foreach( $home_posts as $post ) : setup_postdata( $post ); ?> <div class="col-lg-4 news-item"> <a>ID); ?>" style="background-image:url(<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>)"> <div class="post-title"><?php echo $post->post_title; ?></div> </a> </div> <?php endforeach; ?> </div> </div> </div> <?php endif; wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'rdb' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'rdb' ) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>', ) ); ?> </section> <section class="cta"> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo get_post_meta($post->ID,'cta_heading',true); ?> </div> </div> </div> </section> </div><!-- .entry-content --> </article><!-- #post-## --> </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Section not appearing’ is closed to new replies.