MTV
Forum Replies Created
-
I’ve tried to switch to different themes but nothing change
Forum: Fixing WordPress
In reply to: How to set current category as a home pageAnyone?
Forum: Plugins
In reply to: [Plugin: Dave’s WordPress Live Search] Search current category-only?I did as you said above but doesn’t work Dave
Forum: Fixing WordPress
In reply to: How to set current category as a home pageCan you help me out Rahul?
Forum: Fixing WordPress
In reply to: Search current categoryI was trying to change your code with the current search code but doesn’t work
Here’s the current search form
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> <div id="search"> <input type="text" value="" onclick="this.value='';" name="s" id="s" /> <input name="" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/styles/<?php echo "$style_path"; ?>/btn-search.gif" value="Go" class="btn" /> </div><!--/search --> </form>
Thanks
oh.amanda
where should I insert that code?
Thanks
Forum: Fixing WordPress
In reply to: How to remove amung.us/small.jsI believe it integrated in one of the plugins. It only show on the main directory.
Forum: Fixing WordPress
In reply to: How to split single category posts into two columnsHere’s the code
Forum: Themes and Templates
In reply to: How to create horizontal sub navigation menu?can someone helps me please
Forum: Themes and Templates
In reply to: How to create horizontal sub navigation menu?I couldn’t figure out how to display child categories under the main menu.
<div id=”navbar”>
<ul id=”menu”>
<li<?php if(!is_category() && !is_page() && !is_single()) { ?> class=”current-cat”<?php } ?>>” title=”Home”><?php print HOME; ?>
<?php wp_list_categories(‘orderby=ID&order=ASC&depth=1&hide_empty=0&title_li=’); ?></div>
#navbar {
background:#fafafa;
margin-bottom:15px;
height:25px;
font-size:14px;
}
ul#menu li {
display: inline;
float:left;
width: auto;
}
ul#menu li a {
display: block;
color:#333;
border-right:1px solid #555;
padding:4px 10px 4px 10px;
}
ul#menu li a:hover {
text-decoration:underline;
}
ul#menu li.current-cat a {
color:#fff;
background:#f7f7f7;
text-decoration:none;
}
ul#menu li ul {
position: absolute;
width: 180px;
z-index:999;
left: -999em;
border-bottom:1px solid #777;
}
ul#menu li li {
display: inline;
float: left;
width: 180px;
}
ul#menu li li a {
background: #999;
float: none;
color:#222;
letter-spacing:-1px;
padding: 3px 10px;
border-top: 1px solid #afafaf;
border-right:0;
width:auto;
}
ul#menu li li a:hover, ul#menu li li a:active {
background: #ddd;
color:#000;
text-decoration:none;
}
ul#menu li:hover ul, ul#menu li.sfhover ul {
left: auto;
display:block;
}Forum: Fixing WordPress
In reply to: How to sort random posts by date?Great plugins Shane but it doesn’t give me an option to sort the date.
Forum: Fixing WordPress
In reply to: Omit the duplicate post ID from sidebarAnyone can help please?
Forum: Fixing WordPress
In reply to: Omit the duplicate post ID from sidebarHi Michael,
Can you help me to integrate your code with this one please. I was trying to echo category’s name instead of static text but it won’t work
<?php global $post; $categories = get_the_category(); foreach ($categories as $category) :?> <li><h2>More Posts from <?php echo $category->name; ?></h2> <ul class="recent_article"> <?php $posts = get_posts('numberposts=5&category='. $category->term_id); foreach($posts as $post) : setup_postdata($post); ?> <li> <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <div class="content"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a><?php the_content(); ?></div> <div class="clear"></div> </li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?>
Appreciated it
Forum: Fixing WordPress
In reply to: How to show posts from same category as current post in sidebar?Is there a way to omit the recent post from the sidebar which currently viewing?
I just realized that only admin can see the frontpage. I was logged in on IE at the time. Therefore, I was able to see everything.
Which option that I can disable, where all visitors can view the site without restrictions?
Thanks