CookiesForDevo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_nav_menu single post highlightThis is something you can work around, but it’s a bit messy.
If you’re using body_class() in your theme, then the body tag should have a class of something like single-blog-1.
You can use CSS then to target the nav ID (for example):
body.single-blog-1 li#menu-item-352 {}What’s the link to your site? I might be able to help with the actual Classes and IDs then.
Forum: Fixing WordPress
In reply to: Flash Uploader HTTP ErrorTurns out it was being caused by a redirection script I had running in the Admin area. Easily fixed.
Forum: Fixing WordPress
In reply to: Flash Uploader HTTP ErrorIt’s not a plugin for us (other than a select few, that aren’t currently installed, we don’t use them) but does seem to be theme-related as it works without a hitch with the Twenty Ten theme.
I’ll try gutting the functions file to see if it’s in there. Thanks for the help!
Forum: Fixing WordPress
In reply to: Flash Uploader HTTP ErrorWe’re getting the same thing with our sites — the file is still uploaded however.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] display amount of images\galleries\albumsThis should work:
"This site currently has <?php echo $images; ?> number of pics."
Forum: Fixing WordPress
In reply to: Run function if most recent post outside loop?Here’s how I got it to work for me, let me know if you have any problems adapting it:
<?php // query database for most recent post in category 3 $query = get_posts('numberposts=1&category=3'); foreach ($query as $post) { //set variable as title of most recent post $title = get_the_title(); } //start new loop if ( have_posts() ) : while ( have_posts() ) : the_post(); //set variable as title of current article $title2 = get_the_title(); //if titles are the same, do this if ( $title == $title2 ) { ?> <h1>In This Issue</h1> <?php //else if in that category and titles are not the same, do this } elseif ( in_category('3') && $title != $title2 ) { ?> <h1>Previous Features</h1> <?php //else if in different category, display standard message } else { ?> <h1><?php the_category(' '); ?></h1> <?php } ?>
Forum: Fixing WordPress
In reply to: ‘showposts’ breaks WP_QueryI got it to work with a slightly different loop.
<?php $recentPosts = new WP_Query(); $recentPosts->query('meta_key=Quote&showposts=1&orderby=rand'); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
Hope this helps.