Created
June 2, 2013 05:57
-
-
Save miya0001/5692772 to your computer and use it in GitHub Desktop.
child pages shortcodeをカスタム投稿タイプにも対応させる
This file contains 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
<?php | |
// 以下をテーマのfunctions.php等にコピペすればオッケー | |
add_filter('child-pages-shortcode-query', 'child_pages_shortcode_post_type_fix'); | |
function child_pages_shortcode_post_type_fix($args) { | |
$args['post_type'] = 'any'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment