• Not the best at php but i think those that are will see what I’m trying to do. I have a custom post type that that i want to add a link to at the end and thought i’d use a custom field that i’d enter something like, “projects” to and in the code i was thinking of having the blog url link + “projects” if there is a better way, please feel free.
    this is what i thought would work:

    <?php if ( get_post_meta($post->ID, "Category Link", true) ) { ?>
    <a href="<?php bloginfo('template_url') . get_post_meta($post->ID, "Category Link", $single = true); ?>" ></a>
    
    				<?php } ?>

The topic ‘adding a custom field to a link’ is closed to new replies.