Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Función php para mostrar el número total de entradas o post de una determinada categorÃa en WordPress
0
712
posted 12 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
907
posted 12 years ago by jhkoning
Takes a # of seconds and converts it to human readable format.
If happened within seconds-years.
0
993
posted 12 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
828
posted 12 years ago by SmashArtist
This will show you what template you are currently viewing (index.php, page.php)
0
884
posted 12 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0
1021
posted 12 years ago by bitsculptor
Función php para reemplazar palabras dentro de los post de WordPress.
0
778
posted 12 years ago by maiden
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
1025
posted 12 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
2254
posted 12 years ago by kosinix
This SSH API is used to execute remote commands, send and receive files.
0
804
posted 12 years ago by ryantxr
This script downloads the latest version of WordPress to your site rather than having to use FTP.
1
512
posted 12 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
1364
posted 12 years ago by ginoplusio
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
1073
posted 12 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
789
posted 12 years ago by ecksteing
Snippet to show a simple use of the transient API when querying posts.
0
865
posted 12 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
1155
posted 12 years ago by Some0ne
Use: echo format_size(filesize("fichier"));
Example result: 13,37 Ko
0
893
posted 12 years ago by zhyar
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
0
1028
posted 12 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
990
posted 12 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
666
posted 12 years ago by shin