• Hi there,
    I want to know what can i do to make my search result appear in tabular form. Is there any code required to do this process. can anyone guide me? thank you

Viewing 1 replies (of 1 total)
  • Jason King

    (@jasoncharlesstuartking)

    Within your theme there should be a template file called search.php. You need to alter its code.

    You will need to know how to code a table in HTML using tags such as table, th, tr etc. There are plenty of tutorials for that.

    It will help if you understand the concept of the loop in WordPress, know what IF and WHILE mean in PHP, and recognise a few basic template tags such as the_title and the_excerpt, so you can put table tags around them.

    BUT a search result should probably be a list not a table, unless you’ve done something like added custom fields that need to be displayed consistently in columns.

Viewing 1 replies (of 1 total)
  • The topic ‘How to show search result in tabular form’ is closed to new replies.