WordPress.org

Ready to get started?Download WordPress

Forums

Business Directory Plugin
[resolved] Random Listing widget - Show Thumbnail (2 posts)

  1. djeshm
    Member
    Posted 10 months ago #

    Hi, love the plugin. But i really need to show a listings thumbnail on my homepage. Does anybody have a code or a fix for this? I suppose it will be a modified code in widgets.php.

    echo '<ul>';
    foreach ($posts as $post) {
     echo '<li>';
    echo '$thumbnail or something?';
    echo sprintf('<a href="%s">%s</a>', get_permalink($post->ID), get_the_title($post->ID));
     echo '</li>';
     }
     echo '</ul>';

    Been trying to make a fix but im not to strong here :)
    Thanx again for a great plugin.

    http://wordpress.org/extend/plugins/business-directory-plugin/

  2. businessdirectoryplugin
    Member
    Plugin Author

    Posted 10 months ago #

    Hi djeshm,

    I'm not sure I understand the context--if you are viewing the listings page, thumbnails can be shown, and you can put that listing page as your home page without having to make any custom changes.

    Alternately, if you can't go that route, you can always use the code for the template to help display the listings on your homepage (the widget code isn't what I would suggest, since this doesnt' display the the images as you want).

    Try reading this article to find the templates and the source of the (better) code here: http://businessdirectoryplugin.com/support-forum/faq/customizing-bd-to-fit-your-theme/

Reply

You must log in to post.

About this Plugin

About this Topic