WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Newfound
    Member
    Posted 1 year 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.

    Thoughts?

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

  2. Newfound
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.