stormrider
Forum Replies Created
-
Forum: Plugins
In reply to: [JSL3 Facebook Wall Feed] Access token expiresI’m getting this same problem. I created a new Facebook App a few months ago the first time I got this error. I really don’t want to have to create a new app every time this app expires.
Forum: Plugins
In reply to: [Plugin: All in One SEO Pack] Enabling after updatesEven after you donate, both the donate and the enable button both automatically un-check every time there’s an upgrade. Pretty lame “feature,” and I definitely won’t be donating to them again.
Forum: Fixing WordPress
In reply to: Image / Media Uploader Forces Login Screen in Firefox and OperaI have the same problem; redirects to login in Firefox, works fine in IE
Forum: Fixing WordPress
In reply to: Media Library search doesn’t workFunny how that works, you post for help and then you figure it out.
Turns out it’s the plugin Advanced Search 2.0Forum: Fixing WordPress
In reply to: Media Library search doesn’t workOught to mention, I have a different install of wp running on the same server that doesn’t have this problem.
Forum: Fixing WordPress
In reply to: the_content not responding to the “more tag” outside of WPThanks for the response.
So my code now reads:
<?php $my_query = new WP_Query('category_name=howto&showposts=2'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>: <?php global $more; $more = 1; the_content(); ?> <?php endwhile; ?>
This still doesn’t work though. Was changed in 2.5?, because it worked before.
Edit: Got it. 0 turns more on, 1 turns more off.
So:<?php global $more; $more = 1;
Fixed it.
Thank you.
Forum: Fixing WordPress
In reply to: the_content not responding to the “more tag” outside of WPbump again
Forum: Fixing WordPress
In reply to: the_content not responding to the “more tag” outside of WPbump, I’m still hitting my head against the wall here.
Forum: Developing with WordPress
In reply to: Only show posts if they’re less than 3 days oldHalf of the problem was that I didnt’ know what to search for. I finally stumbled upon a older post here that helped a bit, and I seem to have hacked this together to make it work how I want.
It made it a bit ugly, but by changing the number that the posts are measured against I can make the block disappear, which means it’s working right.
<?php // Start of the mini-loop, specifies which category to look in and how many posts to pull// $my_query = new WP_Query('category_name=breaking-news&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; // Adjust 604800 to the number of days in seconds that you want to check against. Posts will only appear if they are newer than that time.// if ( (current_time(timestamp) - get_the_time('U') - (get_settings('gmt_offset') * 3600) ) < 604800 ) { echo "<tr><td class=breakingnews colspan=3>Breaking News:<a href="; the_permalink(); echo ">"; the_title(); echo "</a> </td></tr>"; } endwhile; ?>
I hope this helps others out, I’m actually pretty surprised I made this work. If anyone has improvements or suggestions, or if there is a better way to do this, I would be happy to hear them.