get wordpress id
snippet in php

get wordpress id

user1167

echo get_the_ID();