Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'genesis_loop', 'jl_cpt_search_form' );
- function jl_cpt_search_form() {
- if ( is_singular( 'cpt' ) || is_post_type_archive( 'cpt' ) ) {
- // search form code here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement