A
A
alex steel2018-09-28 17:21:18
WordPress
alex steel, 2018-09-28 17:21:18

How to display the ID of another post in the current post?

I made a custom record type and you need to enter the ID of another record in the current one. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex steel, 2018-09-28
@alexsteel07

Found
<?php
global $post;
echo $post->ID;
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question