Blog-WordPress Tips, Tricks & Other Tutorial

How to create a custom search for custom post type?

posted by Solaiman in Tips And Tricks, Wordpress

let’s say your custom post type is “products“ 1 . Add Function Codes here you can specify the archive-search.php Add this below code on your functions.php file [crayon-59fbfe05b7dc2521248338/]   2 . create search result template for custom post type ( search-archive.php ) [crayon-59fbfe05b7dc8484851030/] 3 Build Search Form In this Search Form the value “products”  is..

Read More >

Menu

Click to close sidebar.