Site icon Hip-Hop Website Design and Development

If publish ID has_term?

I am looking for out whether or not the publish has_term by publish ID or not.

Proper now I’ve this:

<?php $postid = $_GET['post_id'];
if( has_term( 'marketing campaign', 'sort' ) ): ?>
//Do one thing
<?php endif; ?>

How do I incorporate $postid variable contained in the has_term?

In order that I may verify solely that particular publish id.

I’ve tried:

    <?php $postid = $_GET['post_id']; 
    if( has_term($postid, 'marketing campaign', 'sort' ) ): ?>

The above would not work.

Need assistance, thanks.