Title: Shortcode in PHP not work
Last modified: March 20, 2017

---

# Shortcode in PHP not work

 *  Resolved [aristidov](https://wordpress.org/support/users/aristidov/)
 * (@aristidov)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/)
 * Hello,
 * like other peoples in this forum, i also see that shortcode not work in php.
   
   I tried with this code: <?php echo do_shortcode( ‘[wi_autosearch_suggest_form]’);?
   > <?php wi_autosearch_suggest_form(); ?>
 * …. but not showing search field. No mather what theme i trying.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [jalves](https://wordpress.org/support/users/jalves/)
 * (@jalves)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8940876)
 * same here,
 * I’m struggling too..
 * I’m using the Sydney theme and i want to use it in the header, but is not working..
 *  Plugin Author [Codieslab](https://wordpress.org/support/users/netflixtechweb/)
 * (@netflixtechweb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8942214)
 * Hi Aristidov and jalves
 * Can you send us your wordpress admin details ,So Our word press team help you
   and if any bug so he will resolved quickly .
 * Please send us your details on [netflixtechweb@gmail.com](https://wordpress.org/support/topic/shortcode-in-php-not-work/netflixtechweb@gmail.com?output_format=md).
 * If possible so please send FTP details
 *  [jalves](https://wordpress.org/support/users/jalves/)
 * (@jalves)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8944279)
 * My site is in a localhost…
 * I’m using Sydney theme..
 * thanks!
 *  Plugin Author [Codieslab](https://wordpress.org/support/users/netflixtechweb/)
 * (@netflixtechweb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8957672)
 * Hi jalves
 * you can follow below options for search box.
 * yourdomainname/wp-admin/widgets.php
 * You can Add “WP AutoSearch Suggest widget” in widget side bar then you can use
   shortcode [wi_autosearch_suggest_form] or function <?php wi_autosearch_suggest_form();?
   >.
 *  [jalves](https://wordpress.org/support/users/jalves/)
 * (@jalves)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8962885)
 * After doing this steps I’ll be able to add the shortcode in the header?
    Thanks!!
 *  [jalves](https://wordpress.org/support/users/jalves/)
 * (@jalves)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8967388)
 * i tried this and still does not work!!
    i follow the steps but in the end it 
   keeps loading.. and the site does not load.. can i give you the wp-content?
 * i really need this!!!
 * Can you help me?
 *  Plugin Author [Codieslab](https://wordpress.org/support/users/netflixtechweb/)
 * (@netflixtechweb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8967912)
 * Hi jalves
 * Please setup your project on your demo server then give us link so we should 
   check what is exactly issue.
 *  [Prince_Dhaval](https://wordpress.org/support/users/shethdhaval/)
 * (@shethdhaval)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8978080)
 * this plugin is not working anymore
    or if we change in wp-admin then whenever
   wordpress got updated the change was lost please do the needful
 *  [jalves](https://wordpress.org/support/users/jalves/)
 * (@jalves)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8979711)
 * [@netflixtechweb](https://wordpress.org/support/users/netflixtechweb/) i send
   you a email!
    thanks!!
    -  This reply was modified 9 years, 1 month ago by [jalves](https://wordpress.org/support/users/jalves/).
    -  This reply was modified 9 years, 1 month ago by [jalves](https://wordpress.org/support/users/jalves/).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Shortcode in PHP not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-autosearch_198ac0.svg)
 * [WP AutoComplete Search](https://wordpress.org/plugins/wp-autosearch/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-autosearch/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-autosearch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-autosearch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-autosearch/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [jalves](https://wordpress.org/support/users/jalves/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-php-not-work/#post-8979711)
 * Status: resolved