• Hi, hopefully someone can help me with this:

    I just wants to connect a posted custom field image (inside a js slider) to an article oder page.

    How to do that – PLEEEEAAASE HELP ME !
    I’m searching sooo long – nothing found.

    THankS A LoT!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cinoa

    (@cinoa)

    I found the answer myself, zhanks:

    You have to add this:

    <?php if ($preview = get_post_meta($post->ID, ‘preview’, $single = true)) { ?>
    <p>ID, “imglink”, true); ?>”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/timthumb.php?src=<?php echo $preview; ?>&h=245&w=440&zc=1″ alt=””/>
    <?php } else { ?>

    The strong one connects the new custom field called ‘imglink’ with the ‘preview’ one and hands over the forewarder url.

    Take care and share!

    Love to all of You around mother earth
    greetings from the top of the Black Forest! which seems to be the hottest place today: close to 40+ celsius

    Hi Cinoa,

    This is exactly what I’m trying to do. Can you please help me a little more please? Where do I put this code exactly?

    Thanks!

    Also, this info might be helpful. My custom field images are placed on posts. These posts are featured on my home page, but I can’t get the images on the home page to link back to the post. Here’s my home page: https://www.socius1.com. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to link a custom field image to a article/page’ is closed to new replies.