Descargar Periodístico

[insert_php] global $wp_query;
$var = $wp_query->query_vars[«page»];
$attachment_page = wp_get_attachment_url( $var);
if($var == »){

}else{
echo ‘Descargar PDF‘;
}
[/insert_php]