tsfstemalliance

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Date field in Search Bar Does Not Work #1523703
    tsfstemalliance
    Participant

    I found a work-around to the issue, sort of. The date picker only works when view is set to “view as day” before you can search for a single day event. Please improve on this in the future so users can use the date picker regardless of which view you are on.

    in reply to: Enqueuing css files #1523308
    tsfstemalliance
    Participant

    Thanks again Sky.

    For instance, this line from your github: wp_enqueue_style("tribe.homepage",WP_PLUGIN_URL."/the-events-calendar/resources/tribe-events-full.css");

    When I used this in my functions.php the css does not apply to the bar.php in my theme custom page template. Hence, I assumed this code does not apply to the pro plugin because the folder is not the same as the pro plugin folder. Therefore, I am asking how you would write this enqueue style for the pro plugin bar.php code in my custom template

    in reply to: Enqueuing css files #1522268
    tsfstemalliance
    Participant

    Not a question on how to enque but how to correctly pull the scripts from the pro plugin. It seems like the code you suggested is applicable to the free version. This shouldn’t be beyond support since you have the code here at https://gist.github.com/geoffgraham/510e158ae56a77ed9e76. The enqueuing files are not pointing to the correct tribe pro directory.

    in reply to: Query events to display free events only #1510711
    tsfstemalliance
    Participant

    Thanks Juan for your quick reply. I just realized also that I need to create a function for it as noted here:

    function display_free_events(){
    	if (is_page('Free Events')){
    		
    	$args = array(
        'post_type'  => Tribe__Events__Main::POSTTYPE,
        'meta_query' => array(
                             array(
                                'key'     => '_EventCost',
                                'value'   => '0',
                                'compare' => '=',
                             )
                           ),
        'posts_per_page' => -1,
    );
     
    $free_events = new WP_Query( $args );	
    		
    	}
    	
    }
    add_action('genesis_loop', 'display_free_events');

    I’ll integrate the code you just sent.

    in reply to: Query events to display free events only #1510695
    tsfstemalliance
    Participant

    Sorry again Juan I have a followup question. I created a custom template, created a blank page and assigned the custom template for the page. However, the page came out blank on the front end. I also went further to put the template inside the community folder in accordance with your templating instructions but still came up blank. I used the WP Debug to display errors but none, just the white screen.

    The questions is: How would I use the code in a custom template to display events on the front end?

    in reply to: Query events to display free events only #1510644
    tsfstemalliance
    Participant

    Thank you Juan. We’ll give it a try

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