(Daves Live Search Plugin) Add Category to results

To show the category

1. Enable Author in the admin panel of the plugin by ticking the box. (Display Metadata, Display author & date for every search result)

2. Stop Date from showing With a bit of CSS tweaking, you should be there. Add this to your css.

3. Replace below code in plugins\daves-wordpress-live-search\class-daves-wordpress-live-search-results.php
Compare what you have in class-daves-wordpress-live-search-results.php with code below. Paste this after if ( $displayPostMeta ) {
All the way up to $post->post_author_nicename = $dog; Maybe replace the $dog or what ever you have!

Leave a Comment

Your email address will not be published. Required fields are marked *