Category Listings -(not full text)

Currently, when a user clicks on a category of listings, they are taken to a page that shows boxed listings of every business in that category. This is perfect for me, but some of them have a small amount of copy, while others are loaded with text.

How can I get this category listing to only show a summary, or excerpt, of whats on the business’s listing page? this way he listing page is a bit more uniform in its layout.

Also, I dont want to change a setting that effects every category on the site, this is a multi use site and only a section of it is for Business listings. so it should only effect the listings. I have a pagelistings.php that pulls the content if this helps.

  • aecnu
    • WP Unicorn

    Greetings neuroticartist,

    I believe this can indeed be accomplished for all sites in the network, but for just individual sites I think not.

    However, I certainly do not know everything, and possibly the lead developer could make it so that excerpts from a post may work too instead of the full blown listing.

    Therefore to get the low down on this for sure I will see about getting the lead developer in here with his invaluable insight into the Directory plugin to see if indeed there is a way to do this and any advice he may have to accomplish this feature if at all possible.

    Though this may take a bit longer then a normal ticket, I will try to get him in here asap.

    Cheers, Joe

  • neuroticartist
    • Design Lord, Child of Thor

    Thanks Arnold, I am assuming the category listings and the listing pages both use the page-listings.php? or does only the category listings use that page? if thats the case,I am assuming thats where I would switch out the code for something like <?php $excerpt = get_the_excerpt( $deprecated ) ?>

    would this be correct?

  • neuroticartist
    • Design Lord, Child of Thor

    Thanks Arnold, no matter what I tried it would crash the page or show no content at all. Showing nothing made me check in my functions.php and there was no instances of an excerpt function so I added this

    function custom_excerpt_length( $length ) {
    return 20;
    add_filter( 'excerpt_length', 'custom_excerpt_length', 50 );

    and without having to make any changes to my page-listings.php or dashboard full text or summary, it seems to be working great now. Only shows an excerpt with the “More Info >” link

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.