Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter lolwp

    (@lolwp)

    Thank you for your response, I could never figure out something like that on my own. Worked perfectly.

    Just took me about 3 hours to figure out how to display your plugin’s widget only when viewing the attachment page. This is the best I could come up with, creating new widget areas and:

    <?php if (is_attachment() ) : ?>
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('more-images') ); ?>
               <?php else : ?>
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('not-attachment') ); ?>
    
    	<?php endif; ?>

    I don’t need it (anymore), but perhaps it’s a feature you might want to consider for your plugin.

    Again, thanks for your help.

Viewing 1 replies (of 1 total)