Title: sgardner's Replies | WordPress.org

---

# sgardner

  [  ](https://wordpress.org/support/users/sgardner/)

 *   [Profile](https://wordpress.org/support/users/sgardner/)
 *   [Topics Started](https://wordpress.org/support/users/sgardner/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sgardner/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sgardner/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sgardner/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sgardner/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sgardner/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Will this code limit the posts displayed to the last 14 days?](https://wordpress.org/support/topic/will-this-code-limit-the-posts-displayed-to-the-last-14-days/)
 *  Thread Starter [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/will-this-code-limit-the-posts-displayed-to-the-last-14-days/#post-1275331)
 * Ok I re-read the page you linked to and i overlooked what was plain to see. but
   now i have another problem.
 * this is the code;
 *     ```
       <?php
       //based on Austin Matzko's code from wp-hackers email list
         function filter_where($where = '') {
           //posts in the last 30 days
           $where .= " AND post_date > '" . date('Y-m-d', strtotime('-14 days')) . "'";
           //posts  30 to 60 days old
           //$where .= " AND post_date >= '" . date('Y-m-d', strtotime('-60 days')) . "'" . " AND post_date <= '" . date('Y-m-d', strtotime('-30 days')) . "'";
           //posts for March 1 to March 15, 2009
           //$where .= " AND post_date >= '2009-03-01' AND post_date < '2009-03-16'";
           return $where;
         }
       add_filter('posts_where', 'filter_where');
       query_posts($query_string);
       ?>
       ```
   
 * when i limit the posts to display the last 14 days this also effects the “recent
   posts” widget. I have the widget to display the last 5 posts but the list stops
   after the 14 day cut off.
 * How can i have the time limit on the Homepage Main Section Only, not effecting
   the widgets and other pages.
 * Thanks
    Steven
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Will this code limit the posts displayed to the last 14 days?](https://wordpress.org/support/topic/will-this-code-limit-the-posts-displayed-to-the-last-14-days/)
 *  Thread Starter [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/will-this-code-limit-the-posts-displayed-to-the-last-14-days/#post-1275327)
 * Yes this is where i read first but i dont understand how to impliment posts only
   within the last 14 days.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin to handle a soccer team](https://wordpress.org/support/topic/plugin-to-handle-a-soccer-team/)
 *  [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-to-handle-a-soccer-team/#post-1048094)
 * Me too!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Create a Next Fixture Widget](https://wordpress.org/support/topic/create-a-next-fixture-widget/)
 *  Thread Starter [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/create-a-next-fixture-widget/#post-1245252)
 * Anyone willing to help me on this one.
 * Please.
 * The website’s i will use it on is
 * [http://www.eastvale.co.uk](http://www.eastvale.co.uk)
    and [http://www.burntislandshipyard.co.uk](http://www.burntislandshipyard.co.uk)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How To Create a custon input field for a page](https://wordpress.org/support/topic/how-to-create-a-custon-input-field-for-a-page/)
 *  Thread Starter [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/how-to-create-a-custon-input-field-for-a-page/#post-1214933)
 * Thanks,
 * I had a quick bash at it yesterday but i must have missed something. The Tag 
   boxes with the Players, committee etc. where there but when i added anything 
   nothing changed.
 * Also
 * Does this system allow admin to attatch a photo and description to the Name?
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Easy Contact – not displaying senders emails](https://wordpress.org/support/topic/easy-contact-not-displaying-senders-emails/)
 *  [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/easy-contact-not-displaying-senders-emails/#post-1191610)
 * After so long with no replies i Removed the plugin and used another.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin: LEAGUEMANAGER delete a match!](https://wordpress.org/support/topic/plugin-leaguemanager-delete-a-match/)
 *  Thread Starter [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-leaguemanager-delete-a-match/#post-1208027)
 * I managed to fix this myself by going into my PHP MYADMIN Page and edit the MySQL
   Database. Very crude but it got the job done.
 * If there is anyone with a better solution then please get in touch.
 * Thanks
 * Steven
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Easy Contact – not displaying senders emails](https://wordpress.org/support/topic/easy-contact-not-displaying-senders-emails/)
 *  [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/easy-contact-not-displaying-senders-emails/#post-1191599)
 * Has anyone got any help or alternatives?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: LeagueManager] Version 2.9 & Championchip Mode](https://wordpress.org/support/topic/plugin-leaguemanager-version-29-amp-championchip-mode/)
 *  [sgardner](https://wordpress.org/support/users/sgardner/)
 * (@sgardner)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-leaguemanager-version-29-amp-championchip-mode/page/2/#post-1086533)
 * I have an issue I can’t solve myself and need help please!
 * I mistakenly added a league match and posted the results from said match only
   to later find out the match was infact a cup tie and should not have been posted.
 * I need to remove this match and its result from the league as the league table
   is showing false information due to my ignorance.
 * I have tried deleting the match from the match list but this does not effect 
   the league table and the match still exisists but only as a 0-0 result (the actual
   result was 5-2).
 * Can someone please help me?
 * Thanks
    Steven Gardner

Viewing 9 replies - 1 through 9 (of 9 total)