Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
[register_nav_menus](http://codex.wordpress.org/Function_Reference/register_nav_menus,"register_nav_menus")
[wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu,"wp_nav_menu")
[in_category](http://codex.wordpress.org/Function_Ref...
0
2070
posted 13 years ago by hell0world
Outputs the content of a multi-dimensional array in the $GLOBALS['lv']
0
2136
posted 13 years ago by steho
This is a very basic wrapper for querySelectorAll. Just add prototypes and whatever else you need.
1
2886
posted 13 years ago by o0110o
In my WP networks, I use a custom 404 page and plugin to answer calls asking for user information from a custom api. The API requires a URL format like this:
domain.com/username/
However, users don't ever type a trailing slash, nor should they, so...
0
2580
posted 13 years ago by lucasoptura
PHP script calculating the age of a customer coming from a webEdition field of the customer management.
0
2986
posted 13 years ago by steho
With this statement you can reload a page, this will also reset any forms on the page.
1
1669
posted 13 years ago by seloh77
A complete example of how we can create a Preloader in actionscript3 to load an external .swf file.
STRUCTURE
------------------
Source Swf
|_ Main.fla
|_ Main.as
|_ Main.swf
Preloader Swf
|_
0
4342
posted 13 years ago by jquery404
I love this one. Needed a good way to numerically sort IP addresses or OIDs. Took longer to come up with this than I'm willing to admit. Hope others find it useful.
0
2236
posted 13 years ago by kurtkincaid
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
0
2271
posted 13 years ago by rumremix
So, you define a couple of fake funcs and require WP database config, after this you can require wp-db.php, create new wpdb and use it independency of WP for your ajax actions.
0
2878
posted 13 years ago by Zayac
Validates Numericals in a text box.
Validates spaces in a text box.
0
3177
posted 13 years ago by laxman2021
Add the following code to functions.php
1: WP backend
2: Appearance -> Editor
3: functions.php
0
1639
posted 13 years ago by hell0world
Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.
0
2503
posted 13 years ago by rumremix
This is some code using Thematic Child Theme overrides to remove thematic's post thumbnails and add Post Thumbnails outside of the .entry-content <div> so that POst Thumbnails can be styled separated from all post Meta. See this page for an example...
0
2838
posted 13 years ago by AndrewThinkUp
I am using thesis developer version to redesign the site [FFXIV Gil](http://www.cheapffxivgils.com/ "Cheap FFXIV GIL").
Before using the code, you should add the Unique Hook Name to BOX in template(see [the official tutorial](http://diythemes.com/t...
0
1648
posted 13 years ago by hell0world
Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
0
4324
posted 13 years ago by rudwolf
JavaScript
Template for a Javascript function with optional and mandatory arguments passed as an object collection
A simple template for a JavaScript function which allows for an arbitrary number of named arguments to be passed in. This is achieved by passing a single object as an argument with each of the 'real' arguments being a key/value pair. In this way argu...
0
3830
posted 13 years ago by davidwaterston
Eric Meyer's Reset Reloaded + HTML 5, from Boilerplate
9
19318
posted 13 years ago by lookingforsome
Really DP-lite. Memoize the solution for a recursive problem so it can be looked up on subsequent iterations.
0
3198
posted 13 years ago by rtperson
Dummy content to format typographic/html tags for Wordpress copy.
0
1570
posted 13 years ago by seejaeger
Logs offline application cache states. Swaps cache if updated version is available.
0
1798
posted 13 years ago by zfisic