70 reputation
8
bio website
location
age
visits member for 2 years, 2 months
seen Jan 24 at 15:38

Nov
13
comment Display Random Thumbnail from Category
upon further research, you're absolutely right, I needed to do a query based off the category returned in the foreach loop. Thanks for prodding me in the right direction!
Nov
13
answered Display Random Thumbnail from Category
Nov
13
comment Display Random Thumbnail from Category
Thanks for the follow up, but that doesn't do what I need it to do. I need it to return all of my categories but pull one random thumbnail from each category. This code you linked to seems to randomize all posts, not pull one image from each category.
Nov
12
revised Display Random Thumbnail from Category
added 4 characters in body
Nov
12
comment Display Random Thumbnail from Category
Upon further inspection it looks like the code concerning the thumbnail was the same code that I provided which was not working properly. The part concerning the list of categories was fine and working as I needed. It was only the thumbnail part that is not working. Thanks for your help anyway though, I appreciate it.
Nov
12
comment Display Random Thumbnail from Category
I managed to get rid of the error by changing the first two lines in your code to: $taxonomyName = "category"; $terms = get_terms($taxonomyName,array('parent' => 79));, unfortunately the thumbnails it is returning are doing the same as in my code. It also seems to be returning only one category, not all 6 that are there. It doesn't seem to work.
Nov
12
comment Display Random Thumbnail from Category
Thanks for the quick reply. Unfortunately, I'm getting an error: Catchable fatal error: "Object of class WP_Error could not be converted to string" - Any ideas?
Nov
12
revised Display Random Thumbnail from Category
added 558 characters in body
Nov
12
revised Display Random Thumbnail from Category
added 558 characters in body
Nov
12
asked Display Random Thumbnail from Category
Oct
3
awarded  Teacher
Oct
1
accepted is_home() not working in functions.php file
Oct
1
answered is_home() not working in functions.php file
Oct
1
awarded  Promoter
Oct
1
comment is_home() not working in functions.php file
@BandonRandon I've modified this to use get_template_part(), but it doesn't seem to be working still.
Oct
1
comment is_home() not working in functions.php file
@MayeenulIslam, debug is on, but it's only giving me one error that has to do with something unrelated (at least I think). Also, there is only a few closing divs on that page. No PHP or any other code that would cause the page to not load.
Oct
1
revised is_home() not working in functions.php file
added 1586 characters in body
Sep
27
comment is_home() not working in functions.php file
I thought about the priority conflict too. I had one set as 16, but that didn't do anything.
Sep
27
comment is_home() not working in functions.php file
Good ideas, guys. I'll try those out. Thanks.
Sep
27
asked is_home() not working in functions.php file