Search
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.

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.