iamharlan
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Organiser] Event List excerpt not working…??I guess I’m confused. If I’m able to pull up the unique title for each event, why can’t I pull up it’s description. Am I not in a foreach loop? Is there a different function as an alternative to the_content for pulling up the event’s description?
Thanks!
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] Warning: Missing argument 2Ditto. Same issue on my site.
EDIT: The dev version did seem to solve the issue for me. Can’t speak for the OP, obviously.
Forum: Plugins
In reply to: [Ultimate Wordpress Auction Plugin] Shortcode not displaying auctions?You’ll have to ask them. They logged into wordpress and fixed it for me. Good luck!
Forum: Plugins
In reply to: [Ultimate Wordpress Auction Plugin] Shortcode not displaying auctions?You should have an email from Harlan in your inbox. Thank you!
Forum: Plugins
In reply to: [Simple Subscribe] Redirect to new page or location of form on same page.Thanks for the reply!
Sure, but where would I put that in the plugin code? Would it be on the forms.php file? It’s difficult to know where to place an anchor since the form is created dynamically through the Nette framework. Can you point me in the right direction for adding an anchor?
Thanks!
Forum: Plugins
In reply to: [Simple Subscribe] Redirect to new page or location of form on same page.Oh, I forgot…here’s my install.
Thanks! I’ll give that a shot.
Forum: Plugins
In reply to: [Event Organiser] Problems with adding an event in addition to main loop…Yeah, I guess this is just over my head. Like I said, I’m not much of a php coder. Placing the code from the post above in my content is just causing errors on the page.
Forum: Plugins
In reply to: [Event Organiser] Problems with adding an event in addition to main loop…I am just getting back around to this, and I’m still having trouble. I understand the idea of getting the content by an ID, but as this is being pulled dynamically, i.e. the latest event, I can’t really just do that can I?
Basically I just want to place the event, or a list of events on the page, and have it pull the content from the event as well as everything else. Everything is working correctly, except the content. It’s just blank there.
Any ideas?
Forum: Plugins
In reply to: [Event Organiser] Problems with adding an event in addition to main loop…Ok…I have this almost working completely…with one small issue remaining. I would like the content of the event to show with it in the display. It currently is just stripping the < ? php the_content ?> tag out. Any ideas?
Here’s the code:
<article class="post blog-event"> <?php $event_args = array( 'numberposts' => 1, 'orderby' => 'eventstart', 'order' => 'ASC', 'event_end_after' => 'today' ); $events = eo_get_events($event_args); if ($events): $return= ''; global $post; $temp = $post; foreach ($events as $post): ?> <a href="<?php the_permalink();?>"><?php if ( has_post_thumbnail() ) { echo get_the_post_thumbnail($page->ID, 'medium', array('class' => 'post-thumbnail')); } ?></a><?php $key = 'Video'; $themeta = get_post_meta($post->ID, $key, TRUE); if($themeta != '') { echo get_post_meta($post->ID, 'Video', true); } ?> <a href="<?php the_permalink();?>"><h2><?php the_title(); ?></h2></a> <div class="meta"> <!-- Choose a different date format depending on whether we want to include time --> <?php if(eo_is_all_day()): ?> <!-- Event is all day --> <?php $date_format = 'F jS, Y'; ?> <?php else: ?> <!-- Event is not all day - include time in format --> <?php $date_format = 'F jS, Y g:ia'; ?> <?php endif; ?> <?php printf(__('<h2>%s</h2>','eventorganiser'), eo_get_the_start($date_format) );?> <?php if(eo_reoccurs()):?> <!-- Event reoccurs - is there a next occurrence? --> <?php $next = eo_get_next_occurrence($date_format);?> <?php if($next): ?> <!-- If the event is occurring again in the future, display the date --> <?php printf(__('This event is running from %1$s until %2$s. The next chance to catch it at Vetro is %3$s','eventorganiser'), eo_get_schedule_start('F jS, Y'), eo_get_schedule_last('F jS, Y'), $next);?> <?php else: ?> <!-- Otherwise the event has finished (no more occurrences) --> <?php printf(__('This event finished on %s','eventorganiser'), eo_get_schedule_last('F d, Y',''));?> <?php endif; ?> <?php else: ?> <!-- Event is a single event --> <?php endif; ?> </div><!-- meta --> <?php the_content( 'Read more ?' ); ?> <div class="clearfix"></div> <?php endforeach; //Reset post variable $post = $temp; endif; ?> </article><!--blog-event-->
Forum: Plugins
In reply to: [Event Organiser] Problems with adding an event in addition to main loop…Thanks for the reply! I might need a bit of help working through that. Is there an example of this being worked through somewhere? I’m not the best php coder…so I’m kind of just reverse engineering this thing.
I did do the debug to no avail yesterday. I did manage to find out some other issues though…so it’s still a good tool.
That said, after messing with it forever yesterday, I did manage to get it working. I’m not sure if this solution will work for everyone, but maybe it will be a help to those searching for this.
I ended up changing my permalink structure in the settings from the date option to a custom option, and filled in my information from there. I’m not sure if I didn’t have proper permalinks going or what, but as soon as I did that, the Facebook share began working.
Forum: Themes and Templates
In reply to: Resetting post query after the first page.Brilliant. That worked perfectly. Thanks a ton!
Forum: Themes and Templates
In reply to: Resetting post query after the first page.Anyone? Or do you know of a better way to place the first post in a separate div and let the rest flow normally?
Forum: Themes and Templates
In reply to: Resetting post query after the first page.Oh, and I understand that I can just put a conditional tag on the first query to only display on the home page, but the second query is still going to start from the offset=1 position. And if I put it in the same conditional tag, the next navigation just starts from the beginning with post 1.