Support » Plugin: Ultimate Tag Cloud Widget » Show only on blog home PHP

  • Resolved Newfound

    (@precipitatejournal)


    Me again! I need some PHP gurus to aid me here. I can’t seem to understand the logic of how to display the plugin on only my main blog page. Right now I’m trying something like this:

    <?php if (is_home()) { $args } ?>

    I understand that the “$args” part is wrong. I’ve also tried “do_utcw($args);” but that doesn’t work either.

    Thoughts?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Newfound

    (@precipitatejournal)

    Okay, so I’ve figured out that this code will work for other plugins just to add a plugin on ONLY my homepage, but it is still not working for UTCW

    `<?php if (is_home()): ?>
    <?php do_utcw($args); ?>
    <?php endif; ?>`

    Doing so doesn’t show the plugin and blanks out the rest of the screen that follows. Also, of note, if I just add the <?php do_utcw($args); ?>, I get the same problem.

    What am I doing wrong here, people?

    Newfound

    (@precipitatejournal)

    Also, the plugin does show up as a widget. But the shortcode doesn’t work. It also blanks out my web page.

    Do you see any error messages in your apache or php error logs? Blanking out the page usually indicates that some kind of error occurred.

    Newfound

    (@precipitatejournal)

    For the record, this issue was solved with adding the following code to the loop.php page:

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show only on blog home PHP’ is closed to new replies.