• The site has WordPress 5.0.3 and theme is simple-bootstrap .

    This is my present post page . (https://mtest.121tarotreadings.com/news/).

    As you can see this page is not properly formatted. I have template for blog page. But When I go to edit I cannot see any option to choose the template in the attribute section. Please click here to see screenshot

    So I have created another page for displaying all the posts . Link where I can choose the template for this page.
    For better understanding. : Click here to see the screenshot

    But in (i.e : This page ) the footer disappears even though I have set footer in the Template file. Also this page is only showing few latest post. There is no pagination so that one can to go to previous / next post pages.

    But its not the case with my present post page . There are pagination and the footer also exists.

    This is settings for reading (Screenshot ) . if i set the new page (i.e : Blog-2 ) as post page in here the format of this page also changed . it looks exactly like the poorly formatted news page. and also I cannot find the option for choosing template in Edit section.

    This is my template for blog (Screenshot )

    this is the settings in appearance -> customise ( Screenshot)

    I am confused what is wrong with the settings. What should i do to bring back footer and pagination in blog page and how can i get the option for choosing template in news page.

    Below is the code for blog template.

    TIA

    <?php
      /*     Template Name: blog  */
      get_header();
    
       // Set up the paged variable
       $temp = $wp_query;
       $wp_query= null;
       $wp_query = new WP_Query();
       $wp_query->query('showposts=8'.'&paged='.$paged);
    
        ?>
    
         <section id="page-blog" class="container">
           <?php the_content();?>
           <div class="row">
            <?php while ($wp_query->have_posts()) : $wp_query->the_post();  ?>
            <div class="col-sm-4 col-md-3 block-news">
                <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
                    <div id="post-<?php echo $post->ID; ?>" <?php post_class(); ?>>
                    <div class="image-news-home" style="background-image:url(<?php echo $image[0];?>);"></div>
                    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                    <div class="post-excerpt">
                        <?php the_excerpt(); ?>
                        <a class="more-link" href="<?php the_permalink(); ?>">Read the full story <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
                    </div>
                  </div>
               </div>
              <?php endwhile; ?>
           </div>
           <?php
             if ( function_exists('wp_bootstrap_pagination') )
               wp_bootstrap_pagination();
            ?>
           </section>
    
          <? wp_reset_query();
             get_footer();  ?> 
    

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issues with post page. Footer disappears ; No pagination for old/new post’ is closed to new replies.