May 29, 2013 at 9:08 am #23988
Hi there, is there anyway to change the look of posts when they’ve been collated after a search? i.e. if I search for a post I get the Freatured Image and excerpt. I’d like to add other elements to the way the search results appear perhaps a simple ‘contact’ or ‘read more’ link or button.
ThanksMay 30, 2013 at 6:58 am #121904
Yes sure – you can add your code to wp-contentthemesenfoldincludesloop-search.php. Eg for a read more button replace:
echo '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>';May 30, 2013 at 1:32 pm #121905
Thanks Dude, this partially works, or perhaps I wasn’t very clear in my initial request.
Example if the search box (top right in header) is used to forthe search, it generates a horizontal search result with title/excerpt and the new ‘read more’ text which is great, however, if the WP catagory search widget is used then the result is image/excerpt but no ‘read more’ text, this is the search result that I’d really like, can this be done?
SilvioMay 31, 2013 at 8:31 am #121906
Which “WP catagory search widget” do you mean? Is this a third party plugin/extension?
PeterMay 31, 2013 at 9:17 am #121907May 31, 2013 at 9:22 am #121908
Maybe I’m blind but I’m not aware of a “Category search widget” which is bundled with WordPress. Can you make a screenshot please?
PeterMay 31, 2013 at 10:39 am #121909
Its trhe standard catagory widget, where can I upload a screen shot – i.e catagories – a list of drop down catagoriesJune 2, 2013 at 11:40 pm #121910
Sorry for the delay , the fault is mine. You can upload a screen shot to your Dropbox, Google Drive, Imgur.com, clipular.com or a number of other free image upload websites.
NickJune 3, 2013 at 9:13 am #121911
The topic ‘POST IN SEARCH VIEW’ is closed to new replies.