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 Erik Schultz
WordPress Custom Excerpt
PHP
1
0
2073
WordPress Custom Search Form
PHP
0
0
1634
WordPress: Gravity Forms replace Submit Input
PHP
0
2
1311
PHP get file size
PHP
0
2
1524
WP Custom Pagination
PHP
0
1
1180
WP Add Search Icon to end navigation
PHP
0
2
1588
PHP Simple Even or Odd classes in loop
PHP
0
2
1155
PHP Back Button with search results intact
PHP
0
4
1525
PHP Include template in the middle of query
PHP
0
0
1312
PHP Tab-Cordions (Vertical or Horizontal)
PHP
0
1
1616
Woocommerce Product Ratings
PHP
0
1
1913
WP ACF State & Province Select choices
PHP
0
0
1725
Convert Full State to Abbreviation
PHP
0
1
3396
WP Get get_query_var(paged) To work on Single Post Templates
PHP
0
0
1092
Woocommerce with Dynamic Pricing get all dynamic prices
PHP
0
2
2444
WP GET THE EXCERPT BY ID
PHP
0
2
1332
Multi Sort and Filter WP Query
PHP
0
12
1330
PHP How to get the first word of a string
PHP
1
10
10661
Magento 2 phtml include
PHP
0
0
1127
Magento 2 Call Block
PHP
0
0
1080