I am getting 404 errors on all events pages
go to http://www.storytrading.com/events/ and click on any event. 404 errror!
is this because of the code you gave me to add to function.php to fix the 404 error on community pages?
This was the code that was added:
/*
* Possible solution for Single Event page 404 errors where the WP_Query has an attachment set
* IMPORTANT: Flush permalinks after pasting this code: http://tri.be/support/documentation/troubleshooting-404-errors/
*/
function tribe_attachment_404_fix () {
if (class_exists(‘TribeEvents’)) {
remove_action( ‘init’, array( TribeEvents::instance(), ‘init’ ), 10 );
add_action( ‘init’, array( TribeEvents::instance(), ‘init’ ), 1 );
}
}
add_action( ‘after_setup_theme’, ‘tribe_attachment_404_fix’ );
-
This topic was modified 10 years, 8 months ago by
Houman.
-
This topic was modified 10 years, 8 months ago by
Brian.