2 Ways To Open Post Tag Archive Links In A New Window

This tutorial provides 2 slightly different code snippets which enable you to open the post tag archive links in a new window. You can open all post tag links in a new window or conditionally load the code so only links on single posts or archives open in a new window.

Demo Video

Shows clicking the post link named Demo-Tag next to the tagged text opens the tag archive page in a new window.

You can also use this code to open any type of links in a new window or the same window by making one simple adjustment, the instructions for which, are included below for members.

Tested using the Genesis Sample child theme by StudioPress however the code works in any WordPress theme.

Here’s the code for logged in members:

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.