WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Tag Cloud Widget
[resolved] Setting mulitple PHP properties (4 posts)

  1. Newfound
    Member
    Posted 11 months ago #

    Me again. :)
    How does one handle the PHP to have multiple properties?

    Currently, I have the following code to turn off the widget tile:

    <?php if (is_home()): ?>
    <?php do_utcw(array( 'show_title_text' => false)) ?>
             <?php endif; ?>

    However, I'd like also to limit the number of tags displayed as well as turn off the title. This is the code I currently cobbled together. What's wrong with it?

    <?php if (is_home()): ?>
    <?php do_utcw(array( 'show_title_text' => false); int( 'max'=>'28')) ?>
             <?php endif; ?>

    http://wordpress.org/extend/plugins/ultimate-tag-cloud-widget/

  2. Rickard Andersson
    Member
    Plugin Author

    Posted 11 months ago #

    Hi

    All the options should go into the array() function separated by commas like this:

    <?php if (is_home()): ?>
    <?php do_utcw(array( 'show_title_text' => false, 'max'=>'28' )) ?>
    <?php endif; ?>
  3. Newfound
    Member
    Posted 11 months ago #

    Works perfect! Maybe add that instruction on your site to help other clueless individuals like me?

    Cheers!

  4. Rickard Andersson
    Member
    Plugin Author

    Posted 11 months ago #

    Will do that in the next update:)

Reply

You must log in to post.

About this Plugin

About this Topic