WordPress.org

Ready to get started?Download WordPress

Forums

Developer's Custom Fields
[resolved] Textile Fields not utilizing bold, italic and links (10 posts)

  1. Nick
    Member
    Posted 2 years ago #

    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/

  2. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    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?

  3. Nick
    Member
    Posted 2 years ago #

    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.

  4. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

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

  5. Nick
    Member
    Posted 2 years ago #

    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!

  6. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. Nick
    Member
    Posted 2 years ago #

    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!

  8. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    Great!

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

  9. Nick
    Member
    Posted 2 years ago #

    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.

  10. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic