Moderator
t-p
(@t-p)
What theme are you using?
I’m using http://demo.themefit.com/fluid/
I want to display the last 3 post on the upper footer sidebar.
But only in homepage. This is my footer.php
“
</div>
</div>
<?php if(is_page(145)){ ?> <!– 145 id’s homepage –>
<div id=”upper-footer”>
<?php $recent = new WP_Query(“cat=1&showposts=3”); while($recent->have_posts()) : $recent->the_post();?>
<h3>“><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<?php endwhile; ?>
<div id=”upper-footer-shell”>
<ul id=”footer-widgets”>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(__(‘Upper Footer Widgets’, ‘domain-themefit-fluid’)) ) : ?>
<li class=”footer-widget-item”>
<h3><?php _e(‘Footer Widget Area’, ‘domain-themefit-fluid’) ?></h3>
<p>
<?php _e(‘You can add footer widgets to this area from the WordPress admin in “Upper Footer Widgets.”‘, ‘domain-themefit-fluid’) ?>
<?php echo do_shortcode( ‘[tf_button link=”‘. get_bloginfo(‘url’) .’/wp-admin/widgets.php”]’ . __(‘Add Widgets’, ‘domain-themefit-fluid’) . ‘[/tf_button]’); ?>
</p>
<?php endif; ?>
</div>
</div>
<?php } ?>
<div id=”push-lower-footer-shell”></div>
</div><!– end site-wrapper –>
<div id=”lower-footer-shell” class=”primary-color-background”>
<div id=”lower-footer”>
<p id=”lower-left-text”><?php echo tf_lower_left_footer( ) ?></p>
<p id=”lower-right-text”><?php echo tf_lower_right_footer( ) ?></p>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>
”
It’s a commercial theme and we don’t support those on this forum. Please, ask the theme author for support.
I don’t want support for the specific theme because I use also another site where I need help for this trick.
It’s possible to create a code that the resul is:
POST | POST | POST