get_template_part is not working correctly.
-
Hi everyone
I working on my of my full-length no side-bar page template, I like to use one of the functions from home page, so I use get_temmplate_part, it does show up, but not 100% show up, I missed the text, and no error shows up, how can I fix it?
Not sure where I should put this two function I search online might help my case?<?php wp_reset_postdata(); ?> <?php wp_reset_query();?>
Thanks!
<?php /* Template Name: Full-width template */ $thumbnail_url= wp_get_attachment_url(get_post_thumbnail_id($post->ID)); get_header(); ?> <?php if(has_post_thumbnail()) {?> <div class="div-block-21 contact" style="background:url('<?php echo $thumbnail_url?>') no-repeat; background-size:cover;" > <h1 class="heading-12"><?php page_title();?></h1> </div> <?php } else { //fallback image ?> <div class="div-block-21 contact"> <h1 class="heading-12"><?php the_title();?></h1> </div> <?php } ?> <div> <div class="div-block-39"> <div class="div-block-38"> <?php while(have_posts()) : the_post()?> <p class="paragraph-15"> <?php the_content();?> </p> <?php endwhile;?> </div> </div> </div> <?php get_template_part('template-parts/content','signup');?> <?php get_footer();?>
Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘get_template_part is not working correctly.’ is closed to new replies.