I am posting the simple hack I made with using dynamic images to replace the date entries of my blog. Just follow the short tutorial here to implement the same with your WordPress blog:
You will need to break that into 3 parts like this:
Now we edit them so the code echos the image equivalent:
I hope that was fairly simple to understand. :D I’m not sure if this hack can be made into a plugin though.
YugaTech.com is the largest and longest-running technology site in the Philippines. Originally established in October 2002, the site was transformed into a full-fledged technology platform in 2005.
How to transfer, withdraw money from PayPal to GCash
Prices of Starlink satellite in the Philippines
Install Google GBox to Huawei smartphones
Pag-IBIG MP2 online application
How to check PhilHealth contributions online
How to find your SIM card serial number
Globe, PLDT, Converge, Sky: Unli fiber internet plans compared
10 biggest games in the Google Play Store
LTO periodic medical exam for 10-year licenses
Netflix codes to unlock hidden TV shows, movies
Apple, Asus, Cherry Mobile, Huawei, LG, Nokia, Oppo, Samsung, Sony, Vivo, Xiaomi, Lenovo, Infinix Mobile, Pocophone, Honor, iPhone, OnePlus, Tecno, Realme, HTC, Gionee, Kata, IQ00, Redmi, Razer, CloudFone, Motorola, Panasonic, TCL, Wiko
Best Android smartphones between PHP 20,000 - 25,000
Smartphones under PHP 10,000 in the Philippines
Smartphones under PHP 12K Philippines
Best smartphones for kids under PHP 7,000
Smartphones under PHP 15,000 in the Philippines
Best Android smartphones between PHP 15,000 - 20,000
Smartphones under PHP 20,000 in the Philippines
Most affordable 5G phones in the Philippines under PHP 20K
5G smartphones in the Philippines under PHP 16K
Smartphone pricelist Philippines 2024
Smartphone pricelist Philippines 2023
Smartphone pricelist Philippines 2022
Smartphone pricelist Philippines 2021
Smartphone pricelist Philippines 2020
Big Willy says:
Finally found some good infomation on the subject.
Abe Olandres says:
Hi John,
Did you try and just break the date function ito 3 parts, without the image substitution first? That way, we can see if the function really works just fine with your template.
If you can leave a link to your blog as well too.
John says:
Hi,
Its a great hack you have made. I have spent more than half a day with it and for some reason I can only make the current date display.
Im using WP 1.51.2 and on the template is uses:
‘,”); ?>
the date from this is correct.
‘; ?>
‘; ?>
‘; ?>
‘; ?>
‘; ?>
‘; ?>
Do you have any idea what i need to change to make the post date show and not the current date.
Many Thanks
Tomjack says:
hello, nice blog
Abe Olandres says:
Hi Sarah!
Sorry di ko mashado ma remember eh. bago na rin site mo kaya di ko ma familiarize. Good thing ako hindi mo nakalimutan! ;)
Glad to be able to help you as well. :)
sarah says:
hey yuga naalala mo pa kaya ako.. dati pa ako nakapunta dito kaso strawberryshake.net yung domain ko that time.. ayhoo.. ikaw lang pala makakasagot sa hinahanap kong image date hack hahah!! wala naman kasi sa support ng WP.. buti nalang ginoogle kita! hahahah!!! heheheh!!!!
Abe Olandres says:
@ Jose
Welcome! And nice implementation fo the hack on your blog!
@ markku
The copycat claimed he got it from File Me Away, but he failed to notice Josh’s hack was for MT. I actually posted a comment on Josh’s blog about our hacks similarities.
@ mr. nice ash
Yes, as I posted in my entry, Josh of File Me Away made the same tute for MovableType almost the same day I did mine. Though due to time zone differences, he actually did his a day later.
mr nice ash says:
master, i found a site wherein same hack is posted the same date that you posted this one. June 28, Tuesday. But i think the other one was a moveable type. Yeah.
markku says:
Yuga, just a clarification. Similar hacks like this was used before in greymatter, that was years ago. I think Derek Powazek even used it in Fray, if my memory is not failing me. ;)
But for WP, I think you’re the first who shared something about this. To hell with those who take and claim it as their own. ;)
I suggest you stick a CC or any specific license for anything you share, so they think twice about stealing. ;)
Jose says:
YAY!!!!! Thnks you SO MUCH!!!!
Abe Olandres says:
@ Paul
Hi! As fleeb mentioned, that used to be the case here, text over image bg. I got a little bored and wanted to customize the theme a bit different so I made the hack.
@ Jose
Please check on the codes. The one I posted above has lots of spaces in between tags esp. between the “
Jose says:
I need a little bit of help!!! I was looking for a hack like this so long and I finally founded. I try to use it but seems it’s not even been read. What can be wrong???? I use a different date format but I have checked the strings and they are all right. Please Help me. This hack is awesome!!
Fleeb says:
@Paul
Well maybe…
For one, he may be using a font he really like to use but many don’t have (although this can be compensated with the use of the GD image library, and well, by the use of font-family). Another is the anti-aliased text making it look smoother. And finally, before switching to the use of this images, the “text over background image” was employed before (as it is by default).
Paul Armstrong says:
Why don’t you just output the text in different spans over a single background image? It really isn’t *standard* anymore to use images for anything that could be displayed with text (like the “Too Cool for IE” badge)
mr nice ash says:
and the wordpress hacks… sikat na talaga master ko.
Abe Olandres says:
Kates, taga diin ka? Ilongga ka man?
Thanks markku, darksparrow… will look into it. ;)
darksparrow says:
i agree with markku
Kates says:
Damo gali sagad sa guam bah. Labay lang ko ah.
markku says:
Yuga, you can actually do it without hacking the date functions. You just make do with:
.gif’ >
and the others in similar ways. That way, upgrading WP won’t kill your nice hack. :)
Abe Olandres says:
@mr. nice ash
tehehe… madali lang yan actually. Konting kalikot lang. ;)
@AnP
Thanks! Hindi po, late na ako dun tsaka di ko ata kaya yun!
@Fleeb
Will look into it, but this one is pretty simple. Yung magiging problem mo dito cguro yung management ng Options as WP-Admin.
Fleeb says:
Yup it can be made into a plug-in, I think that add_action function in WP…
AnP says:
cool plug-in!!! did you join Alex King’s contest? :)
Will install it this week! Great one, Yuga!!! You really deserve all the accolades you have been getting.
mr nice ash says:
wow. just as i thought. yeah. im a newbie but i almost exactly figured out what you have done to came up with your wp-image-date Plugins. You really are a PHP guru. Why not submit your plugin?? and share your package to others… ;)
master i know how to make some tweaks on wordpress but i dont know php itself. :(