jonathanappleseed
Forum Replies Created
-
Ok, settings for:
Event Page: http://postimg.org/image/n3yv8zrfz/
Event Category Page: http://postimg.org/image/x2jtvh0vj/
1. Bingo! If I turn off the Event Category page then the single category page appears with all of the info.
However, in the sidebar I get this error:
Notice: Undefined property: stdClass::$post_name in /home/ahovoyages/ahovoyages.com/wp-includes/template.php on line 244
That might be related to something else, but in any case, the information appears.
The part of the problem that remains, which I didn’t notice before, is that for the single events page, I am returned the default:
Something is wrong. There are no posts here.
Will there be a way for me to still include a category list page?
2. When I try this option (re-instating the category page, but removing the formatting), the single category page returns the default:
Something is wrong. There are no posts here.
This same issue of spitting out the default empty loop remains if I simultaneously choose ‘No Category Page’ and remove the formatting override.
…
I can definitely take a screenshot of the settings, but is there a specific section that would be useful?
@angelo_nwl Ok, I installed the dev version, but the problem persists.
@marcus Thanks for your help. I’ll take down the password protection on the site. http://ahovoyages.com
The solution here was as simple as scrolling to the bottom of the Event Categories settings and re-formatting the output for #_CATEGORYNEXTEVENT.
Thanks for all of your help above.
Hey, just to be clear, there’s no custom code in the Single Category page. Also, as I mentioned before the errors started happening immediately after installing the plugin, before making any changes.
To oblige, I deleted the custom code from both the category list page, and everywhere else it appears (even where it works perfectly), and it doesn’t have an effect on the errors.
Hi, no I believe that they’re unrelated. This issue is dealing specifically with single category pages. The other issue is dealing with the display of placeholder information on category list pages.
The errors on the single category pages started immediately and I added the custom code to the category lists to start building the sections that I was able to right away. I hope I’m able to resolve both the issues.
What this gives me is a string of errors, repeated for each instance of the placeholder use:
Notice: Undefined variable: EM_Category in ...wp-content/themes/ahovoyages2/functions.php on line 8 Notice: Trying to get property of non-object in ...wp-content/themes/ahovoyages2/functions.php on line 8
Also, from the little that I know about coding, I don’t think that this is going to give me the same output as:
#_EVENTDATES • #_LOCATIONTOWN
And I only want it to do that for the next future event.
5.5.1
Hmm… thank you.
I’m not sure how to edit this code. It seems there are lots of values I don’t know how to change.
I tried putting in this and nothing happened:
add_filter('em_location_output_placeholder','my_em_placeholder_mod',1,3); function my_em_placeholder_mod($replace, $EM_Location, $result){ switch( $result ){ case '#_LOCATIONTOWN': $events = EM_Events::get( array('location'=>$EM_Location->location_id, 'scope'=>'all') ); if ( count($events) > 0 ){ $replace = get_option('dbem_location_town_item_header_format'); $replace .= $event->output(get_option('dbem_location_town_item_format')); $replace .= get_option('dbem_location_event_town_footer_format'); } else { $replace = get_option('dbem_location_no_events_message'); } break; } return $replace; }
Hey, thanks for the response.
1) If I deactivate all of the plugins except for Events Manager and WPML then I still get the error message.
If I re-active all plugins, and then deactive WPML (and make necessary changes throughout my template to avoid fatal errors), then the page shows up with the content.
2) I could simply turn off debug mode and I wouldn’t see the errors. But there will still be no content on the page.
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] Multi language messageIf you’re using a multi-lingual plugin like WPML you will need to wrap your text in a gettext code. Example:
<?php _e('Notify Me', 'yourtranslation'); ?>
And then you will need to create a translation file (.po, .pot) for your theme.
You can look into information on internationalizing your theme here.
If that’s the only piece of text in your whole theme that you need to translate for some reason, then you could use this php code:
<?php $mylocale = get_bloginfo('language'); if($mylocale == 'fr-FR'){ echo 'Informez-moi...'; } elseif($mylocale == 'hr-HR'){ echo 'Obavijesti me...'; } else { echo 'Notify me...'; } ?>
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] default groupJust to chip in, a hidden value would work for me. I use separate groups for English and French email subscriptions, and if I could throw in some PHP to select the group based on the language people are viewing with that would be really helpful.
Forum: Plugins
In reply to: [Testimonials Widget] Custom HTML OutputNo it’s all good. I can take care of the html now.
Forum: Plugins
In reply to: [Testimonials Widget] Custom HTML OutputWorks like a charm. Thank you!
Forum: Plugins
In reply to: [Testimonials Widget] Custom HTML OutputEven stranger…
If I select “Hide Author/Source” in the settings menu then the only output I get on the homepage are the names of the citation sources and nothing else.