Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying all single posts
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Seventeen
  9. * @since 1.0
  10. * @version 1.0
  11. */
  12.  
  13. get_header(); ?>
  14. <h1>Esto es una casa</h1>
  15. <div class="wrap">
  16. <div id="primary" class="content-area">
  17. <main id="main" class="site-main" role="main">
  18.  
  19. <?php
  20. /* Start the Loop */
  21. while ( have_posts() ) : the_post();
  22.  
  23. /*get_template_part( 'template-parts/post/content', get_post_format() );
  24.  
  25. // If comments are open or we have at least one comment, load up the comment template.
  26. if ( comments_open() || get_comments_number() ) :
  27. comments_template();
  28. endif;
  29.  
  30. the_post_navigation( array(
  31. 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
  32. 'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
  33. ) );*/
  34. ?>
  35. <p>Titulo: <?php the_title(); ?></p>
  36. <p>Precio: <?php the_field('precio_mensual');?></p>
  37. <p>Número de baños: <?php the_field('numero_de_banos');?></p>
  38.  
  39. <?php
  40. if (get_field('muebles')) :
  41. while(the_repeater_field('muebles')) : ?>
  42. <p>Mueble: <?php the_sub_field('mueble'); ?></p>
  43. <?php
  44. endwhile;
  45. endif;
  46. ?>
  47.  
  48. <?php
  49. $galeria = get_field('galeria');
  50. if ($galeria) :
  51. foreach($galeria as $imagen): ?>
  52. <p>Imagen: <img src="<?php echo $imagen["url"]; ?>" /></p>
  53. <?php
  54. endforeach;
  55. endif;
  56. ?>
  57.  
  58.  
  59. <?php
  60. endwhile; // End of the loop.
  61. ?>
  62.  
  63. </main><!-- #main -->
  64. </div><!-- #primary -->
  65. <?php get_sidebar(); ?>
  66. </div><!-- .wrap -->
  67.  
  68. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement