freshmint
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Shortcode in repeaterDang, no luck there, I tried using some other tags and removing the date reference but it was the same. here is my full repeater code
<?php global $post ?> <li class="event-block"> <span class="event-link"> <a class="event-tmb" href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail('event-thumb'); } else { echo '<img class="noimg" src="https://thecenterforthearts.dev/wp-content/uploads/2017/04/cfta-logoicon-w.jpg" />'; } ?> </a> <div class="event-cnt"> <div class="event-date"><?php echo do_shortcode('[event]#_{l, F jS} | #_12HSTARTTIME[/event]');?></div> <h2 class="event-name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <a class="event-btn" href="<?php the_permalink(); ?>"><i class="fa fa-ticket" aria-hidden="true"></i> Get Tickets</a> </div> </span> </li>
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Shortcode in repeaterEM has its own placeholder tags that you use in their editor: for example #_12HSTARTTIME outputs the event start time and #_{l, F jS} outputs a php date.
In order to use the placeholders in a template setting you have to wrap them in the [event][/event] shortcode ie: [event]#_12HSTARTTIME[/event].
This all seems to be working as the posts are outputing a date, the problem is that each group of three is repeating the same date of the first post in the group. Not sure if there was a some sort of wp_reset_postdata I needed to use to clear out the data in the repeater. Seems to be limited to the Events manager as I tried a test using Advanced Custom Fields and everything worked fine.
Check out the staging site to see a live example https://cftarts.staging.wpengine.com/
Used widget logic plugin to exclude the upcoming events widget using
!in_category(“events”)
Fixed mine by deleting the events widget from the sidebar on the grid page
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Date picker failureTried the above fix… no luck. All other functions work fine