Forums

[Plugin: Exclude Pages] Plugin having no effect (5 posts)

  1. bowoolley
    Member
    Posted 9 months ago #

    Hi - any idea why the plugin doesn't work at all on this site:

    http://www.kaypraptaa.com/eatndrink

    ? Any help will be appreciated!

  2. Technokinetics
    Member
    Posted 9 months ago #

    I'm not familiar with the inner workings of Exclude Pages, so can't help you diagnose the problem, but you might want to try Page Lists Plus, which offers similar functionality but uses a different method and so may not be affected by whatever it is that's preventing Exclude Pages from working on your site.

    - Tim

  3. bowoolley
    Member
    Posted 9 months ago #

    Thanks for the suggestion - I tried it, but it didn't work. (But I'm keeping it, it's great!) I'll probably have to use a different theme: the one I'm trying to use calls dp_list_pages and I can't figure out how to modify that... So no plugins using wp_list_pages have any effect.

  4. Technokinetics
    Member
    Posted 9 months ago #

    It sounds like your theme uses its own custom function for this; dp_list_pages isn't a native WP function. Check your functions.php theme file, which is where this function should be defined.

    - Tim

  5. janjabacac
    Member
    Posted 5 months ago #

    Hi,
    I have the same problem. The code in funtions.php says:

    '# Displays a list of pages
    function dp_list_pages() {
    global $wpdb;
    $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC";
    $pageposts = $wpdb->get_results($querystr, OBJECT);
    if ($pageposts) {
    foreach ($pageposts as $post) {
    ?>

  6. ID); ?>"><?php echo $post->post_title; ?>
  7. <?php
    }
    }
    }'

    Does anyone know, how to add exclude some pages ID'd to this code? Any help is very much appreciated.

    Janja

Reply

You must log in to post.

About this Topic

Tags