not really known
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

single-site.php 1.8 KiB

9 anni fa
9 anni fa
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The template for displaying all single posts and attachments
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fifteen
  7. * @since Twenty Fifteen 1.0
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="content-area">
  11. <main id="main" class="site-main" role="main">
  12. <article class="post">
  13. <?php
  14. // Start the loop.
  15. while ( have_posts() ) : the_post();
  16. /*
  17. * Include the post format-specific template for the content. If you want to
  18. * use this in a child theme, then include a file called called content-___.php
  19. * (where ___ is the post format) and that will be used instead.
  20. */
  21. get_template_part( 'content', get_post_format() );
  22. talhyperlocal_map_shortcode( get_the_ID() );
  23. $meta = get_post_custom();
  24. $url = $meta['url'][0];
  25. ?>
  26. <p><a href="<?php echo $url ?>">Website</a></p>
  27. <p><?php the_taxonomies( 'before=<ul>&after=</ul>' ) ?></p>
  28. <?php
  29. // If comments are open or we have at least one comment, load up the comment template.
  30. // if ( comments_open() || get_comments_number() ) :
  31. // comments_template();
  32. // endif;
  33. // Previous/next post navigation.
  34. // the_post_navigation( array(
  35. // 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
  36. // '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
  37. // '<span class="post-title">%title</span>',
  38. // 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
  39. // '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
  40. // '<span class="post-title">%title</span>',
  41. // ) );
  42. // End the loop.
  43. endwhile;
  44. ?>
  45. </article>
  46. </main><!-- .site-main -->
  47. </div><!-- .content-area -->
  48. <?php get_footer(); ?>