Title: lsshock's Replies | WordPress.org

---

# lsshock

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/lsshock/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/lsshock/replies/page/2/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Filter by modified date and custom field](https://wordpress.org/support/topic/filter-by-modified-date-and-custom-field/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [15 years ago](https://wordpress.org/support/topic/filter-by-modified-date-and-custom-field/#post-2093677)
 * the above works, the problem was my post date’s
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Filter by modified date and custom field](https://wordpress.org/support/topic/filter-by-modified-date-and-custom-field/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [15 years ago](https://wordpress.org/support/topic/filter-by-modified-date-and-custom-field/#post-2093558)
 * the start i’v made is
 *     ```
       $args = array(
       	'post_type' => 'post',
       	'showposts' => '18',
       	'orderby' => 'modified',
       	'meta_query' => array(
       		array(
       			'key' => 'inTheaters',
       			'value' => date('Y-m-d'),
       			'type' => 'DATE',
       			'compare' => '>='
       		)
       	)
        );
       $my_query = new WP_Query();
       $my_query->query( $args );
       ```
   
 * **to clarify my question, im sorting by modified date and dont want to show posts
   which are before the current date (based on the custom field)**
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Show this weeks post](https://wordpress.org/support/topic/show-this-weeks-post/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/show-this-weeks-post/#post-1078038)
 * I somewhat have what i want right now using Autodeleteposts
    to move them to 
   a category and excluding it from my index page but doing it like this i cant 
   really do easy pagenation
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1075123)
 * thanks Ben!
    it works now it should until next week. i mean show the posts of
   this week
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1075113)
 * It doesnt show the post of yesterday in the sidebar right now
    i emailed you 
   the url to the test site
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1075039)
 * This works much better, the other did indeed gave me a bug of double posts.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1074989)
 * on small thing though is it also possible to have it use the permalink of a post?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1074988)
 * oh thats still dumb of me
    it works! thanks for the help and writing such nifty
   code!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1074966)
 * new error
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
   result resource
 * my line: $query = mysql_query(“SELECT * FROM [wp_]posts ORDER BY post_date DESC
   LIMIT 0,7”);
 * from my config file
    $table_prefix = ‘wp_’;
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1074955)
 * did not see that one, i filled in the prefix wp_ assuming thats what it needs.
 * still gives me the same error but now line 49
 * sorry if im really dumb 😉
 * *i tried with the new code but still wont fire
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidebar show posts of this week only](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/sidebar-show-posts-of-this-week-only/#post-1074936)
 * thanks for the fast reply
    i get an error after filling in the DB info
 * `Parse error: syntax error, unexpected $end in /home/rick/domains/ideaprison.
   com/public_html/dailystory/wp-content/themes/ideaprison/sidebar.php on line 50`
 * and inside that file line 50 is actually blank..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: PostRatings] RSS wont sort most rated](https://wordpress.org/support/topic/plugin-postratings-rss-wont-sort-most-rated/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-postratings-rss-wont-sort-most-rated/#post-977123)
 * if you mean setting it up and saving again
    (Permalink structure updated.)
 * than that had no effect 🙁
 * if you want to take a look that would be ok
    i can PM you the login on your own
   forum
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: PostRatings] RSS wont sort most rated](https://wordpress.org/support/topic/plugin-postratings-rss-wont-sort-most-rated/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-postratings-rss-wont-sort-most-rated/#post-977121)
 * hehe, off course i appreciate all your help GamerZ
    but i really need to get 
   it to work so i figured i could at least try 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Archive page](https://wordpress.org/support/topic/archive-page-2/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/archive-page-2/#post-497878)
 * I still need help, please if someone knows.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Archive page](https://wordpress.org/support/topic/archive-page-2/)
 *  Thread Starter [lsshock](https://wordpress.org/support/users/lsshock/)
 * (@lsshock)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/archive-page-2/#post-497497)
 * i did find that one but im not sure what will happen to the system that is now
   used (the default in wordpress) and the example only shows the years and then
   when you would click a year WP would just filter all the post and still show 
   them all fully instead of titles. (if im not mistaken)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/lsshock/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/lsshock/replies/page/2/?output_format=md)