Integration inside archive page
-
In my theme I have this code:
<?php
foreach ( $final_posts as $key => $post ) {
setup_postdata( $post );$post_tmp = get_post($post);
$author_id = $post_tmp->post_author;
$author_name = get_the_author_meta(‘display_name’, $post_tmp->post_author );
?><div class=”column”>
<article <?php post_class(‘highlights’); ?> itemscope itemtype=”https://schema.org/Article”>
<h2 itemprop=”name”>” title=”<?php the_title_attribute(); ?>” itemprop=”url”><span class=”the-author”><?php echo $author_name; ?></span> – <span class=”the-title”><?php the_title(); ?></span></h2></article>
</div><?php }
How may I integrate coathors here?
Thanks
- The topic ‘Integration inside archive page’ is closed to new replies.