not really known
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

62 řádky
1.9 KiB

  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. echo "<h1>" . get_the_title() . "</h1>";
  23. talhyperlocal_map_shortcode( get_the_ID() );
  24. the_content();
  25. the_meta();
  26. $meta = get_post_custom();
  27. // print_r($meta);
  28. $url = $meta['url'][0];
  29. ?>
  30. <p><a href="<?php echo $url ?>">Website</a></p>
  31. <p><?php the_taxonomies( 'before=<ul>&after=</ul>' ) ?></p>
  32. <?php
  33. // If comments are open or we have at least one comment, load up the comment template.
  34. // if ( comments_open() || get_comments_number() ) :
  35. // comments_template();
  36. // endif;
  37. // Previous/next post navigation.
  38. // the_post_navigation( array(
  39. // 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
  40. // '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
  41. // '<span class="post-title">%title</span>',
  42. // 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
  43. // '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
  44. // '<span class="post-title">%title</span>',
  45. // ) );
  46. // End the loop.
  47. endwhile;
  48. ?>
  49. </article>
  50. </main><!-- .site-main -->
  51. </div><!-- .content-area -->
  52. <?php get_footer(); ?>