James Andrews
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Organiser] Foreign Addresses show incorrect mapsHere’s the solution all coded out if you want to use it.
Change line 633 of event-organiser-venue-functions.php to this.
$tooltip_content = eo_address_formatter('a, c, s, p, C', $address);
Then add this function to the same file somewhere.
function eo_address_formatter($format, $address_array) { // Format characteers and their associated values $format_map = array( 's' => 'state', 'c' => 'city', 'a' => 'address', 'p' => 'postcode', 'C' => 'country', ); $address = ""; for($i = 0; $i < strlen($format); $i++) { if(isset($format_map[$format[$i]])) { $address .= $address_array[$format_map[$format[$i]]]; } else { $address .=$format[$i]; } } return $address; }
Then all we’d need is somewhere to be able to choose the format. Probably on the venue page so that way you can choose the format based on the venue, as some places may have events in more than one country.
Forum: Plugins
In reply to: [Event Organiser] the_content filterConfirming this issue is resolved as of 1.7.3 thanks.
Forum: Plugins
In reply to: [Event Organiser] Error Calling eo_get_event_meta_list()Installed 1.7.3 this problem is resolved.
Forum: Plugins
In reply to: [Event Organiser] Error Calling eo_get_event_meta_list()Thought it’d be a quick fix. Again will wait for 1.7.3
Thanks again.
Forum: Plugins
In reply to: [Event Organiser] the_content filterLOL… Well glad it’s considered a bug. I’ll wait for the update, but you may also want to check the bug I just posted as well before you push code, may be an easy fix. Kill 2 pigs with one bird.
Forum: Plugins
In reply to: [Event Organiser] the_content filterHello Stephen,
Thank you for your quick response. I have created my theme from scratch and have included a single-event.php file. When I use the_content() in my template that’s when I get all the meta data at the top?
Wouldn’t a better approach to plug and play be to not over-ride the the_content, but instead in the theme default templates add the code there to call what you want. That way if someone who wants to layout the info the way they want it can just look at what you are calling in the template and put it where they want.
something like:
` eo_display_meta_block(); the_content()’In the template Would do the same thing, but make it 100x more customizable for those of us who are competent enough to customize a page. I am guessing my problem stems from your bugs that were displaying the wrong template which I why I had thought it was going to work the way I wanted.
In the end I’ll take your advice and remove the filter, it did remove the meta, but it’s be nice if I didn’t have to hack around it.
Forum: Plugins
In reply to: [Full Circle] [Plugin: Full Circle] How Do I Use?It’s no longer supported, Facebook and twitter have changed their APIs and there are so many plugins out there that work that I saw no reason to continue. I’ll be looking to remove this just not sure how yet.
Forum: Themes and Templates
In reply to: post title inside the_content()On a 2nd note, I see this is in the Themes section. Have you tried just called “get_the_title()” from within the template?
Edit: not sure if this will really work…
Forum: Themes and Templates
In reply to: post title inside the_content()You need to create a plugin to accomplish this.
something like
<?php add_filter('the_content', 'myplugin_add_title'); function myplugin_add_title($content='') { $theTitle = '<div>' . get_the_title() . '</div>'; return $theTitle . $content; } ?>
What this does is when “the_content” is called the filter runs this function. The function creates a variable that stores the title of the post surrounded by divs. Then when the function returns. It returns the title before the content.
Good luck.