WordPress.org

Ready to get started?Download WordPress

Forums

WP Easy Post Types
How do I convert a plain text field containing a url into a clickable h (5 posts)

  1. lynnejo
    Member
    Posted 4 years ago #

    And also do the same for email addresses?

    Thank you

    Lynne

    http://wordpress.org/extend/plugins/easy-post-types/

  2. hoss9009
    Member
    Posted 3 years ago #

    Here, here!
    Help?

  3. hoss9009
    Member
    Posted 3 years ago #

    Ok here's what I have:
    <?php $mcf = get_ept_field('web_website', array('raw' => 'true') ); var_dump($mcf); ?>

    BUT.... for some reason it's throwing in some string for me:
    <a href="string(25) "http://www.domain.com" ">See this item live!</a>
    WTF?! Help?

  4. hoss9009
    Member
    Posted 3 years ago #

    Also, if I didn't point it out, it adds quotation marks ("") around the text (domain).

    Really weird.

  5. mccormicky
    Member
    Posted 3 years ago #

    Here's what I use:

    <a href="<?php echo get_post_meta($post->ID, 'put your custom post type field name here',true) ?>">link text</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic