Search
Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type

How to change the WordPress default excerpt length

This snippet will let you define a new default excerpt length for the WordPress excerpts output. The following example will set the default excerpt length to 20 characters.

Show a list of WordPress post by a specific user

This WordPress snippet will let you show a list of post by a specific user. This is useful if you for example want to show post from a specific user on Custom Post Types etc.

How to get WordPress featured image source (src)

With the WordPress function: wp_get_attachment_image_src, you can get the src of the featured image. Instructions Add this code to your page/post template file where you want to use the featured image source.

WP-Snippet.com

Your no.1 source for WordPress snippets, hacks & modifications.

WP Engine