Forums

Email Address Encoder
[resolved] Will this plugin work with Custom Post Types? (7 posts)

  1. Adam
    Member
    Posted 8 months ago #

    Will Email Address Encoder work with Custom Post Types?

    http://wordpress.org/extend/plugins/email-address-encoder/

  2. Till
    Member
    Plugin Author

    Posted 8 months ago #

    Theoretically and most likely yes, but it depends on coding of your theme.

  3. Adam
    Member
    Posted 7 months ago #

    Thanks for your response, Till. What do you mean by depending on the coding of my theme? Could you give me an example?

  4. Till
    Member
    Plugin Author

    Posted 7 months ago #

    This plugin hooks into the WordPress filters like the_content and others, so if you custom post type doesn't use these filters, the email address would not be encoded. I might add an option to the plugin to encode the entire output in the near future.

  5. Adam
    Member
    Posted 7 months ago #

    That makes sense. I use a lot of Custom Fields, so this would work for my main content (the_content), but maybe not for my CFs. Thanks for the plugin!

  6. Till
    Member
    Plugin Author

    Posted 7 months ago #

    Yes, and you can filter the custom fields too, just apply the eae_encode_emails to them, or encode the output directly using the eae_encode_emails() function.

  7. Adam
    Member
    Posted 7 months ago #

    Very cool. Thanks, Till!

Reply

You must log in to post.

About this Plugin

About this Topic