Skip to content

Instantly share code, notes, and snippets.

@wpjess
Created April 23, 2020 17:03
Show Gist options
  • Save wpjess/14fcbd5155246c51d6d93055f5d2e76f to your computer and use it in GitHub Desktop.
Save wpjess/14fcbd5155246c51d6d93055f5d2e76f to your computer and use it in GitHub Desktop.
WP standard loop
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$title = get_post_meta($post->ID, 'page_title', true);
?>
<?php endwhile; endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment