Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 1461 posted 11 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 1459 posted 11 years ago by gabbo
Positioning the normal metaboxes in WordPress admin (like Excerpt, Author etc.) before the WYSIWYG editor
1 1028 posted 12 years ago by tkujawa
Gets all of a Wordpress post meta data in an array without specifying a key
1 1331 posted 12 years ago by web_la
0 1203 posted 12 years ago by santamartastudio
Für functions.php
1 2588 posted 12 years ago by gabbo
shows list of cpt for example on archive page when wpml is installed. if particular post has no translation, it shows it in default language
0 1450 posted 12 years ago by kkarpieszuk
Instructions: WordPress menus and sidebars/widgets are really powerful modules, but unfortunately it requires Admin user role to edit them. If you would like to allow users with Editor user role to edit any of the widgets or menus, just paste t...
2 1517 posted 12 years ago by lromak
To be used in WordPress template. List full taxonomy, or only custom post type associated with the post. Examples include a linking or non linking list.
2 1257 posted 12 years ago by lromak
To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size.
2 2619 posted 12 years ago by adambundy
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 1650 posted 12 years ago by JoshChris
Thanks to Stephen Harris for this > http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu
1 1936 posted 12 years ago by adambundy
0 1284 posted 12 years ago by larscmagnusson
0 1197 posted 12 years ago by larscmagnusson
Genius stuff right here from https://gist.github.com/BronsonQuick
1 2856 posted 12 years ago by JoshChris
Increase server memory limit in wp-config.php
0 1312 posted 12 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 3909 posted 12 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 2519 posted 12 years ago by WMSchneider
0 2450 posted 12 years ago by larscmagnusson
This snippet is used to set some wordpress directories / paths directly to the server name.
0 1487 posted 12 years ago by mralexjuarez
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 1293 posted 12 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 1199 posted 12 years ago by almendro
How to put sidebars footer on twenty twelve theme again. Part 1: Insert the call in the footer.php
1 1367 posted 12 years ago by almendro
Wordpress admin area functions
3 1294 posted 12 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 2306 posted 12 years ago by devowhippit
For this to work add class "[CPT]-menu-item" to your menu item.
0 1941 posted 12 years ago by ihatetomatoes
register custom menus
0 1355 posted 12 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 1614 posted 12 years ago by bitsculptor
Easy way to access request URI to WP in order to not repeat whole templates for minor changes
0 1554 posted 12 years ago by jefrancomix
Wordpress Widget Basic Stucture
1 1418 posted 12 years ago by Scoldy