Forum Replies Created
-
AuthorPosts
-
gianpieroParticipant
Hi Brian,
thanks for your reply. We decided to deactivate the plugin for this project as most of our users use prehistoric browsers. We’ll use normal posts instead.
Thank yougianpieroParticipantok, just found out that users don’t have access to http://www.mysite.com/calendar, but they do have access to http://www.mysite.com/calendar/category/MyCategory (weird). Is there any snippets I could add to functions.php to grant access to all member to the calendar page? How can I target this particular page? thanks
gianpieroParticipantMorning Geoff,
thanks for your support.
In the end I sorted this out making a custom sidebar with upcoming tribe events and calling get_sidebar(‘custom’) in my featured page. Not very elegant, but it worked.
Just to be greedy.. is there a way to pull featured image thumbs for each event in the widget?
thank yougianpieroParticipantHi Geoff, thanks for your reply,
I used tribe_get_start_date but it returns the date of today (?)
Maybe I’ve inserted it in the wrong query? This below is what I amended<?php
$cat_id = get_post_meta($post->ID, ‘wt_meta_sec_left_cat’, true);
$num_posts = get_post_meta($post->ID, ‘wt_meta_sec_left_posts’, true);if (($num_posts < 1) or ($num_posts > 8)) {
$num_posts = 8;
}$args = array(
‘cat’ => ‘tribe-events-calendar-pro’,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => 1,
‘posts_per_page’ => $num_posts,
);$query = new WP_Query( $args );
if ( $query -> have_posts() ) :
while ( $query -> have_posts() ) : $query -> the_post(); ?>
<div class=”item-post”>
<?php if ( has_post_thumbnail() ) { ?>
<div class=”thumb”>
“><?php the_post_thumbnail( ‘wt65_65’ ); ?>
</div>
<?php } ?>
<div class=”post-right”>
<h5>“><?php the_title(); ?></h5>
<div class=”entry-meta”>
<?php
global $post;
$comment_count = get_comments_number($post->ID);
if ($comment_count > 0){
$comment_class = ‘ main-color-bg’;
} else {
$comment_class = ‘ no-comment-bg’;
}
?>
<span class=”comments-bg<?php echo $comment_class; ?>”>
<i class=”fa fa-comment”></i>
<?php comments_popup_link( __(‘0’, ‘wellthemes’), __( ‘1’, ‘wellthemes’), __(‘%’, ‘wellthemes’)); ?>
</span>
<span class=”sep” style=”text-transform: none !important”>Posted on</span><br/><span class=”date”><?php echo tribe_get_start_date(), tribe_get_end_date(); ?></span>
</div></div>
</div><?php
endwhile;
endif;
wp_reset_query(); ?>My eyes are bleeding…
Any suggestion would be mega appreciated
thanksgianpieroParticipantok, I’ve managed to pull all facebook events modifying my template and replacing ‘cat’ => $cat_id, with ‘cat’ => ‘tribe-events-calendar-pro’, in the relevant array. Now I’m on a mission to pull facebook event dates (at the moment date of publishing is shown).
What is the corresponding get_the_date() in Calendar Event Pro plugin for facebook events? -
AuthorPosts