I wonder if it is possible to display author name or created_by or created_by_alias in com_search results page.

In components/com_search/views/search/tmpl/default_results.php, this obviously wouldn't work :

        <?php echo $result->created_by_alias; ?>
    <?php endforeach; ?>

1 Answer 1


You cannot do this with the default Search component without modifying the search plugin database query. This is considered a core hack, therefore not recommended.

Instead I'd suggest using Smart Search:

  1. Go to Plugins >> Smart Search, then enable it.
  2. Go to Modules >> Smart Search. Enable and assign to a page.
  3. Go to Components >> Smart Search >> Index.

Now that the initial steps are done, you should create a Template Override for the following file:


Once done, open the template override file:


In here, you need to add the following code which will display the author:

<?php echo $this->result->author; ?>

Hope this helps


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.