Skip Navigation

[Resolved] Link not opening in new tab

This thread is resolved. Here is a description of the problem and solution.

Problem:
I have this code in the Template for Wordpress Archive in layouts:

<h1>[wpv-post-link target="_blank"]</h1>

The post link is not opening in a new tab.

Solution:
[wpv-post-link] shortcode does not take target attribute, please try this code and it will work fine, replace 1st line in your above code with this one:

<a href="[wpv-post-url]" target="_blank"><h1>[wpv-post-title]</h1></a>

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by genaS 6 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#1119222

I have this code in the Template for WordPress Archive in layouts:

<h1>[wpv-post-link target="_blank"]</h1>
[wpv-post-excerpt]
[wpv-post-body view_template="None"]
[wpv-post-featured-image]
Posted on [wpv-post-date]

The post link is not opening in a new tab, what am I doing wrong and how can I fix it?

Thanks.

#1119309

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting Toolset support. [wpv-post-link] shortcode does not take target attribute, please try this code and it will work fine, replace 1st line in your above code with this one:

<a href="[wpv-post-url]" target="_blank"><h1>[wpv-post-title]</h1></a>

https://toolset.com/documentation/user-guides/views-shortcodes/

Thank you

#1119366

Thank you. That worked prefect. And thanks for the shortcodes link. I wasn't finding it on the site, obviously I overlooked it. Being new to Toolset, it's an awesome plugin, just takes some learning. 🙂

Thanks.