/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#### Submeny, användare WordPress wp_nav_menu Filter function get_page_or_parent_page_id(){ global $post; if($post->post_parent) return $post->post_parent; else return $post->ID; } function has_subpages(){ }