Title: starcoder's Replies | WordPress.org

---

# starcoder

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/starcoder/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/starcoder/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom post type with other fields than taxonomy](https://wordpress.org/support/topic/custom-post-type-with-other-fields-than-taxonomy/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-with-other-fields-than-taxonomy/#post-3320514)
 * I found it:
 * i had to look for custom fields and custom meta boxes.
 * regards
    Yavuz
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to redirect an old url to a new url?](https://wordpress.org/support/topic/how-to-redirect-an-old-url-to-a-new-url/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-redirect-an-old-url-to-a-new-url/#post-2556949)
 * Thank you all!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to redirect an old url to a new url?](https://wordpress.org/support/topic/how-to-redirect-an-old-url-to-a-new-url/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/how-to-redirect-an-old-url-to-a-new-url/#post-2556923)
 * ok, thank you. has someone an sample for setting this up in the .htaccess file?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to create a new Link from external application in my blog?](https://wordpress.org/support/topic/how-to-create-a-new-link-from-external-application-in-my-blog/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-a-new-link-from-external-application-in-my-blog/#post-2496841)
 * No, thats not what i want. I want to create only a LINK programmtically out of
   a third party application.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to create a new Link from external application in my blog?](https://wordpress.org/support/topic/how-to-create-a-new-link-from-external-application-in-my-blog/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-a-new-link-from-external-application-in-my-blog/#post-2496613)
 * no, not links in posts or pages. i mean the links itself. normally you select
   in the wordpress admin on the right menu
 * links -> add new link
 * what i want to do is, to add such a new link to the wordpress system programmatically
   from inside another application.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Find out if a page is child of a top level parent and is page a grandchild?](https://wordpress.org/support/topic/find-out-if-a-page-is-child-of-a-top-level-parent-and-is-page-a-grandchild/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/find-out-if-a-page-is-child-of-a-top-level-parent-and-is-page-a-grandchild/#post-2351192)
 * Great! Thank you very much!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2342315)
 * thank you! ok, i have implemented it but found one bug:
 * when you click on menu 1 -> menu 2 is getting displayed -> ok
    when you click
   on menu 2 -> menu 3 is getting displayed and you see menu 1 -> ok when you click
   on menu 3 -> menu 2 **gets hidden**!
 * Update…
    But one more thing, i see that the problem in a real project would be
   that i have one time the siblings as children of menu1 and one time i have the
   children as the children of menu 1.
 * I dont think that this seems to be possible with out of the box template tags.
 * I think will do own DB-Queries to this to work.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2342287)
 * hmm, i have tried it but it works for a 2 level menu design. i have 3 levels.
 *     ```
       = LEVEL1 =  = LEVEL 2 = = LEVEL 3 =
       PRODUCTS -> PRODUCT1 -> OVERVIEW
                            -> SCREENSHOTS
                            -> DOWNLOADS 
   
                -> PRODUCT2 -> OVERVIEW
                            -> SCREENSHOTS
                            -> DOWNLOADS
       ```
   
 * What i need to have is:
 * First i have only the Level1 shown on my page. For example user clicks on PRODUCTS,
   the page looks for children. It has children (PRODUCT1 and PRODUCT2) and show
   them inside an div.
 * Then the user selects PRODUCT1 from LEVEL 2 and the page show LEVEL 1 -> PRODUCTS,
   LEVEL 2 PRODUCT1 and PRODUCT 2 and if LEVEL 2 hsa childrens too (in this case
   OVERVIEW, SCREENSHOTS, …) it shows these menu (pages) items, too WITHOUT HIDING
   THE LEVEL 1 and LEVEL 2 menu elements.
 * First it looks like:
    `PRODUCTS`
 * Then User clicks on PRODUCTS and i want to have
 *     ```
       PRODUCTS (to display in div1)
   
       PRODUCT1     PRODUCT2 (to display in div2)
       ```
   
 * Then User clicks on PRODUCT1 and i want to have
 *     ```
       PRODUCTS (to display in div1)
   
       PRODUCT1     PRODUCT2 (to display in div2)
   
       OVERVIEW     SCREENSHOTS     DOWNLOADS (to display in div3)
       ```
   
 * The menu levels should be displayed always. By default wordpress displays always
   the children and hides the parents/grandparents.
 * How could i realize this?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2342283)
 * Great! Thank you very much!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2342279)
 * Noone an idea?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2342201)
 * Ok, what i could do is the folloowing:
 * I would display the first level menu via:
 * `wp_list_pages('title_li=&sort_column=menu_order&depth=1&exclude=9,10,11');`
 * The second level could be displayed with:
 *     ```
       if($post->post_parent)
                 $children = wp_list_pages("title_li=&depth=1&child_of=".$post->post_parent."&echo=0&sort_column=menu_order");
            else
                 $children = wp_list_pages("title_li=&depth=1&child_of=".$post->ID."&echo=0&sort_column=menu_order");
   
            if ($children) { ?>
                 <ul>
       <?php echo $children; ?>
                 </ul>
   
            <?php } ?>
       ```
   
 * Now the problem:
 * I could display the third menu level with:
 *     ```
       <?php
       	  $children = wp_list_pages("title_li=&depth=1&child_of=".$post->ID."&echo=0&sort_column=menu_order");
   
                 if ($children) { ?>
       	  <ul>
                 <?php echo $children; ?>
                 </ul>
            <?php } ?>
       ```
   
 * But the, when i click on the first level menu i get the same result as in the
   2nd level menu.
 * How can i detect that i am in the second level? And if yes -> then show 3rd level
   menu else do not show 3rd level menu.
 * regards
    Yavuz
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2341901)
 * How can i save the id of the item on which the user has clicked in the 2nd Menu?
   And how to know that this selected id comes from the 2nd Level?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Menu with 3 Levels](https://wordpress.org/support/topic/menu-with-3-levels/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/menu-with-3-levels/#post-2341898)
 * No, i would like to achieve this via the WordPress Template Tags and Functions
   in my custom Theme.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Show Subpages for selected Parent Page](https://wordpress.org/support/topic/show-subpages-for-selected-parent-page/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/show-subpages-for-selected-parent-page/#post-1697034)
 * I am using now the **Fold Page List** Plugin.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Show Subpages for selected Parent Page](https://wordpress.org/support/topic/show-subpages-for-selected-parent-page/)
 *  Thread Starter [starcoder](https://wordpress.org/support/users/starcoder/)
 * (@starcoder)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/show-subpages-for-selected-parent-page/#post-1696958)
 * Has noone an idea?

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/starcoder/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/starcoder/replies/page/2/?output_format=md)