Having the ability to link homepage slider posts (or pages) to posts or pages other than themselves would greatly improve the usability of the sliders. It would enable custom titles and blurbs for each featured item, instead of being limited to the featured post title and excerpted content as they are now.
In attempting to model a solution, I replaced line 43 of index.php with an absolute link.
In other words, replacing href=/”< ?php the_permalink(); ? with mysite.com/otherpost/.
It worked as far as linking slider posts to a different post (or page), but of course now all posts point to a single link.
To make this solution workable, Is it possible to replacethe_permalink with the name of the field on the post edit screen Full Size Pic or Video for Lightbox (Image and Video Links allowed )? This would enable the link to be easily maintainable for each slider post within the post edit function.
You could use custom fields and the get post meta function: http://codex.wordpress.org/Function_Reference/get_post_meta to enter a custom link per post.
Worked great, thanks.
In my case, I created a custom field called link_to and then changed line 43 in index.php from the_permalink() to the_permalink($post->ID, ‘link_to’, true)
Sorry, posted wrong code above. My solution was as follows:
1. created a custom field called link_to
2. changed line 43 in index.php from the_permalink() to echo get_post_meta($post->ID, ‘link_to’, true)
The topic ‘Linking homepage slider to a post or page other than itself’ is closed to new replies.