[ad_1]
this is my content.php:
<?php
/**
* Template part for displaying posts
*
* @link
*
* @package sacconicase
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php sacconicase_post_thumbnail();?>
<div class="my-icons">
<?php echo "ID: ",get_the_ID(), "<img src="https://projectdmc.org/wp-content/uploads/2023/07/icona_mare.jpg"/>", get_post_meta( get_the_ID(), "function_number",true )," m. ","<img src="/wp-content/uploads/2023/06/ospiti3.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_ospiti]",true ), "<img src="/wp-content/uploads/2023/06/camere.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_camere]",true ),"<img src="/wp-content/uploads/2023/07/bagni-2.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_bagni]",true ),"<a href="".get_permalink( get_the_ID )."#my_map_123"><img src="/wp-content/uploads/2023/07/map-3.jpg"/></a>" ;
?></div class="my-icons">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
endif;
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<?php
$url = get_term_link( wp_get_post_terms( get_the_ID(), 'category')[0], 'category');
echo '<form><a href="', $url, '"><input type="button" value="Torna alla lista" ></a></form>';
echo '<form><a href="#my_map_123"><input type="button" class="listino" value="Listino" ></a></form>' ;
sacconicase_posted_on();
sacconicase_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="my-icons-two"><?php echo "ID: ",get_the_ID(), "<img src="https://projectdmc.org/wp-content/uploads/2023/07/icona_mare.jpg"/>", get_post_meta( get_the_ID(), "function_number",true )," m. ","<img src="/wp-content/uploads/2023/06/ospiti3.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_ospiti]",true ), "<img src="/wp-content/uploads/2023/06/camere.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_camere]",true ),"<img src="/wp-content/uploads/2023/07/bagni-2.jpg"/>",get_post_meta( get_the_ID(), "tax_input[numero_bagni]",true ),"<a href="#my_map_123"><img src="/wp-content/uploads/2023/07/map-3.jpg"/></a>" ;
?></div>
<div class="entry-content"> <?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'sacconicase' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sacconicase' ),
'after' => '</div>',
)
);
wp_pagenavi();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php sacconicase_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
