Title: Syntax Error
Last modified: October 2, 2017

---

# Syntax Error

 *  Resolved [hsmastermind](https://wordpress.org/support/users/hsmastermind/)
 * (@hsmastermind)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-167/)
 * Attempting to add a Tag search feature. I found this thread [https://wordpress.org/support/topic/add-tags-to-search-form/](https://wordpress.org/support/topic/add-tags-to-search-form/)
   
   Directed to this. [https://pastebin.com/V96b5RN9](https://pastebin.com/V96b5RN9)
   I am unable to find the code mentioned. At the same time it showing on the Kudo
   Powershell at line 17 “Syntax Error, unexpected “<” expecting T_ENDIF
 * Other notes.
    I am using the FullCalendar. This has the tags, but I have so many
   that the list is too long. The built in search of the Events Manger is not working.
   That could be a conflict with Site Origin Page Builder.
 *  <div class=”em-search-main”>
    <?php do_action(’em_template_events_search_form_header’);//
   hook in here to add extra fields, text etc. ?> <?php //search text if( !empty(
   $args[‘search_term’]) ) em_locate_template(‘templates/search/search.php’,true,
   array(‘args’=>$args)); if( !empty($args[‘search_geo’]) ) em_locate_template(‘
   templates/search/geo.php’,true,array(‘args’=>$args)); ?> <?php if( !empty($args[‘
   css’]) ) : //show the button here if we’re using the default styling, if you 
   still want to use this and use custom CSS, then you have to override our rules?
   > <button type=”submit” class=”em-search-submit loading”> <?php //before you 
   ask, this hack is necessary thanks to stupid IE7 ?> <!–[if IE 7]><span><![endif]–
   > includes/images/search-mag.png” alt=”<?php esc_attr_e(‘Search’, ‘events-manager’);?
   >” /> <!–[if IE 7]></span><![endif]–> </button> <?php endif; ?> </div>

Viewing 1 replies (of 1 total)

 *  [jordanthedesigner](https://wordpress.org/support/users/jordanthedesigner/)
 * (@jordanthedesigner)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-167/#post-9550060)
 * Hello,
 * I’m sorry you’re running into this issue. Hopefully we can get this solved so
   you’re able to get back to important things 🙂 First, let me ask if you attempt
   to use the code with the default theme active and all plugins except EM disabled,
   do you still run into the same issue?

Viewing 1 replies (of 1 total)

The topic ‘Syntax Error’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [jordanthedesigner](https://wordpress.org/support/users/jordanthedesigner/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-167/#post-9550060)
 * Status: resolved