How to show post id

use hooks editor to show singe post id,what is the php code?

Attachment Link(s):

Hello Hp3240au,

Try this code,

if ( is_single() ) {  
    echo get_the_ID();  

Let me know if its work for you.

ok,thank you

another question:
can home page show post id too?

Attachment Link(s):

Yes, just remove the is_single() condition from above php code.

ok,juse see mysite
Thank you!


Glad to know your issue got solved. I am closing this support thread. If you face any other issue in future, please create another thread.