Programming

Get all WordPress post meta

The following snippet will let all of a WordPress post meta data in an array without specifying a key.

Source: Snipplr

Custom excerpt length

The following snippet will allow you to set custom except length

Source: Snipplr

Change role access to Menus and Widgets

Adding the following snippet to functions.php will let you change role access to Menus and Widgets

Source: WP-Snippet

WordPress, page hook

Using the following snippet will let you change the code on the page which you are on

Source: Novastream

List current post taxonomies and terms

The following snippet will let you list current post taxonomies and terms

Source: Snipplr

Change user password in mySQL

The following snippet will let you change user password in mySQL

Source: Snipplr

WordPress breadcrumbs based on wp_nav_menu

Source: Stackxchange

Form standard WordPress comment

Source: Snipplr

get page or parent page id

The following snippet will let you get page or parent page id

Source: Snipplr

Get all custom taxonomies that are attached to posts that have another custom taxonomy

The following snippet will let you get all custom taxonomies which are attached to posts which have another custom taxonomy

Source: Stackxchange

WordPress AJAX loop template

Source: Snipplr

Increase server memory limit in wp-config php file

The following snippet will increase server memory limit in wp-config.php file

Source: Snipplr

WordPress AJAX jQuery script

Source: Snipplr

Check if current post type is a custom post type

The following snippet will let you check if current post type is a custom post type or not

Source: Snipplr

Move the posts count inside the link of the Archive and Category widgets

The following snippet will let you move the posts count inside the links of the archive and category widgets

Source: Github

Photo Credit: Flickr/hackNY.org