×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: PHP
Posted by: Nicole Patten
Added: Dec 4, 2015 5:33 PM
Views: 22
Tags: php wordpress
  1. <?php
  2. /**
  3.  * The template for displaying the header.
  4.  *
  5.  * @package Bushmills
  6.  * @since 0.1.0
  7.  */
  8.  $post = get_post(get_the_ID());
  9.  $slug = $post->post_name;
  10.  ?>