Site logo

Archived topic

How can i display acf value after the body of the content in a blog post

1 reply · Started by parantapa sarkar on September 4, 2021

Viewing posts 1–2 of 2

I have created a block hook that looks like this https://prnt.sc/1r7ee7p I want to show the table after the body of the content.

I want to create the table in the single.php.

<div class="comments-area">								
		<div class="col-sm-12" id="vee-details">
                <table class="table table-bordered" width="100%">
                <tbody>
					<th colspan="2" class="thead"><span style="font-size: 18pt;color: #ff7a00"><strong>Bio/Wiki</strong></span></th>
                <tr>
                   <td><b>Real Name</b></td>
                   <td><?php the_field('real_name'); ?></td>
                 </tr>
					<tr>
                   <td><b>Nick Name</b></td>
                   <td><?php the_field('nick_name'); ?></td>
                 </tr>
					<tr>
                   <td><b>Profession(s)</b></td>
                   <td><?php the_field('bio_professions'); ?></td>
                 </tr>
					</tbody>
					</table>
		</div>

I have added this line of code that is working properly with ACF http://prnt.sc/1r7f3mu .
But in this process, there is a gap between the content and the comment box.
How can I solve this?

Hi there,

can you share a link to a page where i can see the problem?

One thing else i notice in your HTML is it opens with:

<div class="comments-area">

but there is no closing </div>

This archived topic is closed to new replies.