WordPress.org

Forums

WP Featured Content Slider
Linking to other content (10 posts)

  1. tinuviel
    Member
    Posted 4 years ago #

    Hi there. I would like to be able to link the thumbnail to a specific page on my site, as opposed to the post the thumbnail is in. How do I do this?

    http://wordpress.org/extend/plugins/wp-featured-content-slider/

  2. sales@4bco.com
    Member
    Posted 4 years ago #

    I think this is what you are looking for...

    <div class="img_right">"><?php the_post_thumbnail(thumbnail);?></div>

  3. Seb Syd
    Member
    Posted 3 years ago #

    Hi,

    I also would like to link the thumbnail to a specific page rather than to the post the thumbnail is in, I didn't understand the previous answer given.
    Anyone have any ideas?

  4. sales@4bco.com
    Member
    Posted 3 years ago #

    Just create you div, insert the code for the thumbnail and surround it in an a tag.

  5. sales@4bco.com
    Member
    Posted 3 years ago #

    Be more specific about your set-up. If you want to do this in a loop, then you would need to have the link it is to go to in the meta data as a custom field.

  6. Seb Syd
    Member
    Posted 3 years ago #

    Thank you for your reply but I don't get it.
    Depending on the set up, using WP Featured Content Slider, the text goes on the left hand side of the slider and the featured image goes on the right.

    I create a href like so:-
    <div class="img_right"><a href="http://www.abc.net.au/environment/"><?php the_post_thumbnail(thumbnail);?></a></div>
    it does nothing links back to the original post page.

    So say I wanted to link the featured image to http://www.abc.net.au/environment/ for some reason. There must be a really simple way but I am not getting it?

  7. sales@4bco.com
    Member
    Posted 3 years ago #

    Where are you putting this div?

  8. Seb Syd
    Member
    Posted 3 years ago #

    I put
    <div class="img_right"><a href="http://www.abc.net.au/environment/"><?php the_post_thumbnail(thumbnail);?></a></div>
    in the tinymce editor html of the post and that did not work.

    I put <div class="img_right"><?php the_post_thumbnail(thumbnail);?></div> in the custom field related to:-

    slider_thumbnail
    slide_redirect_url
    slide_url_value

    that did not work,
    and also other various combinations of code.

    I assume now maybe it is a combination of using custom fields and the editor but how I am not sure.

    What I did was use Redirection Plugin which works but whether using an extra plugin is a good idea I am not sure about.

    If you can suggest were I just put the div it would be much appreciated.

  9. sales@4bco.com
    Member
    Posted 3 years ago #

    You have to work w/in the plug-in itself and write the code w/in the editor of the plugin in php. If you are not familiar w/ this, then definitely back-up your work before you begin. Another plug in would not be needed.

    Here is an example of what can be done. Of course, this does redirect to the post, but in this example, that is what is wanted.

    Cinema Site

  10. Seb Syd
    Member
    Posted 3 years ago #

    Thank you for you reply, I will give it a try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Featured Content Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic