Forum Replies Created
-
Force of habit using (), removed it though, no changes
Did a var dump before and after, before lists the description content for the latest one ([0]) and after returns NULL
Basically, the issue is getting the [0] in $activityDescription = activityDescription[0]; to be the first 20 posts [0,1,2,3 etc..] so it knows to do taht for all of them..i tried makign an array but got errors..i might of been doing ti wrong..but if you can focus on that part..
If you need any more info, or would like to view the site yourself let me know
I just tried that, no luck
I should also add that the avatar and header that get rendered out are unique to the post, just the description is the same for each post…
Sorry, by ‘way’ and ‘other way’ i mean the order of which it renders out the activity post..if the post has an image, it renders the image first, then avatar, then header, then description. If it doesnt have a picture, it renders the description, then avatar then header…
Sorry I’ll elaborate more, fellow shane
I need to display the most recent 20 posts. If you notice in the code I have it set to display if it has an image a certain way, and if it doesnt, another way (check the echo statements at the bottom)
If I specifiy the post in $activityDescription = (activityDescription[0]); replacing 0 with 1,2,3 etc, it dispalys that post, regardless of if it has a picture or not..the code doesn’t only display ones with pictures, it just explodes them a certain way if it has one or not…
So in a nutshell, I need it the code to do what it is doing now, but instead of just with the 1 post, I need it to work for the last 20….