• Please can someone help me out? I want help on how how I can customize my sidetab to carry some of my category items instead of subscribe, archive, tags and popular. My url link: http://www.examsguru.net/

    my sidetab template file:

    <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>
    
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/tabs.js"></script>
    
    	<ul class="tabs clearfix">  
    
    <li><a href="tabSwitch_2(1, 4, 'tab_', 'content_');"><?php _e("Subscribe"); ?></a></li>
    <li><a href="tabSwitch_2(2, 4, 'tab_', 'content_');"><?php _e("Archives"); ?></a></li>
    <li><a href="tabSwitch_2(3, 4, 'tab_', 'content_');"><?php _e("Tags"); ?></a></li>
    <li><a href="tabSwitch_2(4, 4, 'tab_', 'content_');"><?php _e("Popular"); ?></a></li>
    	<div style="clear:both;"></div>
    
    	<div id="content_1" class="cat_content">
    		<div class="sidebox rss">
    			<p class="feeds"><a>"><?php _e("RSS Feed"); ?></a> | <a>"><?php _e("Comments Feed"); ?></a></p>
    			<p class="email"><?php _e("Get the latest updates via email."); ?></p>
    <?php if ( $wp_jazz_fb_feed_id ) { ?>
    			<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $wp_jazz_fb_feed_id; ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
    				<input type="hidden" value="<?php echo $wp_jazz_fb_feed_id; ?>" name="uri"/>
    				<input type="hidden" name="loc" value="en_US"/>
    				<p><input type="text" style="width:140px" name="email" value="<?php _e('enter email address'); ?>" /> <input type="submit" value="<?php _e('Subscribe'); ?>" />
    <small><?php _e('Privacy guaranteed. We will not share your information.'); ?></small></p>
    			</form>
    <?php } elseif ( $wp_jazz_alt_email_code ) { ?>
    			<?php echo stripslashes($wp_jazz_alt_email_code); ?>
    <?php } else { ?>
    			<p><?php _e("I'm sorry but I haven't had time to set up the email subscription feature yet ... try the RSS feed in the meantime."); ?></p>
    <?php } ?>
    		</div>
    	</div>
    
    	<div id="content_2" class="cat_content" style="display:none">
    		<div class="sidebox">
    			<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
    				<option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
    				<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?>
    			</select>
    		</div>
    	</div>
    
    	<div id="content_3" class="cat_content" style="display:none">
    		<div class="sidebox">
    			<select name="tag-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
    			<option value=""><?php echo attribute_escape(__('Select a Tag')); ?></option>
    			<?php $posttags = get_terms('post_tag'); ?>
    			<?php if ($posttags) {
    				foreach($posttags as $tag) {
    					echo "<option value='";
    					echo get_tag_link($tag);
    					echo "'>";
    					echo $tag->name;
    					echo "</option>"; }
    				} ?>
    			</select>
    		</div>
    	</div>
    
    	<div id="content_4" class="cat_content" style="display:none">
    <?php if ( function_exists('get_mostpopular') ) : ?>
    		<div class="popular"><?php get_mostpopular("range=weekly&limit=5&order_by=avg&stats_comments=0&pages=0"); ?></div>
    <?php else : ?>
    		<div class="sidebox"><p><?php _e('This feature has not been activated yet.'); ?></p></div>
    <?php endif; ?>
    
    	</div>

    Thanks in advance

    [please mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code – the above code might be corrupted by the forum parser]

The topic ‘Sidetab customization’ is closed to new replies.