Forum Replies Created
-
AuthorPosts
-
titusrajParticipant
Hi Barry, I have got this working the way, except, I can’t get the images to show on the footer widgets for single post or single pages. It works exactly the way I want on the catgories and home page.
Thanks
TitustitusrajParticipantYou need to use this otherwise nav bars only appear on the homepage
add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if(is_archive() || is_tag() || is_home() && empty( $query->query_vars[‘suppress_filters’] ) ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘post’,’tribe_events’,’attachment’,’nav_menu_item’);
$query->set(‘post_type’,$post_type);
return $query;
}
}titusrajParticipantThis is the full code
// Registers core WordPress category and taxonomy taxonomies on the “Events” post type registered by the plugin “The Events Calendar”
add_action( ‘init’, ‘ac_add_calendar_taxonomy’, 20 );
function ac_add_calendar_taxonomy() {
register_taxonomy_for_object_type(‘category’, ‘tribe_events’);
register_taxonomy_for_object_type(‘post_tag’, ‘tribe_events’);
}add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if(is_archive() || is_tag() || is_home() && empty( $query->query_vars[‘suppress_filters’] ) ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘post’,’tribe_events’,’attachment’);
$query->set(‘post_type’,$post_type);
return $query;
}
}titusrajParticipantI have used this method as a temporary measure as it seemed easier for now as the featured thumbnails, I believe is going to be part of 3.0. However you do have to choose a normal category outside events. If you look at the bottom of my site http://www.musicforlondon.co.uk, under theatre tickets, I get the desired aesthetic effect
Add to theme functions
// Registers core WordPress category and taxonomy taxonomies on the “Events” post type registered by the plugin “The Events Calendar”
add_action( ‘init’, ‘ac_add_calendar_taxonomy’, 20 );
function ac_add_calendar_taxonomy() {
register_taxonomy_for_object_type(‘category’, ‘tribe_events’);
register_taxonomy_for_object_type(‘post_tag’, ‘tribe_events’);
}titusrajParticipantHi Barry,
Don’t worry about this, I have just realised the calendar version 3.0 is being released soon, I will not need this workaround.Cheers
TitustitusrajParticipantThank you for your help, I tried it, but the feed collects 2 jpegs, I believe it is showing the excerpt data as well. Is there a theme that it would be more compatible with?
titusrajParticipantBasically following up on the first question above, just to clarify, I reguire the full info to be on the RSS feed.
Question 2
is there away to add a thumbnail with ‘event list advanced widget’ I notice this option is not available on the event list widget.
Thanks
Titus -
AuthorPosts