• Resolved hsmastermind

    (@hsmastermind)


    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_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)
  • 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.