• Resolved hugo2808

    (@hugo2808)


    Hi,
    first of all congratulations for your excelent plugin!
    I’ve search a solution for my problem in the support but i didn’t find.
    I want to show a grid of posts with thumbnail and title “linkable” to relative post:

    [loop type="post" count="8" columns="4" pad="0px 10px"]
    <a href='[content field="url"]'>[field thumbnail]</a>
    [field title-link class="center_title"]
    [/loop]

    I get the title with link but the image I don’t.
    The problem is that I get visible someting like:


    POST THUMBNAIL

    title-link

    So, the HTML is visible and the image doesn’t provide the link!
    Can you help me?

    Thanks
    Hugo

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter hugo2808

    (@hugo2808)

    Sorry, what I get in online page is

    <a href='https://www.123.net/?p=33'>
    POST THUMBNAIL
    </a>
    title-link

    So, the HTML is visible and the image doesn’t provide the link!

    Plugin Author Eliot Akira

    (@miyarakira)

    Hmm, I tested the code and it seems to be working fine on my end.

    Looks like you’re seeing the title of the image (POST THUMBNAIL)? I wonder if the image link is broken..

    Can you try [field image-url] to see if anything is displayed? If so, does it link correctly to the image?

    Thread Starter hugo2808

    (@hugo2808)

    Hi Eliot,
    better to explain visualy my problem.

    In my backoffice i enter this.
    Then I get this layout.

    So I get the html text and is not suposed to.
    Where should be the problem?

    Thanks
    Hugo

    I’m happy to have found this thread because I was coming to the forum to ask a very similar question.

    Eliot, just like the title-link variable exists to present a linked post title, it would be wonderful to have an image-link variable to present a linked image. It would accomplish what hugo2808 is trying to achieve in a much simpler way.

    For my own current purposes, I would want the image-link variable to link back to the image’s parent post, but if there was a way to specify which url, that would be even more useful!

    Just FYI, when I use image-url, that simply displays the image’s url as text, no link, no image.

    Thank you so much for this fantastic plugin. I’ve found so many different uses for it!!

    Plugin Author Eliot Akira

    (@miyarakira)

    hugo2808 – From the screenshot, I see that you’re using the Visual editor. I believe this is the reason why the HTML is showing as it is. Please try using the Text editor. I wrote a note about this in the documentation, Settings -> Custom Content -> Views.

    Julie – Thank you for the suggestion, good idea. In the latest update, I added [field image-link] and [field thumbnail-link]that display the featured image linked to the post.

    That was fast! Wow, thanks Eliot!!

    Your plugin becomes more and more useful with every update. I use it for everything I can now. Fantastic work ??

    Thread Starter hugo2808

    (@hugo2808)

    Yes!! It was it –> Text Editor. I didn’t updated the plugin, so I didn’t read it ??
    Excelent, now it works perfect, with [field image-link] or [field thumbnail-link] I get the link to the post by clicking the image..
    Excellent

    Many thnaks
    Hugo

    Plugin Author Eliot Akira

    (@miyarakira)

    Great, I’m glad it worked! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Image Link’ is closed to new replies.