-
Add a tab
I am trying to add a tab for blogs on the url link below but I can't figure how to add content to the 3rd tab that I want to title as "My Blog". The code that is bold is what I am using but I have to remove for now so the empty Blog tab does not show. Is this the right syntax to use <?php the_brokerblog(); ?> and if so where do I add the_brokerblog in the code? To create the 3rd tab, I copied how the other two tabs were done but I can't find where the_listings or the_content go. This is a wordpress website. Please help. Thanks
http://www.trademarkproperties.com/p.../brian-farmer/
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<?php $src = wp_get_attachment_image_src( get_field('image'), 'professional' ); ?>
<img src="<?= $src[0] ?>" alt="" class="visible-xs professional-top-photo">
<h2 class="secondary-title"><?= get_the_title(); ?></h2>
<?php if (get_field('position')) : ?><h3 class="position"><?= get_field('position'); ?></h3><?php endif; ?>
<div class="entry-content">
<div class="tabs professional-tabs">
<ul>
<li><a href="#tab-1">About Me</a></li>
<?php if (have_rows('listings')) : ?>
<li><a href="#tab-2">My Listings</a></li>
<li><a href="#tab-3">My Blog</a></li>
<?php endif; ?>
</ul>
<div id="tab-1">
<?php the_content(); ?>
</div>
<?php if (have_rows('listings')) : ?>
<div id="tab-2">
<?php the_listings(); ?>
</div>
<div id="tab-3">
<?php the_brokerblog(); ?>
</div>
<?php endif; ?>
</div>
</div>
<footer>
<?php wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?>
</footer>
</article>
<?php endwhile; ?>