WordPress.org

Ready to get started?Download WordPress

Forums

Digg Digg
[resolved] exclude from page (3 posts)

  1. tribalcafe
    Member
    Posted 1 year ago #

    How do I exclude Digg Digg from a single page?

    Is there any code to place on that page or is there other code I can use to do this?

    http://wordpress.org/extend/plugins/digg-digg/

  2. Andrew Yates
    Member
    Plugin Author

    Posted 1 year ago #

    Our updated FAQ has the answer. :)

  3. Eugen Oprea
    Member
    Posted 1 year ago #

    Here is the code that worked for me:

    /** Exclude DiggDigg from specific pages */
    function eo_exclude_digg_digg() {
    if(is_page(array(1, 2, 3, 4))) {
          remove_filter('the_excerpt', 'dd_hook_wp_content');
        	remove_filter('the_content', 'dd_hook_wp_content');
    	}
    }
    add_action('template_redirect', 'eo_exclude_digg_digg');

    ...where 1, 2, 3, 4 are the ids of the pages you want to exclude DiggDigg from.

    More details here: Exclude DiggDigg From Specific Pages

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic