Forum Replies Created
-
AuthorPosts
-
BristonParticipant
Oh right….
http://pastebin.com/wKtE9rtYBristonParticipantOK no posting code here i guess 🙁 sad trombone.
BristonParticipantLets try the code part again I’ve added this underneath the header in month/single-day.php:
First Friday<a href="”>View Events
have_posts()) : $day[‘events’]->the_post(); ?>BristonParticipantHi Leah,
You are right on the money with what I”m trying to do. Instead of listing any events, I’d like to just list “first friday” and link that to the day view. I’ve tried the code below to no avail (views/month/single-day.php):if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>
<div id="tribe-events-daynum-“>
<a href="”>format( ‘M j’ )) == strtotime( $date_to_check )) :
//echo “first friday!!!”;
return true;
else : // aint first friday chief
return false;
endif;}
?>
First Friday<a href="”>View Events
have_posts()) : $day[‘events’]->the_post(); ?>BristonParticipantAbsolutely. Thank you for your guidance.
BristonParticipantWhoops I accidentally deleted display_day_title() when carving out the comments for pasting here. The display_day_title() was being called directly before display_day().
Another approach would be to modify the array holding all the events to not have any duplicate id posts. I have no clue how to do that though… Any ideas
BristonParticipantThanks Barry. I’m investigating the CSS route currently. Your right, it is a bit clunky. Any suggestions for refactoring?
BristonParticipantCheck out this photo:
http://d.pr/i/COKiSee from the 18th on how the multi day event is highlighted? I’m needing to only highlight the first day of the event. I’m classing the div through display_day_title() (~ line 101) function which fires before display_day() and the exclude function we’ve added. I hope this makes sense.
BristonParticipantHere is what i’m working with:
http://pastebin.com/CLFfuU5KThank you.
BristonParticipantThank you for the reply Barry. Unfortunately that doesn’t get me where I need to be. I’m needing to know if there is really a valid date (not an end date after the first day) in display_day_title() as well. I’m taking care of some classing in that function. Is there any way to modify the results or a custom query instead?
BristonParticipantWhoops! Subscribing to thread…
BristonParticipantHi Barry,
Thanks for the reply. I am referring to events that start on one day and end on a day in the future and not recurring patter events. Indeed, it is only in the context of gridview.
-
AuthorPosts