Open Custom Fields URL in New Window

This topic contains 4 reply and 2 voices, and was last updated by Sekander Badsha 9 years, 6 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
August 28, 2014 at 6:23 pm 26011
Sekander Badsha I created a form that the user can put your URL, but when the URL appears on the site, clicking it opens the same page. How do I get the URL (custom fields) open in a new window?
August 30, 2014 at 4:13 pm 26078
Sekander Badsha Sekander Badsha

Hello Gustavo,
You have to modify your theme files a bit for that.
The easiest way would be using JavaScript. Or you can echo the data by using the meta_key in your page template.

August 30, 2014 at 6:10 pm 26090
Gustavo Gustavo

I managed to get in a different way than I was trying.

“>

September 15, 2014 at 5:35 pm 26834
Gustavo Gustavo

Sekander Badsha , Which file do I change? I’ve searched and not found.

September 16, 2014 at 4:13 pm 26877
Sekander Badsha Sekander Badsha

Hello Gustavo,
If you want to change the link behavior, you have to turn off “show custom fields” from “User Frontend > Settings > General” and echo the get_post_meta in your themes single.php

Viewing 4 Posts - 1 through 4 (of 4 total)