Created
September 17, 2021 17:35
-
-
Save DumahX/42c43a1f335f7ca23b093a23e1fed8e2 to your computer and use it in GitHub Desktop.
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 | |
$user_id = get_current_user_id(); | |
if ( ! $user_id ) { | |
return; // Just return if user is not logged in. | |
} | |
$query = array( | |
'posts_per_page' => '-1', | |
'author' => $user_id, | |
'post_type' => 'action_plan' | |
); | |
$posts = new WP_Query( $query ); | |
?> | |
<?php while ( $posts->have_posts() ) : $posts->the_post(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment