Site logo

Archived topic

Pagination after Author Box

9 replies · Started by Espresso on July 6, 2020

Viewing posts 1–10 of 10

Hi,

I have added the author box, However we would like to place it before the pagination.

How can we achieve it?

Thanks,

Dan

Hi there,

How are you adding the author box currently?

PHP in hook:

<div class="author-box">
	<?php 
	
	global $post;
	
	?>
	
	<div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' )); ?></div>
 
        <h5 class="author-title"><?php printf( esc_attr__( 'About %s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
	
				<div class="author-summary">
	
        <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
 
        <div class="author-links">
 
            <a>" title="Read more">
                ...
            </a>
 
        </div>
 
    </div>
 
</div>

Which hook are you using?

After_Primary_Content_Area

Can you try the generate_after_entry_content hook?

Try setting the priority for the hook element to 5.

It worked! Thanks!

No problem :)

This archived topic is closed to new replies.