Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
PHP
Wordpress - Show link to the next and previos brother of the current page, and a link to the page parent
Must be placed after the_post()
1
3252
posted 15 years ago by Overdeath
Must be placed after the_post() so make sure you verify that if you place it in the sidebar.
0
1322
posted 15 years ago by Overdeath
I found this awesome function that allows you to easily remove duplicate values.
4
1921
posted 15 years ago by chrisaiv
I know this code isn't perfect (and there's a spot where it kind of repeats itself), but I figured I'd share anyway.
NOTE: This code assumes that you are programming in CodeIgniter and you have uploaded a file and posted to a Controller which then...
2
920
posted 15 years ago by polarbear
PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs.
Tested with Javascript and PHP.
1
1894
posted 15 years ago by nkm