• Hi everyone!

    In my static homepage would like to see the last 3 post I wrote.

    In this way
    POST | POST | POST

    I’ve tried many solutions but the posts I always come out so
    POST
    POST
    POST

    can anyone help me?
    thank you very much

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    What theme are you using?

    Thread Starter PascalPavan

    (@pascalpavan)

    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.

    Thread Starter PascalPavan

    (@pascalpavan)

    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

    Check this topic

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Last 3 post’ is closed to new replies.