Support » Plugin: Email Encoder - Protect Email Addresses » Not working in a modal

  • George

    (@quantum_leap)


    I am using a portfolio custom post type containing some custom email custom fields with all posts opening on an ajax modal but also they are available as single posts(is a non modal separate page). I have successfully encoded the email addresses while the post is loaded as a separate page but when the ajax modal function is called, the modal seems to be stuck on the spinning wheel and the page does not load.

    From the console, I seem to be getting a 500 Internal Server Error on the jQuery that is included with WordPress(obviously I need that file to load) but I don’t know what to make of it. It seems that there is a class with the modal javascript and the encryption code. The encoding of the custom field happens inside a custom php template olike this: eeb_email( $organiser_contact_email, $organiser_contact_email )

    Can anyone advise?

    https://wordpress.org/plugins/email-encoder-bundle/

Viewing 1 replies (of 1 total)
  • So the content with the email address is loaded with AJAX?
    Your way of encoding the custom fields in PHP seems right.
    Have you included jQuery in your main page?

Viewing 1 replies (of 1 total)
  • The topic ‘Not working in a modal’ is closed to new replies.