• Resolved Newfound

    (@precipitatejournal)


    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://ww.wp.xz.cn/extend/plugins/ultimate-tag-cloud-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rickard Andersson

    (@exz)

    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; ?>
    Thread Starter Newfound

    (@precipitatejournal)

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

    Cheers!

    Plugin Author Rickard Andersson

    (@exz)

    Will do that in the next update:)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Setting mulitple PHP properties’ is closed to new replies.