WordPress.org

Forums

WP Boilerplate Shortcode
[resolved] showtitle='false' not working on my install; showtitle= (2 posts)

  1. philzo
    Member
    Posted 4 years ago #

    I've spent all of 20 minutes with boilerplate and already I'm thinking big things. Thanks for a great plugin.

    One small thing I noticed:

    the_boilerplate(21,'id',array('showtitle'=>'false'))

    does not turn off the title of the boilerplate as expected. Changing false to 0 (the number zero) fixed it. Might be unique to my install.

    I'm using this code in a custom function in a child theme of Thematic, WP 3.0.1.

    http://wordpress.org/extend/plugins/wp-boilerplate-shortcode/

  2. Mike Schinkel
    Member
    Plugin Author

    Posted 4 years ago #

    Hi @philzo,

    Glad you like it. Sorry for my error in documentation, should have been:

    the_boilerplate(21,'id',array('showtitle'=>false))

    The value for "showtitle" gets evaluated as true(1) or false(0) so a string of "false" actually evaluates to true. My bad, my documentation shows it working that way.

    I'm planning to come out with a new version as soon as I can finish my current client project at which time I'll fix the docs.

    -Mike

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Boilerplate Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic