Last active
October 6, 2016 21:05
-
-
Save jpmarchand/5a4049023647152b064d to your computer and use it in GitHub Desktop.
Display a search form using a shortcode in WordPress. Source: http://www.wpbeginner.com/wp-tutorials/how-to-add-search-form-in-your-post-with-a-wordpress-search-shortcode/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Display a search form using the shortcode [customprefix-search] | |
add_shortcode('customprefix-search', 'get_search_form'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment