zomigi
Forum Replies Created
-
Cool, I got it fixed, and got all four custom attributes working. The code is not at all DRY, but I’m not a programmer to fix it, so I’ll have to live with it! ??
Thanks very much for your help!
Actually, I spoke too soon–it’s not working for me even with only one of the custom attributes in there. ?? It’s never showing the piece of data, even when the attribute does have some content in it.
Here’s my function:
function my_em_has_attribute_event_output_condition($replacement, $condition, $match, $EM_Event){ if( is_object($EM_Event) && preg_match('/^has_slideshare$/',$condition, $matches) ){ if( !in_array($args['slideshare_url'],$EM_Event->event_attributes) && !empty($EM_Event->event_attributes['slideshare_url']) ){ $replacement = preg_replace("/\{\/?$condition\}/", '', $match); }else{ $replacement = ''; } } return $replacement; } add_action('em_event_output_condition', 'my_em_has_attribute_event_output_condition', 1, 4);
And then here’s how I’m using it:
{has_slideshare}<li><a href="#_ATT{Slideshare URL}">View on Slideshare</a></li>{/has_slideshare}
What am I doing wrong?
Thanks agelonwl, I tried it on one of my custom placeholders and it worked perfectly.
Is there a way to modify the code to work with all four of my custom placeholders without having to copy that function multiple times? Just want to keep the code as DRY as possible. Thanks!
Forum: Plugins
In reply to: Blank page after clicking Check for Spam button – akismet_recheck_queueThanks ccolvin! Worked great for me.
Forum: Themes and Templates
In reply to: Need help please, my site is completely down right nowI get this same error with the Bueno theme. I deleted the entire theme and re-uploaded it and still get the error.
Forum: Fixing WordPress
In reply to: don’t see templates drop-down on Page edit pageThat fixed it. Thanks!
Forum: Fixing WordPress
In reply to: what happens to date when you update old post?Great, thanks!
Forum: Fixing WordPress
In reply to: check for spam header issue (akismet)I am now running 2.7.1. I no longer get any error, but when I click the check for spam button, it doesn’t identify any of the over 16,000 comments as spam, although they look just like the ones that it does catch as spam. So it still doesn’t appear to be working on old comments. Oh well!
Forum: Fixing WordPress
In reply to: what happens to date when you update old post?Thanks iridiax. The published date is what is usually shown in themes not just on the post itself, but also for the monthly archives?
Forum: Fixing WordPress
In reply to: check for spam header issue (akismet)I’m having this same problem, but I don’t understand the solution posted by mrmist. I have over 17,000 comments awaiting moderation, but I still get the error, so the problem for me is definitely not just happening when there are no comments awaiting approval.
Does anyone know how I can work around this error or deal with all this spam that’s already made it through before I got Akismet installed?