Hey mediawerk
I changed the code to:
<article itemtype=”http://schema.org/CreativeWork” itemscope=”itemscope” class=”post-<?php print $pageid; ?> page type-page status-publish entry”>
<div class=”entry-content” itemprop=”text”>
<div class=”movie-content”>
<?php if(have_posts()) : while(have_posts()) : the_post();
/* Custom meta boxes */
echo ‘<div class=”intro-tekst”> ‘ . get_field(‘intro_tekst’) . ‘ </div>';
echo ‘<div class=”images”> ‘ . get_field(‘images’) . ‘ </div>';
echo ‘<div class=”trailer”> ‘ . get_field(‘trailer’) . ‘ </div>';
echo ‘<div class=”teknisk-info”> ‘ . get_field(‘teknisk_info’) . ‘ </div>';
echo ‘<div class=”synopsis”> ‘ . get_field(‘synopsis’) . ‘ </div>';
endwhile; endif;
?>
</div></div></article>
It seems to work just fine.
Why use schema? I thought Genesis has this built in?
Thanks for adjusting!
Awesome using your code mediawerk in my single-movie.php file helped!
I really got going with it! Here is the code that I am using:
(Let me know if there is anything I should adjustment.)
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
add_action( ‘genesis_loop’, ‘your_custom_loop’ );
function your_custom_loop() { ?>
<div class=”movie-content”>
<?php if(have_posts()) : while(have_posts()) : the_post();
/* Custom meta boxes */
echo ‘<div class=”intro-tekst”> ‘ . get_field(‘intro_tekst’) . ‘ </div>’;
echo ‘<div class=”trailer”> ‘ . get_field(‘trailer’) . ‘ </div>’;
echo ‘<div class=”synopsis”> ‘ . get_field(‘synopsis’) . ‘ </div>’;
echo ‘<div class=”teknisk-info”> ‘ . get_field(‘teknisk_info’) . ‘ </div>’;
echo ‘<div class=”images”> ‘ . get_field(‘images’) . ‘ </div>’;
endwhile; endif;
?>
</div></div></article>
<?php }
genesis();