Title: ibu's Replies | WordPress.org

---

# ibu

  [  ](https://wordpress.org/support/users/ibu/)

 *   [Profile](https://wordpress.org/support/users/ibu/)
 *   [Topics Started](https://wordpress.org/support/users/ibu/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ibu/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ibu/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ibu/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ibu/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ibu/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Escaping SSL via dynamically generated lists in Widgets](https://wordpress.org/support/topic/escaping-ssl-via-dynamically-generated-lists-in-widgets/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/escaping-ssl-via-dynamically-generated-lists-in-widgets/#post-1593999)
 * Any help would be appreciate. Thank you.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Should be easy.. Background change](https://wordpress.org/support/topic/should-be-easy-background-change/)
 *  [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/should-be-easy-background-change/#post-1593722)
 * Hi there!
 * If you don’t have firebug installed, you should definitely do so. It can shed
   light on all of these css issues for you by giving you the location of the css
   file associated with a particular piece of html. It’ll even tell you the line
   of the css document that you need to look in.
 * There are a couple of issues at hand here. First, the css you’re trying to write
   at top is incorrect. But we’ll address that in a second. Firs you need to locate
   where the CSS file with the correct body declaration is located. Here is where
   you can find it:
 * `http://www.hdolsen.com/wp-content/themes/bueno/styles/default.css`
 * on Line 11, find:
 *     ```
       body {
        background: url("default/bodytile.jpg")
       }
       ```
   
 * The url() is where the background image is located. To remove it and change it
   to a white background, simply make it:
 * background: #fff;
 * Hope this helps!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482614)
 * Thank you so much for your help MichaelH. I hope our discourse here can help 
   other people in the future.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482613)
 * MichaelH yours works swimmingly.
 * Here is the fix I came up with based on [this post:](http://wordpress.org/support/topic/365670?replies=2)
 *     ```
       <?php global $post; $thispage = $post->ID; // grabs the current post id from global and then assigns it to thispage ?>
               <?php $pagekids = get_pages("child_of=".$thispage."&sort_column=menu_order"); // gets a list of page that are sub pages of the current page and assigns then to pagekids ?>
               <?php if ($pagekids) { // if there are any values stored in pagekids and therefore the current page has subpages ?>
               	<ul>
               		<?php wp_list_pages("depth=1&title_li=&sort_column=menu_order&child_of=".$thispage); // display the sub pages of the current page only ?>
                   </ul>
               <?php } else { // if there are no sub pages for the current page ?>
               	<ul>
               		<?php echo wp_list_pages('title_li=&child_of='.$post->post_parent.'&echo=0'); ?>
                   </ul>
   
               <?php } ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482610)
 * Haha Michael I stumbled upon a solution as soon as you posted yours! I’m going
   to test yours as well to see if we both are viable solutions in case someone 
   else can benefit.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482602)
 * MichaelH,
 * First off, thank you for your help. Unfortunately the output on the partner profile
   pages is the same as the example code from that you linked to. It’s possible 
   I’ve made a mistake, so here’s the code I’m using:
 *     ```
       <?php
       $partner_id = 26; // "partner" page id = 26
       if($post->post_parent && $post->parent != $partner_id)
         $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");
         if ($children) { ?>
         <ul>
         <?php echo $children; ?>
         </ul>
       <?php } ?>
       ```
   
 * And here are example pages: [Cindy’s top level profile page ](http://www.mfhc.com/wp/our-people/partners/cecelia-a-fleischner/)
   [Cindy’s admissions page.](http://www.mfhc.com/wp/our-people/partners/cecelia-a-fleischner/admissions/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482600)
 * I think I need to test for something other than post_parent.
 * I could do something like:
 *     ```
       <?php
         if($post->is_page('42,23,44,11'))
         $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
         if ($children) { ?>
         <ul>
         <?php echo $children; ?>
         </ul>
        <?php } ?
       ```
   
 * But I’d like to keep things dynamic so if they have to add a page later they 
   won’t have to have us do it for them. Am I on the wrong track?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482599)
 * Wow that made absolutely no sense.
 * Both of the pages are CHILDREN is what I meant, so they display the information
   of their parent.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482598)
 * I thought so too but that doesn’t work because it displays the sub pages of the
   parent. Because of the page hierarchy, the pages are both parents, so you get
   a top level menu when looking at a person’s profile. When you click on the sub,
   sub menu items, the correct information is displayed but if you are on the top
   level profile page for someone, it’s sub pages are displayed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482592)
 * Quick bump in case anyone has time to reply today.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482502)
 * I should also mention that I’ve read the wp_list_pages codex page and tried to
   work with the examples to no avail. If the answer _is_ there I missed it due 
   to a low understanding of php and not for a lack of effort, haha.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying child pages using wp_list_pages and php](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/)
 *  Thread Starter [ibu](https://wordpress.org/support/users/ibu/)
 * (@ibu)
 * [16 years ago](https://wordpress.org/support/topic/displaying-child-pages-using-wp_list_pages-and-php/#post-1482438)
 * I lied, The Example Page Hierarchy is this:
    - Our People
 *  - Partners
 *  - Michael McConnell
 *  - Areas of Practice
    - Education
    - Awards
    - Etc

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