Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • PHP
Wordpress: Latest comments for each post
PHP
0
0
1663
Wordpress: Display post divider
PHP
0
1
1443
Wordpress: Dinamic title tag
PHP
0
0
1341
Wordpress: Embed a page inside a page
PHP
0
3
1538
Wordpress: find ID of most parent page
PHP
0
0
1353
Wordpress: Include any file form your theme
PHP
0
1
1476
Wordpress: Run a loop outside Wordpress
PHP
1
7
2147
Wordpress: Template tags
PHP
0
1
1465
Wordpress: Local path to plugins folder
PHP
0
0
1462
Array Conversion Helper
PHP
1
1
1917
PHP - If iPad or iPhone
PHP
0
5
3031
Example of OOP :: Currency Converter
PHP
0
0
4087
Multiple Wordpress Loop
PHP
0
4
1550
Download a file from an HTTP location to the local server
PHP
0
2
2245
Find and Remove MongoDB/PHP
PHP
0
0
1648
MySQL Connection, Query & Fetch Array
PHP
0
2
1620
WordPress test page
PHP
0
1
1623
Check for valid email address function
PHP
0
4
1889
Maintenance-free copyright year
PHP
0
4
1468
Splitting an array into multiple arrays according to a value
PHP
1
0
1715