Changing the listing template to include content / excerpt and a read more link.
-
Hi there, I bought the search widget and it’s super thank you.
However I want to highlight the first store in the locator page list by adding the content(description) to the first entry. (I was going to use css to only show the extra content for the nearest store).
So I have tried adding this to my functions.php to pull in the content which would be fine:
[php]add_filter( ‘wpsl_include_post_content’, ‘__return_true’ );[/php]
and I tried adding this in functions too within the other listing_template code which I already edited to add in the email link – which works.
$listing_template .= “\t\t” . ‘<% if ( description ) { %>’ . “\r\n”;
$listing_template .= “\t\t” . ‘<%= description %>’ . “\r\n”;
$listing_template .= “\t\t” . ‘<% } %>’ . “\r\n”;only neither of those do anything ??
Also, I want to add a link to the listing which says “click here for more information” which goes to the main store locator page which has some extra info.
Can you help me achieve these things?
Thank you so much.
- The topic ‘Changing the listing template to include content / excerpt and a read more link.’ is closed to new replies.