Brett Atkin

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Events Not Showing on Live Site #1618764
    Brett Atkin
    Participant

    The issue was caching. I host with WPEngine and they excluded the /events/ page from caching and that fixed the issue.

    I recently updated my plugins, did you change something related to this?

    Thanks

    Brett

    in reply to: Menu Navigation – current_page_parent class #1255152
    Brett Atkin
    Participant

    Here is a solution to this issue:

    http://bigspring.co.uk/solve-wordpress-active-highlighting-issues-using-custom-post-type/

    I have multiple CPT’s on my site and it fixed them all. If you’re curious, this is the code I used.

    // Active highlighting for CPT's
    // -------------------------------------------------------------------------
    function custom_menu_item_classes_job_board($classes = array(), $menu_item = false){
     
    	// use this format for removing highlighting
        if((is_singular('shrm_job_board') || is_post_type_archive('shrm_job_board')) && $menu_item->ID == 159) {
    		$classes = array();
    	}
    	
    	// use this format for adding highlighting
        if((is_singular('shrm_job_board') || is_post_type_archive('shrm_job_board')) && $menu_item->ID == 351) {
    		$classes[] = 'active';
    	}
    	
    	return $classes;
    }
    add_filter( 'nav_menu_css_class', 'custom_menu_item_classes_job_board', 10, 2 );
    
    function custom_menu_item_classes_events($classes = array(), $menu_item = false){
    
        if((is_singular('tribe_events') || is_post_type_archive('tribe_events')) && $menu_item->ID == 159) {
    		$classes = array();
    	}
    	
    	
    	// use this format for adding highlighting
        if((is_singular('tribe_events') || is_post_type_archive('tribe_events')) && $menu_item->ID == 99) {
    		$classes[] = 'active';
    	}
    	
    	return $classes;
    }
    add_filter( 'nav_menu_css_class', 'custom_menu_item_classes_events', 10, 2 );
    in reply to: Events List Widget Not Working #971919
    Brett Atkin
    Participant

    I did customize the list-widget.php. It wasn’t anything major, so I’ll explore just updating the current plugin file with my customizations.

    Thanks

    Brett

    in reply to: Events List Widget Not Working #971384
    Brett Atkin
    Participant

    I just downgraded both plugins to the versions on the staging site and everything is working. I’m running TEC Version 3.9.3 and TEC Pro Version 3.9.1. Apparently, the recent update to 3.10 is causing issues.

    in reply to: Events List Widget Not Working #971379
    Brett Atkin
    Participant

    I now have version 3.10 of both TEC and TEC Pro…the widget still isn’t working on the production site.

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