Matt Banks
Forum Replies Created
-
I’ll have to try re-enabling that setting now ??
Thanks!
– MattForum: Fixing WordPress
In reply to: Display posts of past 7 days broken down by cateogryWould that be to reset the query type for any posts below this?
Forum: Fixing WordPress
In reply to: Display posts of past 7 days broken down by cateogryAfter a lot of trial and error and more Codex reading than I ever thought I’d do on a Saturday, I figured this out. Who knows if anyone else will ever need this, but I figured I would post the code here for reference:
function display_week_wrapup() { //Create a new filtering function that will add our where clause to the query function filter_where($where = '') { $today_date = get_the_date('Y-m-d'); //posts between publish date of wrap-up and 7 days prior $where .= " AND post_date >= '" . date('Y-m-d', strtotime('-7 days')) . "' AND post_date < '$today_date'"; return $where; } // Register the filtering function add_filter('posts_where', 'filter_where'); $wrapupcontent = ''; $categories = get_categories(); foreach ($categories as $cat) { $myposts = query_posts("orberby=date&nopaging=true&cat=$cat->cat_ID"); if ( have_posts() ) { $wrapupcontent .= "<h4>$cat->cat_name</h4>"; $wrapupcontent .= '<ul>'; foreach($myposts as $post) { $temp_title = get_the_title($post->ID); $temp_link = get_permalink($post->ID); $wrapupcontent .= "<li><a href='$temp_link'>$temp_title</a></li>"; } $wrapupcontent .= '</ul>'; } } // end foreach cat return $wrapupcontent; } add_shortcode( 'weekwrapup' , 'display_week_wrapup' );
If anyone has optimizations or a better way to do this, let me know ??
Thanks,
MattAlready voted 5 stars and clicked “Works” ??
– Matt
As an update, the 1.5 (and subsequent 1.5.1) update fixed the issue. Not sure what the problem really was, but it seems all good now!
Thanks,
MattOk, I think I just figured it out. I went through disabling some settings I had enabled, and this one was the problem:
Permalinks -> Redirect ugly URL’s to clean permalinks.
No idea why the feed URL is considering ugly, but disabling that and clearing cache made the feed work again and Feedburner recognizes everything.
– Matt
Unfortunately I can’t since it’s on a server that’s both IP filtered and requires authentication. I can make a list of all of my plugins if that works for you.
It’s not happening on any other pages, just on the Management page. I downloading and installed your plugin yesterday (everything else has been installed for a while).
I can definitely test out version 1.5! I’m doing all the work on my testing/dev site before going live, so I have no problem with putting the new version up to see how it goes.
– Matt
As an update, I tested with my custom theme as well as Twenty Ten and the Classic theme. The Blurry Powerpress audio player is showing up in all of them on the management page.
Forum: Themes and Templates
In reply to: Display menu with current ancestors and child pagesDid you find a way to do this? I’m looking to do the same for a new site and I can’t come up with a good way to do this.
Forum: Plugins
In reply to: [Plugin: IntenseDebate Comments] Email AuthorI started running IntenseDebate recently on my site as well and find this a major turn off. With a multiple author site, having each author notified of comments to their posts to continue the discussion is very important. I really don’t understand how this hasn’t been addressed, since it’s a core feature of WordPress that is being disabled.
Forum: Fixing WordPress
In reply to: How to throttle emails on hosts with email sending limits?Looking for something similar. I’m on a dedicated server with a few other sites, but it really bogs down the server (high CPU/RAM usage) on posts with big discussions. I regularly get 200+ comments and want to continue using this plugin, but it’s really slowing things down without the ability to throttle.
Forum: Plugins
In reply to: List Posts with Certain Tag by Month/YearActually, I have on last question. Will this script still update properly if I am using WP Super Cache?
Forum: Plugins
In reply to: List Posts with Certain Tag by Month/YearIf I could give you a hug, I would. ??
THANK YOU SO SO SO MUCH!!!!
Forum: Plugins
In reply to: List Posts with Certain Tag by Month/YearIf I put the closing UL tag after the endwhile, it only closes the list after the last month shown, not after each month.
<?php // for tag1, get all posts in descending date order, on change in Month Year print heading $args=array( 'tag' => 'tag1', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { $ymdate = ''; while ($my_query->have_posts()) : $my_query->the_post(); $ympost = mysql2date("F Y", $post->post_date); if ( $ympost != $ymdate) { $ymdate = $ympost; echo '<p>'.$ymdate.'</p>'; echo '<ul>'; } ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php //the_content('Read the rest of this entry »'); endwhile; echo '</ul>'; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>