dmx09
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display category menus on single post pagesSorted the problem , if anyone is interested..
<?php if ( is_single() || is_archive() || is_page(4) || in_category( array('news', 'events', 'partner-events'))) : ?> <div class="widget"> <h3>What's On</h3> <?php wp_nav_menu( array('menu' => 'Events Menu' )); ?> </div> <?php endif ; ?>
Forum: Plugins
In reply to: [Plugin: Tweet Blender] Adding a loop? (Like the Twitter.com widgets)hmm, I’m also looking for this functionality. Does anyone know where I can find the ‘Official’ Twitter widget?
Forum: Fixing WordPress
In reply to: Display category menus on single post pagesI’ve gotten a little further but could use some help if possible..
I wondered if its possible to adapt this code to include an if statement.So if its single and in category x, load Events menu, otherwise load News menu..
<?php if ( is_single() ) : ?> <div class="widget"> <h3>What's On</h3> <?php wp_nav_menu( array('menu' => 'Events Menu' )); ?> </div> <?php endif ; ?>
Forum: Fixing WordPress
In reply to: Displaying posts in sidebar using sidebar.phpJust to let you know, I re-uploaded the sidebar file this morning having only moved the ‘endwhile’ code as per your first suggestion and it works!
Not sure what happened over the weekend, maybe I had too many beers the night before!
Anyway, thanks again! It’s very much appreciated.
Forum: Fixing WordPress
In reply to: Displaying posts in sidebar using sidebar.phpmany thanks for your help, I’m sure I’ll sort it eventually! ??
Forum: Fixing WordPress
In reply to: Displaying posts in sidebar using sidebar.phpUnfortunately, I can’t post the url of this particular site here but I’ve done a quick screen grab if that helps.. Basically, the sidebar is pushing down the main content div for some reason. It’s fine if I only display 1 post in the sidebar but any more than that it breaks..
It looks as tough the 2nd post is not being wrapped in a ‘widget’ class and my best guess is that is the issue..
Forum: Fixing WordPress
In reply to: Displaying posts in sidebar using sidebar.phpDoesn’t look like that did the trick..
This is the entire sidebar.php if anyone has any thoughts…[code moderated as per forum rules - please use the pastebin]
Forum: Fixing WordPress
In reply to: Displaying posts in sidebar using sidebar.phpOh I see, will give that a go, many thanks!
Forum: Hacks
In reply to: Load different header.php files on different pages?That’s excellent, many thanks!
Anyone out there that has had this issue?
Forum: Fixing WordPress
In reply to: Adding Multiple Category DropdownsFantastic, many thanks!
Forum: Fixing WordPress
In reply to: Adding Multiple Category DropdownsThanks, thats where I got the
&show_option_all
code from.
I’ll have another look, maybe I missed something.Forum: Fixing WordPress
In reply to: Adding Multiple Category DropdownsThat works a treat, many thanks!
At the moment it only displays the categories which have posts attached to them, is there a way to show all categories regardless of whether there are associated posts?
I’ve added
&show_option_all
but it still only shows populated categories.<?php wp_dropdown_categories('show_count=1&hierarchical=1&child_of=26&show_option_all');?>
Forum: Fixing WordPress
In reply to: Blog with searchable mp3s and manual registrant approval system?To simplify the above, does anyone know if there is a widget that will display a file list (mp3’s for example)..
The user might simply select a category (maybe ‘rock’) and see a list of files for this category..
I’ve searched but havent come across anything so far.