Skip to content

Instantly share code, notes, and snippets.

@rilwis
Forked from kutoi94/publish-post.php
Last active September 14, 2019 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rilwis/7582680075f12b57e82be3f1ca5ac6e2 to your computer and use it in GitHub Desktop.
Save rilwis/7582680075f12b57e82be3f1ca5ac6e2 to your computer and use it in GitHub Desktop.
<?php
/**
* Template Name: Publish Post
*/
if ( !is_user_logged_in() ) {
auth_redirect();
}
get_header();
?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile;
?>
</main>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment