• 外贸建站

    (@qq2466380523)


    <a href="<?php the_permalink(); ?>"><?php 
    				if ( has_post_thumbnail() ) {
    					echo '<p>';
    					the_post_thumbnail("small");
    					echo '</p>';
    				}
    			?></a>	
              <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
    			
    			<p><?php the_excerpt(); ?></p>
    			
    	
    
    		<a href="<?php the_('us_tile_link'); ?>" target="_blank">Read more</a>

    I would use a permalink and external link button showing in the archive page. thanks, guys.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Q

    (@itsjonq)

    Hi there @qq2466380523 !

    Just to clarify, would you like to open the link in a new tab (when clicked)?
    If so, the code you’ll need to add to your link (<a>) tags is target="_blank".

    Example:


    <a href="..." target="_blank">...</a>

    Looks like there’s already one link in your example that does this.

    Hope this helps!

    • This reply was modified 5 years ago by Q.
Viewing 1 replies (of 1 total)
  • The topic ‘Add external link each post’ is closed to new replies.