• Hi, i have a grid based Page Preview under my content on my ‘home’ page. the problem is, that in the grid view the ‘home’ page is listed again. how can i hide the current page from being displayed?

    i load the Parent Pages by using :

    <?php
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        query_posts( 'post_type=page&post_parent=0&orderby=menu_order' );
        get_template_part( 'leistungen', 'grid' );
        wp_reset_query();
    ?>

    i use this in a similar way on an other page as well, just that i only call the child pages of that page. all child pages will have the preview in a grid of the other child pages with the same parent. i am looking for a solution i could use in generell, if thats possible.. Thanks in advanced for help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Grid of Pages – How to hide current Page from being displayed in the grid’ is closed to new replies.