divider

How to Make the Search Feature in Your Blog Only Search Blog Posts

Services: Law Firm Website Design . SEO . Internet Marketing . Law Firm Marketing Guide . Content Marketing . PPC

Editing Your Blog Search Box to Only Produce Results in Your Blog

Recently a client asked us if we could adjust the blog search feature to only search posts in the blog (rather then searching individual pages of the website).

Why, yes – we can and so can you. To do this just add the line of code below.

<input type=”hidden” name=”post_type” value=”post” />

By adding this line of code you will only generate search results withing the blog platform. It is a quick and simple adjustment that can make the content within your blog more searchable.

Check out these other quick fixes:


Related Posts

Ready to Take Your Website to the Next Level? Great Ideas & Results Only a Phone Call Away

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Let's get started.

Leave a Reply

Your email address will not be published.

*