I am using Genesis framework and I want to add advance custom field just after the post, I did some code but the field is not coming just after the post.
Here is the code:
add_action('genesis_entry_content', 'add_content_after_content');
function add_content_after_content() {
echo '<div class="tips-text-image">';
echo '<img src="' . get_field('image') . '">';
echo the_field('text');
echo '</div>';
}
You can use this http://genesistutorials.com/visual-hook-guide/ or install this plugins on your site https://wordpress.org/plugins/genesis-visual-hook-guide/
You can add extra content after content on this hooks.
Set your fields as variable first, then use the variables in the echo’s. Many times when you directly grab the data it places it outside of the container, thus pushing it to the top. Try this: