• Hi, is there any plugin who could remeber different order of widgets on different themes on one blog? Im making some wp themes, and I want to have one preview blog using theme switcher, and sometimes structure would be differnt (I mean widget orders :)).

    Is that possible? I know I could define this in sidebar.php, but I was just wondering, it could save time at least.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • A lot of themes have certain widgets that are coded into the sidebar and are replaced when the user adds widgets. For instance:

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
    		<li class="widget">
    			<h2>Search It!</h2>
    			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    		</li>
    		<li class="widget">
    			<h2>Recent Entries</h2>
    			<ul>
    				<?php query_posts('showposts=10'); ?>
    				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<li><a href="<?php the_permalink() ?>"><?php the_title() ?></a><span class="recent_date"><?php the_time('n.j') ?></span></li>
    				<?php endwhile; endif; ?>
    				<li><a href="<?php bloginfo('url'); ?>/archives" title="Visit the archives!">Visit the archives for more!</a></li>
    			</ul>
    		</li>
    		<?php if (function_exists('get_flickrrss')) { ?>
    		<li class="widget">
    			<h2><span class="flickr_blue">Flick</span><span class="flickr_pink">r</span></h2>
    			<ul class="flickr_stream">
    				<?php get_flickrrss(); ?>
    			</ul>
    		</li>
    		<?php } ?>
    		<?php get_links_list('id'); ?>
    		<?php endif; ?>

    Thread Starter Sinisa Nikolic

    (@sin2384)

    Ok, thats it then, no other choice. Thank you for your respond!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remebering widgets on different themes’ is closed to new replies.