183 reputation
111
bio website xaliber.net
location
age 22
visits member for 2 years, 2 months
seen Nov 5 '13 at 18:42

Regular user.


Oct
16
comment Why is the `if else` not working?
@Otto: Oh I see, so that's where the difference! Thanks a lot! :)
Oct
16
accepted Why is the `if else` not working?
Oct
16
comment Why is the `if else` not working?
I feel so incredibly stupid as to WHY DIDN'T I use your function instead of persisting on mine. Once I change my is_category_or_sub to the one you've wrote, it works magically! Really wonderful. I still don't understand though, why is your code working and mine does not? Mostly because of my lack of programming expertise, but if an explanation is allowed I'd really be thankful.
Oct
16
comment Why is the `if else` not working?
@MridulAggarwal Ok, I put it before the first if... it results in a horde of lines. But I manage to understand that the posts being displayed are indeed posts that belong under the hobbynews (or its child) category. So what does this mean?
Oct
16
comment Why is the `if else` not working?
@MridulAggarwal Erm, sorry... I'm not quite a programmer, so I'm not sure what do you mean by that... In which I'm supposed to write it?
Oct
16
comment Why is the `if else` not working?
@MridulAggarwal when I switch the place, what happens is the same like when I do what kovshenin told me to do. The second one's content shows up on both categories, while the first one's content does not show up.
Oct
16
comment Why is the `if else` not working?
I have edited my question to include my is_category_or_sub, please check it out :)
Oct
16
comment Why is the `if else` not working?
It is edited now
Oct
16
revised Why is the `if else` not working?
added 345 characters in body
Oct
16
comment Why is the `if else` not working?
When I replace it with elseif (false), it reaches the second one. Both the gamenews and hobbynews now display content meant for hobbynews. Ok, I'll edit the question.
Oct
16
comment Why is the `if else` not working?
Yes, I indeed base my code on Valendesign's, however I modified it so it could read the slug. The first elseif (gamenews) works perfectly fine. The only problem lies on the second elseif (hobbynews).
Oct
16
asked Why is the `if else` not working?
Oct
16
comment How to delete post revisions?
You're right, this is much efficient too... posted my answer in hurry and didn't notice the WP MU part too. +1.
Oct
16
answered How to delete post revisions?
Oct
16
comment Setting different width and height for gravatar
That's too bad. Thanks for the answer. Managed to get a work-around but not sure if it's the best.
Oct
16
answered Setting different width and height for gravatar
Oct
15
comment Setting different width and height for gravatar
Hmm, you're right, it's possible to do it with CSS too... but I would also like to know if it is possible to do this by modifying the gravatar output. Can't think a good example right now, but perhaps in case of displaying certain size for author's bio?
Oct
15
comment Setting different width and height for gravatar
*Correction: "With preg_replace, wouldn't the gravatar only be resized without getting cropped, thus made it looks weird?" For example it would look like this: i.imgur.com/B5eKh.jpg Meanwhile I'm trying to make it look like this: i.stack.imgur.com/UlhBW.jpg Sorry for my bad grammar..
Oct
15
revised Setting different width and height for gravatar
added 299 characters in body
Oct
15
comment Setting different width and height for gravatar
I'm sorry, I forget to mention that I'm trying to make the image cropped (the reason why I tried with TimThumb). With preg_replace, wouldn't the gravatar be resized and looked weird?