WordPress.org

Forums

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

  1. djeshm
    Member
    Posted 2 years 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 2 years 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Business Directory Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic