Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 20 21 22 23 24 ... 47
shortcode : [rss size="10" feed="http://wordpress.org/news/feed/" date="true"]
0 1067 posted 14 years ago by nicomollet
0 933 posted 14 years ago by silentpro
0 988 posted 14 years ago by ddabney
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.
0 917 posted 14 years ago by mindshare
I did not created this, a friend provided it to me, and it seems really usefull so i thought i should share. Usage: Paste that code in your functions .php and in your theme you put <?php> where 20 is the number of words you want
0 938 posted 14 years ago by johnsardine
HTML5 replacements for the doctype, etc. for WorPress themes. Add this code to your header.php file and you site will use HTML5. Be sure to double check the rest of your theme files for validation errors.
1 970 posted 14 years ago by mindshare
Here are a couple of snippets for removing the CSS, JS, and Dashboard widget created by the WP Geo plugin. I love this plugin but often only use it as a simple way to embed geo data on posts and don't actually need it to generate maps.
0 1374 posted 14 years ago by mindshare
Place this code in your themes `functions.php` file.
0 1154 posted 14 years ago by mindshare
While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian. [RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it onl...
0 1118 posted 14 years ago by gryzzly
* Set your local path to the wordpress install, in my case was: "/blog/feed" * Edit the var contain = make it set to the selector, in my case I'm populated a list tag <ul></ul>. * Edit the var limit = 5; Set the amount of blog posts you want to dis...
1 2226 posted 14 years ago by crypticsoft
get rid of plugins that add jquery without killing the admin
0 1149 posted 14 years ago by mesh606
Dispaly a repeatable region using the Simple Fields wordpress plugin.
0 1170 posted 14 years ago by mesh606
Bring in a file / image to your wp template
0 1136 posted 14 years ago by mesh606
use this in the sidebar to show a top level page with child pages persistently
0 1249 posted 14 years ago by mesh606
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 1528 posted 14 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 1468 posted 14 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 1283 posted 14 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 1682 posted 14 years ago by zachbrowne
The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views. Note: You will want to change instances of "mysite_listings" with your own...
1 1670 posted 14 years ago by crypticsoft
Example shows how to register post types for : * Listings (defined as 'mysite_listings' with the rewrite slug 'lookup') * Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0 1619 posted 14 years ago by crypticsoft
With this CSS to make the page 2 main content columns: .custom #content .sidebar {width:48%; margin-right:2%; float:left;}
1 928 posted 14 years ago by kristarella
Here are some IDs for the default links WP 3.1 adds, found in /wp-includes/admin-bar.php: my-account / my-account-with-avatar : the first link, to your account. Note that the ID here changes depending on if you have Avatars enabled or not. my-blo...
0 1032 posted 14 years ago by crs
0 1112 posted 14 years ago by zreedeecom
This is a really short function you can use inside The Loop to get the parent page slug (useful to add to the body classes or something)
0 3515 posted 14 years ago by tomasdev
0 935 posted 14 years ago by fatihturan
1 ... 20 21 22 23 24 ... 47