Support » Plugin: Business Directory Plugin » how can I modify the listings layout?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author businessdirectoryplugin


    Hi spikespiegel,

    This is the best place to start here:

    Also, there’s the custom CSS article as well, which is related: How to use custom CSS with Business Directory in a way that doesn’t get overwritten on upgrade of BD:

    For the characters question, which field(s) are you trying to limit? That may require core plugin modifications to handle right now.

    THis is not exactly what I need. I did some hack in the file businessdirectory-excerpt.tpl.php, now the code is like this:

    <?php echo $thumbnail; ?>
    <div  class="listing-details">
    echo substr($listing_fields,0, 1000) . "...";
    <div style="clear:both">

    This will display only the first 1000 characters of each listing on the Listings Page.

    That part is ok, what I need now is to edit the single listing page. I don’t seem to find out how to edit just the content part, I mean, there is a function called $listing_fields in the file businessdirectory-listing.tpl.php, it displays the full listing, I need to know how to display just the description, how can I do that? I tried:

    echo $listing_fields .= $field->display( $post->ID, 'excerpt' );


    echo $listing_fields .= $field->display( $post->ID, 'listing' );

    But it didn’t work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how can I modify the listings layout?’ is closed to new replies.