Getting ID

Posted in: Newspaper
Post count: 8

Im using some functions like:

$post_id = get_the_ID();
$object_id = get_queried_object_id();

and im getting template id not post id. What should I do to loads id of what’s beeing printed?

Post count: 8

i’ve solve this. It was just to use $post_id in the context I was.

Post count: 21065

Hello @pedromoliv !

In order to avoid misunderstandings, please provide more information(screenshots/video) about what exactly you need to achieve or what is the issue there and your website link.

A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.