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

How to exclude current WordPress post from WP Query

Heres a little WordPress snippet that allows you to exclude current WordPress post from the WP Query - i.e. list of recent posts, more posts from the same category, etc.

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.