Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Heheheh – scratch that. I was using a static page as the landing page, so my conditional should have been:

    <?php if (is_front_page()) { ?>

    This is because “is_home” is only true if you’re using the default home page with blog posts. A static page becomes “front_page”.

    Just in case this has caught anyone else out…

    Hi all,

    This is driving me nuts! I know I’m missing something really obvious…

    I’m trying to embed the nggSlideshowWidget only on the home page, using our usual images for the other pages. This is my code in the theme’s header.php:

    <?php if (is_home()) { ?>
    		<div>
    		<?php if (function_exists("nggSlideshowWidget"))
    			{ nggSlideshowWidget(1,794,240); } ?>
    		</div>
    <?php } else { ?>
    		<div class="titleimage"></div>
    <?php } ?>

    The problem is that whatever the page, it is calling the standard div (titleimage). Removing the if conditional and simply calling nggSlideshowWidget works (for all pages).

    Save my sanity please, someone – any ideas?

    Hi artrato3,

    Try http://wpimagerotator.com/ if you’re after a plugin.

    If you’re happy with a bit of coding (more cutting & pasting, really), have a look at http://ma.tt/scripts/randomimage/ – Matt has done it quite nicely.

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