• mhuynh55

    (@mhuynh55)


    Hi there,
    A small issue has arisen from the design of my wordpress site. What has happened is that I have used the post meta tag. It appears as a byline for each wordpress post. This post meta tag is controlled via the post’s custom fields.

    However, some of these posts also have a second custom field attached to them. This second custom field is a link to an image.

    How can I only show the first or the only necessary meta tag? Because both custom fields appear.

Viewing 1 replies (of 1 total)
  • Thread Starter mhuynh55

    (@mhuynh55)

    I should also have mentioned that I have pulled some of these posts on my frontpage. These special posts have been styled so that an img thumb that represents the post + the excerpt. I use the second custom field to pull the image thumb and I use this:

    <?php $values = get_post_custom_values("Image"); if (isset($values[0])) { ?>
             <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
            <img src="<?php bloginfo('url'); echo get_option('sirup_upload_path'); $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" width="95" height="95"<?php echo get_option('sirup_thumb_cat'); ?>"/></a>
             <?php } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Show only or one specific post meta tag’ is closed to new replies.