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

  1. tribalcafe
    Posted 3 years 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?


  2. Andrew Yates
    Plugin Author

    Posted 3 years ago #

    Our updated FAQ has the answer. :)

  3. Eugen Oprea
    Posted 2 years 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

  • Digg Digg
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic