Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Last active January 22, 2016 19:08
Show Gist options
  • Save Dinamiko/4971ab0a82aa10acbf4b to your computer and use it in GitHub Desktop.
Save Dinamiko/4971ab0a82aa10acbf4b to your computer and use it in GitHub Desktop.
<body>
<?php
global $post;
$pdf = get_query_var( 'pdf' );
$post_type = get_post_type( $pdf );
?>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment