If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: URL featured image
I’d like to know how to get the URL of the link in the first of featured image.
i.e. the user has selected to link to a page or custom URL using your featured image widget. I want that URL
thanks in advance
Dear Corona team, I’m waiting for your suggestion to solve this problem.
You can get the slide link with following code:
$slides = avia_post_meta(get_the_ID(), 'slideshow');
$link = $slides['slideshow_link'];
You can then echo $link somewhere :)
Thanks for your suggestion
I have addition information to suggest:
$slides — will return the type of ‘link’ you selected from the drop down slide menu (a green box)
to get its link you must use $slides or $slides depend on which type does the user selected.
To get life easier, I use “switch” Here is an example:
//GET URL OF THE FIRST SLIDE SHOW
$linktype = $slide_set[‘slideshow_link’];
$linkslide = “”;
case “url”: $linkslide = $slide_set[‘slideshow_link_url’];
case “page”: $linkslide = get_page_link($slide_set[‘slideshow_link_page’]);
default: $linkslide = “#”;
//print_r (array_keys($slide_set)); // DISPLY ALL KEYS IN ARRAY #debug
$result .= ““;
The topic ‘Get URL link of first featured image’ is closed to new replies.