Skip to content

Instantly share code, notes, and snippets.

@wbxpress
Created September 16, 2015 10:33
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 wbxpress/4f24bf704a2b2a619865 to your computer and use it in GitHub Desktop.
Save wbxpress/4f24bf704a2b2a619865 to your computer and use it in GitHub Desktop.
<?php
/*
Template Name: Untagged
*/
query_posts('orderby=title&order=asc&showposts=-1');
if (have_posts()) :
while (have_posts()) : the_post();
$tag = get_the_tags();
if (!$tag) { ?>
<a href="<?php the_permalink() ?>"><?php the_title(); ?> </a> – <?php edit_post_link('[Edit]'); ?><br />
<?php
}
endwhile;
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment