Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Plugin gets child pages of parent in Wordpress. You'll need to pass the parent ID but this isn't difficult to figure out programmatically if needed, either.
0
805
posted 13 years ago by ashworthconsulting
Check if a string it's json encoded using regular expressions
Thanks to Jens Anders Bakke for his mootools code published in webfreak.no
http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0
864
posted 13 years ago by jatubio
This code goes directly into your template.php file after you remove the open and close PHP tags at the beginning and end.
Then place the call below in your block.tpl.php. Don't forget to flush cache.
0
749
posted 13 years ago by Onfire60
Copy the first code snippet to your theme's template.php.
Then call the following section in you block template file.
0
633
posted 13 years ago by Onfire60
my wordpress loop with paging support and category,tag filteration
3
537
posted 13 years ago by root_hacker
And a now, word on the log.php maintenance script that comes with Magento 1.4 which has one major shortcoming.
It doesn’t maintain your dataflow_batch_* tables, said tables have been seen hiding in the wild at over a Gigabyte in size.
php -f...
0
570
posted 13 years ago by TheJasonParker
This fixes the way Magento imports data as it just keeps adding ‘straight join’ to the array which uses a lot of memory if your importing a lot of products and will kill the import.
Replace this function in /lib/Varien/Db/Select.php
This h...
0
517
posted 13 years ago by TheJasonParker
WP Functions
Step 1: Upload the logo you want into the theme images folder
Step 2: Add the following code to your theme functions.php file
3
677
posted 13 years ago by silentpro
Uploading multiple files at once used to be strictly in the realm of flash or required javascript to crate multiple upload forms as needed. The first method has the problems with the general incompatibility of flash. The second, well, it's a very low...
0
900
posted 13 years ago by FatFolderDesigner