Created
December 5, 2014 14:12
-
-
Save fernandofuly/663a7f4077acdd3aa9ee to your computer and use it in GitHub Desktop.
Exclude Current Post ID from loop in Sidebar - WPQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is it | |
'post__not_in' => array( $post->ID ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment