WordPress.org

Support

Support » Plugins and Hacks » Developer's Custom Fields » [Resolved] Textile Fields not utilizing bold, italic and links

[Resolved] Textile Fields not utilizing bold, italic and links

  • Nick

    @nicholasdstevensmecom

    Hello. I really like this plugin and am using it extensively, but I’ve run into a problem. Whenever I use a textile field, I can’t get the **bold**, __italic__ and links to work. Here is my code to register the field.

    slt_cf_register_box(array(
    		'type' => 'post',
    		'id' => 'bartender_profile',
    		'title' => 'Bartender Profile',
    		'context' => 'above-content',
    		'fields' => array(
    			array(
    				'name' => 'bartender_gigs',
    				'label' => 'What are your other gigs and interests?',
    				'type' => 'textile',
    				'scope' => array('hooch_bartender'),
    				'autop' => true
    		))));
    }

    To echo the code I’ve tried both of these:
    <?php echo get_post_meta($post->ID, '_slt_bartender_gigs', true); ?>
    and
    <?php echo slt_cf_field_value( 'bartender_gigs' ); ?>

    Any ideas on how to get the bold, italic and links to work?

    Thanks!

    http://wordpress.org/extend/plugins/developers-custom-fields/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Steve Taylor

    @gyrus

    What’s not working? The second method of outputting should work. What does it output? Also, could you check what’s stored in the postmeta table?

    Nick

    @nicholasdstevensmecom

    Thank you for your quick reply. It outputs a link link like this:

    “Wale – The Eleven One Eleven Theory”:http://youtu.be/Vfds2HbopXk
    and bold like this:

    **this is a bolded sentence.**

    It never applies the bold or link. This is what is stored in the postmeta table:
    <p>The perfect song, I listen to this to get my day started: "Wale - The Eleven One Eleven Theory":http://youtu.be/Vfds2HbopXk</p>

    I want Wale – The Eleven One Eleven Theory to be a link to the url that follows the colon.

    Plugin Author Steve Taylor

    @gyrus

    I just tried your text and it works OK on my test installation. What version of WP and the plugin are you using?

    Nick

    @nicholasdstevensmecom

    WordPress is 3.2.1 and the plugin is 0.7.1. I realize there is a newer version of the plugin, but I’m crunched to get this site finished and I haven’t tested the upgrade.

    When the form values are submitted to the postmeta table is it supposed to apply the html tags then? Or does it convert them when it is outputted with slt_cf_field_value( )?

    Thanks!

    Plugin Author Steve Taylor

    @gyrus

    Yes, the value stored in the database should have the markup applied; it’s reversed when the field is output in admin.

    I’ve been getting 0.7.2 ready and I have that running on WP 3.2.1 and on a beta of 3.3 – I don’t currently have a 3.2.1 install running 0.7.1.

    I appreciate you don’t want to upgrade before finishing the site, but will you be upgrading to WP 3.3 at all? The 0.7.2 will be essential then, and best to test before launch 🙂

    Anyway, let me know if you make any progress debugging. If you get nowhere, I’ll see if I find time to install 3.2.1 and 0.7.1.

    Nick

    @nicholasdstevensmecom

    I took the time and risk to try out 0.7.2 and it works. Thank you Steve for your help.

    Looking forward to WP 3.3 mostly so that I can use the WYSIWYG fields instead of the textile fields. Now that I’m upgraded to 0.7.2 it will be that much easier to go to WP 3.3 when it comes out any day now. Thanks!

    Plugin Author Steve Taylor

    @gyrus

    Great!

    Out of interest, what’s the problem with the WYSIWYG fields in 3.2.1?

    Nick

    @nicholasdstevensmecom

    In 3.2.1 using version 0.7.1 of the plugin they do not save values to the database. I have not tried it with 0.7.2.

    Plugin Author Steve Taylor

    @gyrus

    Another mystery. I’m guessing it may be a bug in 0.7.1. If 0.7.2 works, it probably is.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Textile Fields not utilizing bold, italic and links’ is closed to new replies.
Skip to toolbar