neuroticartist
El Presidente
Just Getting Started
Member Likes (0)
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.

Responses (5)
Support Kangaroo (joined March 2011) Likes (0)
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
Member (joined December 2011) Likes (0)
Thanks Joe, He's been really helpful so far (so have you) I appreciate it and look forward to his reply
Roz
Developer (joined January 2012) Likes (0)
Next version adds an excerpt field to the input. You can also modify the template to use http://codex.wordpress.org/Function_Reference/get_the_excerpt to display a fixed nu,ber pof words.
Member (joined December 2011) Likes (0)
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?
Member (joined December 2011) Likes (0)
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
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
Become a member