Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 49 50 51 52 53 ... 147
Make sure your URL $_GET variables don't get repeated / duplicated when you are creating links / URLs dynamically.
0 2117 posted 14 years ago by prwhitehead
If your page has already sent headers to the browser you cant redirect with headers('Location:' . $url); But you can use the following:
0 1075 posted 14 years ago by prwhitehead
Add a login form to your wordpress themes frontend.
0 1605 posted 14 years ago by prwhitehead
This goes in your template.php file
1 2387 posted 14 years ago by focal55
Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
0 1163 posted 14 years ago by prwhitehead
Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
0 1685 posted 14 years ago by prwhitehead
Remove menu items from the wordpress admin
0 1314 posted 14 years ago by prwhitehead
To remove some of the lesser used edit post / page meta boxes:
0 1374 posted 14 years ago by prwhitehead
Create a sitemap in wordpress, including posts, categories and pages just use the [sitemap] shortcode within the post content and wordpress / the function does the rest.
0 1439 posted 14 years ago by prwhitehead
Based upon http://csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/
0 1451 posted 14 years ago by withinmedianl
Create excerpts from text block from your wordpress content and add links page / post from the guid.
0 1473 posted 14 years ago by prwhitehead
In the User settings, there is a web form called Contact Info. It has input fields for the user’s AIM account, Yahoo IM account, and so on. But how about Twitter? What about Facebook? Out of the box, the Contact Info panel doesn’t have these i...
0 1485 posted 14 years ago by blueocto
This is a great place to add your own custom Help text for a client. You can even customize it for different Admin panels. For example, you can add a different Help text for the Add New Post panel and another one for the Comments panel. Here’s h...
0 1345 posted 14 years ago by blueocto
It’s possible to disable it conditionally for each WordPress user by going to Users > Your Profile. However, if you want to remove it completely, you can add the following filter:
0 1316 posted 14 years ago by blueocto
The special characters in the file name caused problem when the exported to iphone application.
0 1392 posted 14 years ago by punuhan
I pinched the get_avatar() function from the wp/wp-includes/pluggable.php file and commented out the setting of the avatar as an <img> tag and returned the actual image url instead.
0 1227 posted 14 years ago by camdagr8
simple pass the file name and that file will be available for download
0 2321 posted 14 years ago by kumar_sekhar
Simply define your POSTURL and POSTVARS in name = value string format. It will post the form.
0 1639 posted 14 years ago by kumar_sekhar
0 1157 posted 14 years ago by dsoms
3rd argument of 'add_action' function is priority, by default set to 10. This is a much simpler way of reorder posts exactly as you want them to appear.
1 1058 posted 14 years ago by mrgurner
1 1219 posted 14 years ago by fatihturan
0 1045 posted 14 years ago by linkmoises
This will build over time, and first be finish when I have all ressources and are satisfied with our corporate rss feed.
0 1258 posted 14 years ago by kfiil
How to set a block into region with code
0 1341 posted 14 years ago by kfiil
1 ... 49 50 51 52 53 ... 147