Vishmax.com
Read

How to get current post ID in WordPress

We design and develop websites, digital experiences, and software solutions for growing businesses.

Adding below code to your WordPress template will display the current post ID.

 
	<?php 
 
		the_ID();
 
	?>