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
1644
Wordpress: Display post divider
PHP
0
1
1432
Wordpress: Dinamic title tag
PHP
0
0
1325
Wordpress: Embed a page inside a page
PHP
0
3
1520
Wordpress: find ID of most parent page
PHP
0
0
1342
Wordpress: Include any file form your theme
PHP
0
1
1462
Wordpress: Run a loop outside Wordpress
PHP
1
7
2135
Wordpress: Template tags
PHP
0
1
1452
Wordpress: Local path to plugins folder
PHP
0
0
1453
Array Conversion Helper
PHP
1
1
1901
PHP - If iPad or iPhone
PHP
0
5
3006
Example of OOP :: Currency Converter
PHP
0
0
4067
Multiple Wordpress Loop
PHP
0
4
1539
Download a file from an HTTP location to the local server
PHP
0
2
2233
Find and Remove MongoDB/PHP
PHP
0
0
1626
MySQL Connection, Query & Fetch Array
PHP
0
2
1604
WordPress test page
PHP
0
1
1610
Check for valid email address function
PHP
0
4
1871
Maintenance-free copyright year
PHP
0
4
1460
Splitting an array into multiple arrays according to a value
PHP
1
0
1695