wordpress - Link to archive post type on the specific post -


i have code in loop on post :

<div class="retour"><a href="<?php echo get_post_type_archive_link( 'projets' ); ?>">projets</a></div> 

when goes post_type_archive page, i'd browser go directly on specific post.

can add anchor tag function ?

how can manage ?

thank !

just add anchor tag end this:

<div class="retour"><a href="<?php echo get_post_type_archive_link( 'projets' ); ?>#youranchor">projets</a></div> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -