WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Footer not displaying posts

Tagged: 

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #47819
    Lucius Douglas
    Participant

    I made a change to the footer.php and the posts are not showing. If anyone can see why the posts are not displaying in column 1, that would be great. The twitter feed and the form are displaying fine but not in the proper columns 2 & columns 3.

    All code for 3 column display:

    <!– =============================== Column Three – 3 =================================== –>
    <div class=”cols-3″>
    <?php if(!dynamic_sidebar(‘footer-1’)) : ?>
    <div class=”widget-column-1″>
    <h5><?php if( of_get_option(‘letestpoststitle’) != ”){ echo of_get_option(‘letestpoststitle’);}; ?></h5>
    <ul class=”recent-post”>
    <?php query_posts(‘post_type=post&cat=148&showposts=4’); ?>
    <?php while( have_posts() ) : the_post(); ?>

  • “>
    <?php if ( has_post_thumbnail() ) { $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘thumbnail’ ); $thumbnailSrc = $src[0]; ?>
    <div class=”footerthumb”>” alt=”” width=”70″ height=”auto” ></div><?php }
    else { ?>
    /images/img_404.png” width=”70″ />
    <?php } ?>

    “><?php the_title(); ?>
    <?php echo content( of_get_option(‘footerpostslength’) ); ?>
  • <?php endwhile; ?>

    <?php wp_reset_query(); ?>
    </div>
    <?php endif; ?>

    <?php if(!dynamic_sidebar(‘footer-2’)) : ?>
    <div class=”widget-column-2″>
    <div class=”social-container”>
    <?php if( of_get_option(‘footersocialicon’) != ”) { echo do_shortcode(of_get_option(‘footersocialicon’)); } ; ?>
    </div>
    <div class=”twitter-container”>
    Tweets by DivorceToolBox
    <script async=”async” src=”https://platform.twitter.com/widgets.js&#8221; charset=”utf-8″></script>
    </div>
    </div>
    <?php endif; ?>

    <?php if(!dynamic_sidebar(‘footer-3’)) : ?>
    <div class=”widget-column-3″>
    <h5><?php if( of_get_option(‘abouttitle’) != ”) { echo of_get_option(‘abouttitle’); } ; ?></h5>
    <?php if( of_get_option(‘aboutusdescription’) != ”) { echo of_get_option(‘aboutusdescription’); } ; ?>
    <div class=”clear”></div>
    </div>
    <?php endif; ?>

    <div class=”clear”></div>
    </div><!–end .cols-3–>
    <?php
    }
    elseif($footerlayout==’fourcolumn’){ ?>

    <!– =============================== Column Fourth – 4 =================================== –>

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.