WordPress.org

Ready to get started?Download WordPress

Forums

Email this Post Plugin Help (3 posts)

  1. Brain916
    Member
    Posted 6 years ago #

    I installed the "Email to a friend" plugin and for about a month it worked fine.

    Here is the problem: When you click the "Email this Post" a separate window comes up with all the information you need. Once you click submit I you get this error:

    Fatal error: Call to undefined function: get_the_id() in /home/sneak/public_html/wp-content/plugins/email/email.php on line 753

    I have no idea why it does this, but if anyone can help I would appreciate it. And btw my website is http://www.sneakerfiles.com

  2. Lester Chan
    Member
    Posted 6 years ago #

    I would suggest you to upgrade WP together with WP-Email.

    But if for some reasons you cant do that, Open up email.php.

    Find:
    ?>

    Add before it:
    ### Function: E-Mail Post ID
    if(!function_exists('get_the_id')) {
    function get_the_id() {
    global $id;
    return $id;
    }
    }

  3. Brain916
    Member
    Posted 6 years ago #

    Thanks, that actually worked well.

    Is there anyway to customize after you sent the email what it will say?

Topic Closed

This topic has been closed to new replies.

About this Topic