Created
April 21, 2017 07:10
-
-
Save danielstrelec/2926b9db94d17e6595dd8af67d3e8c32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // vytažení nadstránek | |
| function getSuppages() { | |
| global $post; | |
| $pid = wp_get_post_parent_id($post->ID); | |
| $pages = get_pages(array("parent" => $pid, "sort_column" => "menu_order")); | |
| return $pages; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment