Created
September 26, 2016 09:26
-
-
Save barrykooij/4b9df80ada1e48c202a91f9fea5e113f 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
function pc_only_parent_posts( $args ) { | |
$args['post_parent'] = 0; | |
return $args; | |
} | |
add_filter( 'pc_manual_link_post_query_args', 'pc_only_parent_posts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment