adkbasecamp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Limit Daily Digest to Last 3 DaysI believe this is resolved by adding a time parameter filter:
function filter_where($where = '') { //posts in the last 3 days $where .= " AND post_date > '" . date('Y-m-d', strtotime('-3 days')) . "'"; return $where; } add_filter('posts_where', 'filter_where');
(Hey Mod: Sorry about the code before)
Daily Digest – Page Template – Last 3 Days
My Page Template now displays the last 3 days of posts, listed under the date of posting. So cool, I love WP.
To improve this, I would like to have it display the last 3 days with posts. Problem: if I skip 3 days of posting, nothing would display.
If anyone has any comments about this implementation, improvements, etc. would welcome the input.
(I would also like to add Page Navigation to previous or next “day” – limited to only 1 day’s digest per page. That’s likely going to be a support request for another day.)
Forum: Themes and Templates
In reply to: Limit Daily Digest to Last 3 Days@kreativejustin
I have no clue how to use that, I’m barely literate when it comes to this stuff.
Looking at that code you provided – it’s comparing the post date to current date, then if it is 3 days old or less, it will display the posts.
How do I incorporate that into the code I have? Appreciate your help.
Forum: Themes and Templates
In reply to: Limit Daily Digest to Last 3 DaysThanks man, I’ll give that at shot and see what kind of trouble I can get into.
Where should I put that?
Forum: Hacks
In reply to: Daily ArchiveThanks for the code. I removed the display of number of posts, added display of content, and put the code into a Page Template:
Question: How do I limit the number of days displayed? i.e. the most recent 3 days.
<?php // list all posts, sectioned by post date $args=array( 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page'=>-1, 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); $this_date = get_the_time(__('l d F Y')); if ($this_date != $last_date) { $last_date = $this_date; echo '<h2>'.$last_date.'</h2>'; } ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><br /><?php the_content(); ?></p> <?php endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Forum: Themes and Templates
In reply to: "link" button on quickpost box is brokenI should have added:
It would be cool if the “Link” feature could discover title, description, and auto-populate.
Forum: Themes and Templates
In reply to: "link" button on quickpost box is broken@azizpoonnawalla
“…distributed Twitter…” << exactly !
We could feed P2 posts (or designated posts) to Twitter and have replies and RT’s show as post comments. People could follow via whatever platform they want, content and conversation both in the database and the cloud.
Forum: Installing WordPress
In reply to: WordPress 3.0 Install ProblemsI did a manual upgrade…. The Horror!
I think WP server was borked due to many people upgrading. Best to wait a bit for the fervor to die down.
Forum: Installing WordPress
In reply to: WordPress 3.0 Install ProblemsMe to. What files?
Forum: Plugins
In reply to: [Plugin: Simple Tags] Updated to 1.7.2Yeah, me too.
Rolled back and got the “fatal error” thing.
Forum: Installing WordPress
In reply to: After upgrade 2.5.1, hard to post. *URGENT*I’m having the exact same issue. All Admin seems to work except the Post Edit. It loads OK, but then it slows down, flashing Save/Publish, Image Uploader fails to load.
Barely usable with IE, completely unusable with Firefox – both Vista and Windows.
I’m not ready for ZeusII’s solutions as documented here and in the Trac post. Anyone have any ideas? Seems script, flash, or Ajax related, but that’s just a guess.
Forum: Fixing WordPress
In reply to: Google Map Embed ProblemYeah, disabling works. I’ve heard similar problems with MS Live’s editor also. I’m not using the latest WP, but I don’t think that’s the issue. Upgrading tonight, we’ll see.
Forum: Fixing WordPress
In reply to: Feed updating in Bloglines every few hoursHey, I’m having the same issue with a post showing up as updated in Bloglines. Only one post is doing this.
It’s annoying me enough to want to delete it.
Forum: Fixing WordPress
In reply to: popup Press ItAwesome! Works like a charm. We can put this thread to sleep.
Forum: Fixing WordPress
In reply to: popup Press ItJust found the Blog this plugin. Very cool, opens a mini-posting window with only the bare essentials.
Still wouldn’t mind opening the full posting window via “Press it”.
Forum: Fixing WordPress
In reply to: popup Press ItI would love to have the “Press it” bookmarklet open a Pop-up or New Window/Tab. This would make my life so much better!
Heck, what about a Firefox extension of some sort?