Syntax Error
-
Attempting to add a Tag search feature. I found this thread https://ww.wp.xz.cn/support/topic/add-tags-to-search-form/
Directed to this. 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_ENDIFOther 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>
The topic ‘Syntax Error’ is closed to new replies.