Site logo

Archived topic

Element is triggering for previous Author and Current Author

5 replies · Started by Jonas on April 11, 2021

Viewing posts 1–6 of 6

Hi there,

I use the Hook Element to display and author box at the bottom of a page. The problem is, when I change author, it shows both the last and the current author at the bottom. It (for some reason) also shows the featured image at the bottom.

Can you find the issue?

Here's the author box code:

<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__( 'Om %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>
 
</div>

And here's the URL: https://techeksperten.dk/tests/kaffemaskine-med-kvaern/

It shows both "Techeksperten" and "Admin" box. It's shown as a separate post at the bottom, which is quite confusing.

Hi there,

Can you try deactivating ALL plugins except GP Premium and see if it still occurs? To check for plugin conflicts.

Also, can you check your Appearance > Elements for any Hook element duplicates?

Let us know.

Found the sinner: "Post Tags and Categories for Pages".

Any workaround, or do I just need to disable it and deal with it? I have some pages, that I want to display on a category archive page.

I'll check it out. Thanks!

You're welcome

This archived topic is closed to new replies.