Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 2 3 4 5 6 ... 50
How to change user password for a wordpress site.
0 85 posted 6 years ago by keidash
Get all custom taxonomies that are attached to posts that have another custom taxonomy. Like fetching all categories that are attached to products that have the brand taxonomy "Nike".
0 89 posted 6 years ago by JoshChris
Thanks to Stephen Harris for this > http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu
1 167 posted 6 years ago by adambundy
Genius stuff right here from https://gist.github.com/BronsonQuick
1 113 posted 6 years ago by JoshChris
Increase server memory limit in wp-config.php
0 85 posted 6 years ago by fweeeb
Check if current post type is a custom post type – WordPress. Returns a true/false-statement. Can be used outside The Loop.
0 153 posted 6 years ago by jonasethomsen
Open your function.php of your active Theme. Copy your code insert and call the new Site URL. After delete the code snippet.
0 105 posted 7 years ago by WMSchneider
0 79 posted 7 years ago by larscmagnusson
This snippet is used to set some wordpress directories / paths directly to the server name.
0 99 posted 7 years ago by mralexjuarez
How to put sidebars footer on twenty twelve theme again. Part 5: add the styles necesary in style.css (this styles are no optimized -yet- for the responsive layout)
1 58 posted 7 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 4: Insert a new function (retouched from twentyeleven) in the functions.php file.
1 58 posted 7 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 3: Insert this register_sidebar at the end of the function twentytwelve_widgets_init() into functions.php
1 72 posted 7 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 2: Create the file sidebar-footer.php into the theme directory
1 80 posted 7 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 1: Insert the call in the footer.php
1 66 posted 7 years ago by almendro
Wordpress admin area functions
3 78 posted 7 years ago by andrewcolby
Breaks up an address (in this case returned by Advanced Custom Fields Location plugin) into it's components. Additionally, sorts a multidimensional array of locations alphabetically by state. This works for basic addresses assuming that address is in...
1 91 posted 7 years ago by devowhippit
For this to work add class "[CPT]-menu-item" to your menu item.
0 138 posted 7 years ago by ihatetomatoes
register custom menus
0 104 posted 7 years ago by thesmu
This allows you to create a custom page template in your plugin. Say your plugin creates a custom post type and you want to override the standard archives page template to display your custom post type in a special way. You could achieve this by crea...
0 92 posted 7 years ago by bitsculptor
Easy way to access request URI to WP in order to not repeat whole templates for minor changes
0 98 posted 7 years ago by jefrancomix
Wordpress Widget Basic Stucture
1 100 posted 7 years ago by Scoldy
Turns Wordpress custom menus into responsive-ready menu that comes with foundation framework. code goes into functions.php
0 154 posted 7 years ago by zartgesotten
Automatically link Twitter usernames in WordPress - Paste the code into the functions.php of your theme
0 216 posted 7 years ago by ederwp
This snippet is great for someone creating a wp theme which supports RTL as well as LTR since in enables you to use one function for multiple instances.
0 55 posted 7 years ago by sagive
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
0 306 posted 7 years ago by rickygri
this is a simple script to take iframe parameters and build an iframe via a shortcode
1 104 posted 7 years ago by bitsculptor
Add this snippet to `wp-config.php` to remove the file editor links from the WordPress admin menus. Read more about... [disabling the WordPress file editor](http://www.orderofbusiness.net/blog/disable-wordpress-file-editor/)
0 70 posted 7 years ago by tacudtap
This is a combined version of Bill Erickson's hide post editor and rilwis' Metabox include for specific IDs. It hides the editor for a specified post ID. You can have multiple IDs, just separate with commas.
1 90 posted 7 years ago by rickahontas
1 2 3 4 5 6 ... 50