Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 2 3 4 5 6 7 ... 50
This snippet shows how to retrieve information from the SEO plugin of Yoast, to be used for front-end use. This snippet is taken from the opensource free Nexus WP framework supporting front-end editing, custom layout and drag & drop.
0 106 posted 7 years ago by barkgj
WordPress, IIS, Permalinks and index.php | Richard Shepherd
0 80 posted 7 years ago by thesmu
Disable (remove) some sidebars, or widgets at all in **Wordpress** on page template with suffix in the template name (*-no-widgets.php, *-no-sidebars.php)
1 102 posted 7 years ago by Internet-Uzver
To solve an issue for a blog main page in wordpress to display the latest post in its entirety and the remaining posts only the excerpt.
1 82 posted 7 years ago by rickahontas
A simple widget for displaying a single post in a dynamic sidebar. Originally developed to accommodate a WP user who wanted full control of which posts were displayed and what order they were on a certain page.
0 93 posted 7 years ago by chasecrawford
Use below SQL code and replace references within the theme files.
0 98 posted 7 years ago by ihatetomatoes
Use this plugin: http://wordpress.org/extend/plugins/members/ Settings are here: http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types http://codex.wordpress.org/Function_Reference/register_post_type Gravity Fo...
0 97 posted 7 years ago by ihatetomatoes
This adds custom columns to a custom post type
0 125 posted 7 years ago by bitsculptor
Easy PHP script for uploading and unpacking zip files to the server much faster Steps to follow: 1. create folder on the webserver called "zipper" or something else 2. copy the following PHP code into a file called "zipper.php" into this folde...
2 741 posted 7 years ago by jvandemerwe
Populate Fields from Post Data Add this to functions.php
0 75 posted 7 years ago by paddy1228
Try to run Codeigniter in a subfolder of a Wordpress installation and want to remove index.php for clean URLs? Put this code in a .htaccess file in your codeigniter directory ("cidir" in this example).
0 236 posted 7 years ago by telltec
Use Z-Index to make navigation layer ABOVE other elements.
1 102 posted 7 years ago by xcsteve99
Thanks Dan Gayle. http://www.dangayle.com/import-feeds-wordpress-fetch-feed/
2 124 posted 7 years ago by adambundy
Add an ID to the body tag.
0 116 posted 7 years ago by almendro
[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 122 posted 7 years ago by hell0world
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 176 posted 7 years ago by lucasoptura
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 115 posted 7 years ago by Zayac
Add the following code to functions.php 1: WP backend 2: Appearance -> Editor 3: functions.php
0 95 posted 7 years ago by hell0world
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 113 posted 7 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 91 posted 7 years ago by hell0world
Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
0 101 posted 7 years ago by rudwolf
Dummy content to format typographic/html tags for Wordpress copy.
0 102 posted 7 years ago by seejaeger
Adding this snippet to the functions.php of your wordpress theme will restrict wp-admin access to certain users as defined at http://codex.wordpress.org/Roles_and_Capabilities And also still allows for user access to admin-ajax.php , async-uplo...
0 96 posted 7 years ago by jsmithies
This PHP removes menu items from the WordPress dashboard
0 90 posted 7 years ago by ecksteing
goes in the functions file
0 113 posted 7 years ago by thesmu
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID. This function is part of the WPelements library class available on Github. Fee...
0 144 posted 7 years ago by krike
Thanks to @kaiser on WP answers for this. Place this function in your functions.php file, then use it in your template with the function call like: wpse19316_author_comments( 100 );
1 98 posted 7 years ago by adambundy
The fixed page layout responsive design CSS used in Nexus Themes Framework
0 120 posted 7 years ago by vanseijen
display an image field in the body/page of a custom post type
0 106 posted 7 years ago by mktimes5
Add this to functions.php and then you can call the focus keyword anywhere you want with: &lt;?php wpseoFocusKW();?&gt;
0 118 posted 7 years ago by itsmrchris
1 2 3 4 5 6 7 ... 50