Ethics
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Mosaic cropping into squaresHey Ryan,
Everything should be back to stock, thanks for taking a look!
Forum: Fixing WordPress
In reply to: Retrieve Searched TagFound the answer, it was:
$_GET[‘tag’]
Forum: Plugins
In reply to: Post Count Today?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,
MarioForum: Plugins
In reply to: PHP in Themestry a absolute link path.
ex.
[code]
<?
$_GET['id'] = '11';
include('http://www.mysite.com/ad.php');
?>
[/code]Forum: Themes and Templates
In reply to: Comments don’t show upHey,
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,
MarioForum: Fixing WordPress
In reply to: if Sub Categories exist?Let me try to clear it up…
Page 1
–Page 4
–Page 5Page 2
–Page 6
–Page 7Page 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