Daniel

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Adding Event Category to Single Event Listing #1299752
    Daniel
    Participant

    Thanks so much! That worked perfectly for me! I appreciate your assistance.

    in reply to: Customization/Feature Questions #1298418
    Daniel
    Participant

    * Set up the date search in the tribe events bar.
    *
    * @param array $filters The current filters in the bar array.
    *
    * @return array The modified filters array.
    */
    public function setup_date_search_in_bar( $filters ) {
    global $wp_query;
    $value = apply_filters( ‘tribe-events-bar-date-search-default-value’, ” );
    if ( ! empty( $_REQUEST[‘tribe-bar-date’] ) ) {
    $value = $_REQUEST[‘tribe-bar-date’];
    }
    $caption = esc_html__( ‘Application Deadline’, ‘the-events-calendar’ );
    if ( tribe_is_month() ) {
    $caption = sprintf( esc_html__( ‘%s In’, ‘the-events-calendar’ ), $this->plural_event_label );
    } elseif ( tribe_is_list_view() ) {
    $caption = sprintf( esc_html__( ‘%s From’, ‘the-events-calendar’ ), $this->plural_event_label );
    } elseif ( tribe_is_day() ) {
    $caption = esc_html__( ‘Day Of’, ‘the-events-calendar’ );
    $value = date( Tribe__Date_Utils::DBDATEFORMAT, strtotime( $wp_query->query_vars[‘eventDate’] ) );
    }
    $caption = apply_filters( ‘tribe_bar_datepicker_caption’, $caption );
    $filters[‘tribe-bar-date’] = array(
    ‘name’ => ‘tribe-bar-date’,
    ‘caption’ => $caption,
    ‘html’ => ‘<input type=”text” name=”tribe-bar-date” style=”position: relative;” id=”tribe-bar-date” value=”‘ . esc_attr( $value ) . ‘” placeholder=”‘ . esc_attr__( ‘Date’, ‘the-events-calendar’ ) . ‘”><input type=”hidden” name=”tribe-bar-date-day” id=”tribe-bar-date-day” class=”tribe-no-param” value=””>’,
    );
    return $filters;
    }

    I’ve added this to my functions.php file in the theme and it crashes the page to where it loads empty. I also tried it in the plugins functions general.php file to same affect.

    I appreciate your assistance!

    in reply to: Event Calendar Not in wp-contents #1298415
    Daniel
    Participant

    This is resolved, thank you for your time!

    in reply to: Customization/Feature Questions #1298414
    Daniel
    Participant

    Ok – in regards to this though, what exactly is near meant to search by? Or is this again based upon the view.

    Also, how do we go about changing the label? I have found a few threads but they’re older and don’t appear to be working at this point in time (I could be referencing the wrong ones). We want to change ‘Date’ to ‘Application Deadline’.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)