Forums

have_posts and pages (4 posts)

  1. federicoD
    Member
    Posted 3 years ago #

    Hi, I'm trying to display posts in the sidebar using the loop have_posts() but when I'm on a page the loop display the page's name.

    How can I do in order to display the posts?
    I need to use have_posts() and no other functions because I'm using the wpsentry plugin and seems it works only with have_posts.

    Thanks
    Federico

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    One of these loop examples should work for you:
    http://www.daobydesign.com/blog/2007/07/modifying-wordpress-front-page/

  3. federicoD
    Member
    Posted 3 years ago #

    Hi, I've tried with get_posts...but it doesn't work with wpsentry. Other ideas?

    Thanks!
    Federico

  4. MichaelH
    Volunteer
    Posted 3 years ago #

    You need some way to retrieve the posts...

    Might also look at using a new WP_Query or even wpdb.

Topic Closed

This topic has been closed to new replies.

About this Topic