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
24
snippets by
Erik Schultz
PHP get file size
PHP
0
2
1566
WP Custom Pagination
PHP
0
1
1213
WP Add Search Icon to end navigation
PHP
0
2
1640
PHP Simple Even or Odd classes in loop
PHP
0
2
1191
PHP Back Button with search results intact
PHP
0
4
1579
PHP Include template in the middle of query
PHP
0
0
1459
PHP Tab-Cordions (Vertical or Horizontal)
PHP
0
1
1655
Woocommerce Product Ratings
PHP
0
1
1971
Dump with <pre> shortcut
PHP
0
2
1871
Convert Full State to Abbreviation
PHP
0
1
3446
WP Get get_query_var(paged) To work on Single Post Templates
PHP
0
0
1131
csvReader.php
PHP
0
5
1506
PHP How to get the first word of a string
PHP
1
10
10715
Magento 2 phtml include
PHP
0
0
1160
Magento 2 Call Block
PHP
0
0
1104
Magento 1.9 get layout handles
PHP
0
9
1311
PHP Column Classes in Switch Case
PHP
0
8
1264
Get IP Address
PHP
2
12
1887
WP Pull correct Post ID for Archive / Categories
PHP
0
1
1095
Magento 2 embed Webforms in phtml
PHP
0
0
1448
Magento finset()
PHP
0
0
1894
Magento Get Product Quantity
PHP
0
0
1358
Magento 1 Set Order Status
PHP
0
0
1361
Magento 1 Customer Data
PHP
0
0
1011