Title: Ethics's Replies | WordPress.org

---

# Ethics

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Mosaic cropping into squares](https://wordpress.org/support/topic/mosaic-cropping-into-squares/)
 *  Thread Starter [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mosaic-cropping-into-squares/#post-7339267)
 * Hey Ryan,
 * Everything should be back to stock, thanks for taking a look!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Retrieve Searched Tag](https://wordpress.org/support/topic/retrieve-searched-tag/)
 *  Thread Starter [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/retrieve-searched-tag/#post-5386348)
 * Found the answer, it was:
 * $_GET[‘tag’]
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Post Count Today?](https://wordpress.org/support/topic/post-count-today/)
 *  Thread Starter [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/post-count-today/#post-1053894)
 * Hey,
 * Thank you for the quick reply.
 * Unfortunately it seems that the code provides a count for the number of posts
   in the last 24 hours. This causes posts to be shown from the previous day until
   they have been around for 24 hours.
 * I’m trying to wrap my head around the formula and how we can make it only count
   the current days posts.
 * Here is the code if anybody wants a look at it…
 * [code]
    $today = date("Y-m-d H:i:s"); //Today's date $daysago = date("Y-m-d H:
   i:s",strtotime(date('Y-m-j H:i:s')) - (1 * 24 * 60 * 60)); //Today - 1 day
 * $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status
   = 'publish' AND post_date BETWEEN '$daysago' AND '$today'");
 * if ($numposts >0) {
    echo $numposts.' Wallpapers Added'; } else { echo "0 Wallpapers
   Added"; } [/code]
 * You have a beautiful website btw.
 * Oh and if you can update the code on the website to have a closing curly brace
   at the end that would save alot of headaches 🙂
 * Thanks,
    Mario
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [PHP in Themes](https://wordpress.org/support/topic/php-in-themes/)
 *  [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/php-in-themes/#post-942264)
 * try a absolute link path.
 * ex.
 * [code]
    <? $_GET['id'] = '11'; include('http://www.mysite.com/ad.php'); ?> [/
   code]
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Comments don’t show up](https://wordpress.org/support/topic/comments-dont-show-up-1/)
 *  Thread Starter [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-dont-show-up-1/#post-670765)
 * Hey,
 * Thanks for the reply.
 * Yes they do show up when I switch to the classic theme. I kind of figured it 
   might be a problem with the theme im using.
 * Does anybody know what files I might need to look into to figure out why they
   aren’t showing up?
 * I tried restoring the comments.php and index.php but the comments still didn’t
   show up. Is there a certain file that controls the comments page?
 * Thanks,
    Mario
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [if Sub Categories exist?](https://wordpress.org/support/topic/if-sub-categories-exist/)
 *  Thread Starter [Ethics](https://wordpress.org/support/users/ethics/)
 * (@ethics)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/if-sub-categories-exist/#post-655308)
 * Let me try to clear it up…
 * Page 1
    –Page 4 –Page 5
 * Page 2
    –Page 6 –Page 7
 * Page 3
 * I have it setup so that the sub sections only show up in the sidebar when you
   are on Page 1 or 2. If you are on Page 3 you don’t get a sub menu option.
 * Now. The problem is when I click on Page 4-7. Since they don’t have sub sections,
   I get nothing in the sidebar.
 * What I want it to do is show the page 1 sub sections when you click on page 4
   or 5, so they don’t dissappear.
 * Hopefully thats a little easier to understand, sorry about the confusion.
 * Thanks,
    Mario

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