sene1983
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Hide Sidebar if in Categoryhi,
i wanna try this code,<?php if (in_category('Category', $id)) { ?> No dynamic sidebar shown. <?php }else{ ?> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?><?php endif; ?> <?php } ?>But, to which file i will add this code? To, index.php or page.php
thanx for your helpForum: Plugins
In reply to: download sectionany reply?
Forum: Fixing WordPress
In reply to: Dropdown Posts Listsorry?
`<?php wp_dropdown_categories(‘show_option_none=Select a Category&show_count=1’); ?>
<script type=”text/javascript”><!–
var dropdown = document.getElementById(“cat”);
function onCatChange() {
if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
location.href = “<?php echo get_option(‘home’);
?>/?cat=”+dropdown.options[dropdown.selectedIndex].value;
}
}
dropdown.onchange = onCatChange;
–></script>`is that code is workin?
Forum: Fixing WordPress
In reply to: Dropdown Posts Listhi, i read the posts. but i could not understand. there are lots of php codes here. 🙁
For example, there are 2 categories that named “A” and “B”. when you login the A category, i want dropdown plugin to show the post of “A” category. when you click the category “B”, i want to dropdown to show the post of category “B is that possible?
plz help