Title: dimigra's Replies | WordPress.org

---

# dimigra

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display related posts by timestamp and category](https://wordpress.org/support/topic/how-to-display-related-posts-by-timestamp-and-category/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-display-related-posts-by-timestamp-and-category/#post-846937)
 * too much complicated i suppose …
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Can the default calendar be set to display posts from only one category?](https://wordpress.org/support/topic/can-the-default-calendar-be-set-to-display-posts-from-only-one-category/)
 *  [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/can-the-default-calendar-be-set-to-display-posts-from-only-one-category/#post-692833)
 * Hi,
 * I’d like to add a line where I select the categories of posts I want to diplay
   on calendar:
 * this is my code:
 *     ```
       FROM $wpdb->posts WHERE MONTH(post_date) = $thismonth
         		AND YEAR(post_date) = $thisyear
         		AND post_status = 'publish' AND post_type='post'
       		AND post_date <> '" . current_time('mysql') . '\'', ARRAY_N);
       ```
   
 * Thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [35 second to load my home page](https://wordpress.org/support/topic/35-second-to-load-my-home-page/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/35-second-to-load-my-home-page/#post-717493)
 * Hi everyboy!!
 * thank for your precious support, I can tell you that after a series of tests 
   I see that the problem is in the loops,
 * I use a specific code to query my DB in order to show specific post in the future:
 * the following is the first one:
 *     ```
       <?php query_posts('showposts=-1&order=ASC&cat=-14,-10'); ?>
       <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
       <?php static $ctr = 0;
       if ($ctr == "3") { break; }
       else { ?>
   
       <?php  $mylimit=60*60*24*7; //secondi * minuti * ore [* giorni]
        if ((get_the_time('U') <  (current_time(timestamp) - (get_settings('gmt_offset') * 3600) + $mylimit)) && (get_the_time('U') > current_time(timestamp)) ) {?>
       ```
   
 * the following is the second:
 *     ```
       <?php query_posts('showposts=-1&offset=2&order=ASC&limit=5&cat=-14,-10') ; ?>
       <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
   
       <?php static $ctr = 0;
       if ($ctr == "7") { break; }
       else { ?>
   
       <?php  $mylimit=60*60*24*7; //secondi * minuti * ore [* giorni]
        if ((get_the_time('U') <  (current_time(timestamp) - (get_settings('gmt_offset') * 3600) + $mylimit)) && (get_the_time('U') > current_time(timestamp)+48*3600 ) ) {?>
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Current date posts](https://wordpress.org/support/topic/current-date-posts/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/current-date-posts/#post-664775)
 * I don’t know what you’re using to display future posts (and what it may react
   to)
 * I’m using “the future is now” plug-in to show future post.
 * I’ll try your suggestion.
 * Thanks
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Current date posts](https://wordpress.org/support/topic/current-date-posts/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/current-date-posts/#post-664770)
 * At the moment I’m using this solution:
 * <?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
 * <?php $mylimit=60*60*24; //secondi * minuti * ore [* giorni]
    if ((get_the_time(‘
   U’) < (current_time(timestamp) – (get_settings(‘gmt_offset’) * 3600) + $mylimit))&&(
   get_the_time(‘U’) > current_time(timestamp)) ) {?>
 * Now I don’t know how to place a second loop that show “next 7 days events” ( 
   posts )
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Current date posts](https://wordpress.org/support/topic/current-date-posts/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/current-date-posts/#post-664769)
 * Thank you for you kind support, i’ll try to be more clear.
 * – First Loop = show the next 24 hours events (posts)
 * If there are no events go to next 24 hours and so on…
 * – Second Loop = show next 7 days events (posts)
 * Thank you again for the attention.
 * Ciao!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Current date posts](https://wordpress.org/support/topic/current-date-posts/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/current-date-posts/#post-664753)
 * I can even pay for a professional support.
 * Thanks
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Current date posts](https://wordpress.org/support/topic/current-date-posts/)
 *  Thread Starter [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/current-date-posts/#post-664709)
 * I forgot to say tha I’m using a 2.3 version of WP and I’veinstalled a plug-in
   to show future date posts.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugin Update: WP campaign monitor](https://wordpress.org/support/topic/plugin-update-wp-campaign-monitor/)
 *  [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/plugin-update-wp-campaign-monitor/#post-585651)
 * Hi !
 * I have installed your last release of campaign monitor everything seems to work
   but the “Send Email” section, infact when i try to access the page i find an 
   empty section. I use 2.1 wp version.
 * Thanks in advance for your help.
 * Ciao !
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Page not found when I set static page as home page](https://wordpress.org/support/topic/page-not-found-when-i-set-static-page-as-home-page/)
 *  [dimigra](https://wordpress.org/support/users/dimigra/)
 * (@dimigra)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/page-not-found-when-i-set-static-page-as-home-page/#post-584170)
 * Could you please hod did you figure out, cause I had the same problem..
 * Thanks

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