WordPress.org

Ready to get started?Download WordPress

Forums

Plugin: WP-Email exclude pages (8 posts)

  1. saintagnes
    Member
    Posted 7 years ago #

    Hi,

    I have installed the Plugin: WP-Email and it works great. I would, however, like to exclude the option on all my Pages.

    Anyone know how to do that?

  2. Lester Chan
    Member
    Posted 7 years ago #

    do not put the php code in your page.php template and it will not display the link to the email page

  3. saintagnes
    Member
    Posted 7 years ago #

    I am using the Lainlog theme and there is no page.php template.
    The code is in the index.php template.

    is there a way to tell it to "exclude pages"?

  4. Lester Chan
    Member
    Posted 7 years ago #

    did u post it in my forums also? Because there is a similar request.

  5. saintagnes
    Member
    Posted 7 years ago #

    yes, i posted in both.
    nothing seems to be working though.
    it is probabaly because my theme (Lainlog) does not have a separate "page" and "post" .php, it is all one index.php :(

  6. Lester Chan
    Member
    Posted 7 years ago #

    use a <?php if(!is_page()) { email_link(); } ?>

  7. saintagnes
    Member
    Posted 7 years ago #

    Sorry, I'm sort of a beginner at this.
    Can you please explain where i should be inserting the code above.

  8. Lester Chan
    Member
    Posted 7 years ago #

    Do u remember placing the code of WP-Email into your template? Replace that code with the one I given above.

Topic Closed

This topic has been closed to new replies.

About this Topic