How to check that current page is a blog page in wordpress ?

Code to confirm that current page is a blog page in wordpress

Make a function in functions.php –
if(is_archive || is_author() || is_home() || is_single() || is_home() || is_tag() && post= ‘get_post_type’){
echo “this is a blog page”;
}

 

 

For more related queries, please visit.
In case, if you did not find your solution or have any query/question, please contact us.

Leave a Reply

Your email address will not be published. Required fields are marked *