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
PHP snippets by Mahender Singh
Add a Custom Sidebar in Wordpress
PHP
0
1
3106
get the post in wordpress
PHP
0
1
3146
Compaire an Array in php
PHP
2
1
3217
get the ip address and print in php
PHP
0
1
3215
get the current page url in php
PHP
0
2
3033
Display path to current directory
PHP
2
1
2915
Get the size of a file
PHP
0
0
2978
create any extension type file(html, php, xml, etc...)
PHP
0
2
2957
Delete any extension type file(html, php, jpg, gif, flv, swf, etc...)
PHP
0
1
2935
Next and Previous functionality with thumbnail image in single post wordpress
PHP
0
3
5296