Bläddra i källkod

Don't dump the_meta() as it could reveal private data

master
Adrian Short 9 år sedan
förälder
incheckning
92dc9d43aa
1 ändrade filer med 1 tillägg och 6 borttagningar
  1. +1
    -6
      single-site.php

+ 1
- 6
single-site.php Visa fil

@@ -21,16 +21,11 @@ get_header(); ?>
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
// get_template_part( 'content', get_post_format() );
get_template_part( 'content', get_post_format() );
echo "<h1>" . get_the_title() . "</h1>";
talhyperlocal_map_shortcode( get_the_ID() );
the_content();
the_meta();
$meta = get_post_custom();
// print_r($meta);
$url = $meta['url'][0];
?>
<p><a href="<?php echo $url ?>">Website</a></p>


Laddar…
Avbryt
Spara