WordPress.org

Support

Support » Plugins and Hacks » WP Easy Post Types » [Plugin: WP Easy Post Types] How do I convert a plain text field containing a url into a clickable h

[Plugin: WP Easy Post Types] How do I convert a plain text field containing a url into a clickable h

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here, here!
    Help?

    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?

    Also, if I didn’t point it out, it adds quotation marks (“”) around the text (domain).

    Really weird.

    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>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Easy Post Types] How do I convert a plain text field containing a url into a clickable h’ is closed to new replies.
Skip to toolbar