Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter federicod

    (@federicod)

    Thanks greenshday! Now It works but I have another problem: If a page contains subpages I display them into the sidebar using this code:

    <?php
       if($post->post_parent)
          $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
        else
          $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");

    But It doesn’t work anymore ??

    So I use query_posts(‘post_type=post&showposts=-1’); into the sidebar in order to show posts, then I reset the query into the page and I use the code above in order to show the subpages.

    Any ideas?

    Thanks!!
    Federico

    Forum: Plugins
    In reply to: have_posts and pages
    Thread Starter federicod

    (@federicod)

    Hi, I’ve tried with get_posts…but it doesn’t work with wpsentry. Other ideas?

    Thanks!
    Federico

Viewing 2 replies - 1 through 2 (of 2 total)