Hi everyone,
I'll start this by admitting I am fairly new to Wordpress and Beans.
I am working on a beans child theme and am attempting to reorder the post components on my home page. All I want to do is place the thumbnail image before the title and meta on the home page. I took the following snippet from this page and made it look like this:
function example_loop() {
if (( is_home() || is_front_page() ) ) : while ( have_posts() ) : the_post(); ?>
<article class='my_home_article'>
<?php beans_post_image(); ?>
<header>
<?php
beans_post_title();
beans_post_meta();
?>
</header>
<div>
<?php beans_post_content(); ?>
</div>
</article>
<?php endwhile; else : ?>
<article>
<header>
<?php
beans_post_title();
beans_post_meta();
?>
</header>
<div>
<?php beans_post_content(); ?>
</div>
<div>
<!-- comments here -->
</div>
</article>
<?php endif;
// Display posts pagination.
beans_posts_pagination();
}
The problem is, my comments disappear when not on the home page and I cannot figure out how to add them back.
Could someone either show me a more efficient way to add the thumbnail image before the title and post or show me how to properly add comments to a single post view? Thanks!