![]() $new_title = str_replace( " ", "", strtolower( $page->post_name ) ) Įcho 'post_title. $pages = get_pages('hierarchical=0&include=13') I know i can create a conditional with is_page for each hardcoding it, but the idea is to make it dynamic. The restaurant is an embodiment of the contemporary East-meets-West theme that weaves through Parallaxs cuisine. Here is the code that i have, could anyone help me to find a way so the code is going to identify the ID of each current page to list the main and the children pages ?Īs you see $parent = 13 is hardcoded, and also it includes $pages = get_pages('hierarchical=0&include=13') with the id hardcoded too. What i would like to do is to find a way to get dinamically the page ID so it won't be hardcoded, but as the theme works as a only one page site, it's making me get troubles. I already figured it out a way to list those and to make the links behave with scroll to (parallax behavior)īut, the way that i have hardcodes the parent page. The second menu that is placed on the right of the page as rounded buttons lists the parent "about" and the child "about 2". About page has one child that is below it, but as i cannot access from the main menu, each page that has childs or subpages has the second type of menu.Īlso projects, has different pages: "Projects" (main), "Design" (child), Consulting (child), etc. So I have About, Projects and Contact.īut each one of this pages has child pages. ![]() Main one, is the navigation for parent pages. I'm creating a wordpress theme with parallax features and html5, the home has all the main pages and two different kind of navigations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |