Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Hello,
Here is snippet to show wordpress posted date using html5 time tag.
0
690
posted 13 years ago by idragons
This will extract page handle between last slash and .html
0
729
posted 13 years ago by anagaiyahoocom
CSS
Add Squeeze Page to Thesis Theme for WordPress With Custom Filter for Thesis 1.8 With Different Sidebars
The following code for a landing page — without header, original sidebars and footer and with new sidebars added — goes in custom_functions.php. This code does the following to pages with a custom field named “landing-pageâ€.
adds a body cl...
0
1151
posted 13 years ago by zachbrowne
To get the simplest squeeze page possible: no header, sidebars or footer. Paste the following PHP in custom_functions.php. The first function is the filter that returns “false†instead of returning the content that would normal be there (in the h...
0
1075
posted 13 years ago by zachbrowne
To get the simplest squeeze page possible: no header, sidebars or footer. Paste the following PHP in custom_functions.php. The first function is the filter that returns “false†instead of returning the content that would normal be there (in the h...
0
917
posted 13 years ago by zachbrowne
To get the simplest squeeze page possible: no header, sidebars or footer. Paste the following PHP in custom_functions.php. The first function is the filter that returns “false†instead of returning the content that would normal be there (in the h...
0
1304
posted 13 years ago by zachbrowne
PHP
Preserving Form Elements by creating hidden form elements on new page based on previous page's form submit
I made this function to render hidden form elements in a new page based on what was sent from the last form. This function can be used to preserve input from a long multiple-page form.
What does it do:
1. Go through all the submitted POST eleme...
0
884
posted 13 years ago by chopbust
# function *formatArrayForDisplay*
## parameters:
* **array**
a 1- or 2-dimensional array for output
* **mode**
accepts **human** or **PHP**
* **human** displays using `<pre>` tags and print_r
* **PHP** displays PHP styl...
1
1107
posted 13 years ago by daveespionage
Ordenamento de array para exibição em colunas múltiplas, via UL float.
0
652
posted 13 years ago by dessimoni