Support » Plugins and Hacks » Business Directory Plugin » Random Listing widget – Show Thumbnail

  • Resolved djeshm

    (@djeshm)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)


    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/

Viewing 1 replies (of 1 total)
  • The topic ‘Random Listing widget – Show Thumbnail’ is closed to new replies.