Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Yates

    (@andy7629)

    Our updated FAQ has the answer. 🙂

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Digg Digg] exclude from page’ is closed to new replies.