Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 15 16 17 18 19 ... 147
Highlight Search Terms in Text
0 745 posted 11 years ago by pruntrut
Función php para mostrar el número total de entradas o post de una determinada categoría en WordPress
0 561 posted 11 years ago by maiden
All you need to do is create a child theme, and create a new comments.php file inside that child theme. Then insert this code into the comments.php file you just created;
2 693 posted 11 years ago by jhkoning
A simple class to cache files (or other results) with PHP.
1 866 posted 11 years ago by peckham
Takes a # of seconds and converts it to human readable format. If happened within seconds-years.
0 789 posted 11 years ago by mburica
This creates a custom page template designed to run a Facebook photo contest utilizing the Facebook like button and uses Wordpress featured images for each post in a grid. This setup requires the following: - iLoveIt Wordpress Theme - Creat...
0 669 posted 11 years ago by SmashArtist
This will show you what template you are currently viewing (index.php, page.php)
0 690 posted 11 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0 814 posted 11 years ago by bitsculptor
Función php para reemplazar palabras dentro de los post de WordPress.
0 623 posted 11 years ago by maiden
Simple logger function
1 747 posted 11 years ago by MikeDevDes
It is a bit simpler reversing of multibyte strings.
0 824 posted 11 years ago by iTony
PDO-format insert array function
0 944 posted 11 years ago by rickygri
I will show you how to crate an app for facebook to handle the facebook connect process on your web site. Then I will show you the php code to perform the login on facebook and retrieve the informations you need for your site. The last suggestion w...
0 879 posted 11 years ago by ginoplusio
Function to convert a one dimensional array to two dimensional with option to specify how many columns. Returns two dimensional array on success or false on fail.
0 1836 posted 11 years ago by kosinix
This SSH API is used to execute remote commands, send and receive files.
0 612 posted 11 years ago by ryantxr
This script downloads the latest version of WordPress to your site rather than having to use FTP.
1 411 posted 11 years ago by nathan_roberts
When you add facebook like button to your site, probably, you also want to save the number of likes of your pages to your database.These data are very useful and very important because they tell you which of your articles are better than others. More...
0 1118 posted 11 years ago by ginoplusio
for true plain text output of a field in drupal 7
0 558 posted 11 years ago by mktimes5
Add HTTP Header to Wordpress (ex: Vary: User-Agent)
0 879 posted 11 years ago by dataworx
Suppose you wanted to check if a user was viewing a singular post with the post type of testimonial. You can use the next code sample to perform this check.
0 868 posted 11 years ago by i-am-andy
This PHP adds the style.css of the active Theme to the WordPress TinyMCE Post and Page editor.
0 650 posted 11 years ago by ecksteing
Wordpress Custom Post Type, custom taxonomy and queries
0 684 posted 11 years ago by SidFerreiraZ
Snippet to show a simple use of the transient API when querying posts.
0 654 posted 11 years ago by Mat_
Just a rework of http://snipplr.com/view/7523/ with an added switch to change type number to extention name.
0 964 posted 11 years ago by Some0ne
Use: echo format_size(filesize("fichier")); Example result: 13,37 Ko
0 694 posted 11 years ago by zhyar
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
0 855 posted 11 years ago by shin
Displaying your latest tweets is a good way to encourage people to follow you on Twitter. The most common place to display tweets is in the sidebar, although you can add them to any area of the website.
0 801 posted 11 years ago by i-am-andy
second level of categories (when offset=-1 doesn't work, like for "get_category_link()"), pictures must be called exactly like category slug and placed to "catimg" folder. also i used "substr" for cut decription (314 symbols but you can change it). U...
0 527 posted 11 years ago by shin
1 ... 15 16 17 18 19 ... 147