Skip to content

Instantly share code, notes, and snippets.

@iamkingsleyf
Created June 1, 2014 18:09
Show Gist options
  • Select an option

  • Save iamkingsleyf/ea10e19af25241daca50 to your computer and use it in GitHub Desktop.

Select an option

Save iamkingsleyf/ea10e19af25241daca50 to your computer and use it in GitHub Desktop.
This example shows how to use is_single() to display something specific only when viewing a single post page:
<?php if(is_single() ) { ?>
SHARETHIS CODE HERE
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment