Forum Replies Created
-
AuthorPosts
-
Anders
ParticipantThanks!
(You might be hearing a bit from me over the next week or so as I hammer out the last couple of quirks with my first Events Calendar Project. Hopefully there will be much less issues next time around. )
February 13, 2015 at 1:14 pm in reply to: Pointers to add custom fields within their own section? #942434Anders
ParticipantClosing topic.
February 13, 2015 at 1:13 pm in reply to: Pointers to add custom fields within their own section? #942433Anders
ParticipantThanks for the pointers. Very helpful indeed.
In the end I ended up just hi-jacking the Other section of the default build and use that for my extra information, by changing the name of that section.
February 13, 2015 at 1:12 pm in reply to: Preventing line breaks between time and "am" and "pm"? #942432Anders
ParticipantThis reply is private.
February 13, 2015 at 1:10 pm in reply to: Make 'Show only the first upcoming instance of recurring events' checked as defa #942430Anders
ParticipantExtra points for thinking outside of the functions box!
I was hoping for a more “elegant” solution, but this works just fine.
Thanks.Anders
ParticipantThanks Barry, I can confirm that the code actually works.
For anyone who might be reading this post:
While the Email Adress Encoder Plugin does exactly what it’s saying (obfuscating the email adress so Spam robots can’t read it) it does not automatically convert those email addresses to hyperlinked Mailto: links. (Wether that is a feature or not, depends on what you are looking for and your other considerations, like possible performance impact etc. )
For me, on this project, I needed a solution which also turned the plain email text into a mailto-link, so I ended up using the plugin WP Mailto Links, which does use JavaScript to protect the emailadresses, but does have a setting to convert plain text links to mailto links. If you make sure to check the whole body of the page it also works just fine with the organizer email and any other email addresses your clients might throw in there.
Anders
ParticipantSorry for that ugly formatting from the FAQ. Lets try this instead:
How can I filter other parts of my site?
If the content supports WordPress filters, register the eae_encode_emails() function to it: add_filter($tag, ‘eae_encode_emails’);.
If the content is a PHP string, run it through the eae_encode_emails() function: $text = eae_encode_emails($text);.
If you want to encode a single email address, use the eae_encode_str() function: <?php echo eae_encode_str(‘[email protected]’); ?>This plugin doesn’t encode the entire website for performance reasons, it encodes only the content of the following WordPress filters the_content, the_excerpt, widget_text, comment_text, comment_excerpt.
Anders
ParticipantThis reply is private.
-
AuthorPosts
