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-5ba17446f0ca2999245920/]   2 . create search result template for custom post type ( search-archive.php ) [crayon-5ba17446f0cab459323645/] 3 Build Search Form In this Search Form the value “products”  is..

Read More >


Click to close sidebar.