Ultimate Tag Cloud Widget
[resolved] Show only on blog home PHP (5 posts)

  1. Newfound
    Posted 2 years ago #

    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.



  2. Newfound
    Posted 2 years ago #

    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?

  3. Newfound
    Posted 2 years ago #

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

  4. Rickard Andersson
    Plugin Author

    Posted 2 years ago #

    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.

  5. Newfound
    Posted 2 years ago #

    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; ?>`

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Tag Cloud Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.