Get the WP Post ID doesn't work

Posted in: Newspaper
Post count: 5

Hi,

I would like to use built-in functions like get_the_ID() but it returns a wrong post number; and it is fixed for any post. It seems that it doesn’t get the current post ID but a specific post ID.

How can I get the current post ID to use it in /wp-content/plugins/td-cloud-library/tdb_title.php.

Post count: 27744

Hello,

Please check this guide https://themeisle.com/blog/get-post-id-wordpress/#gref

Thank you!

Post count: 5

I found it myself. It is stupid but there you go.

$post_ID = $tdb_state_single->get_wp_query()->post->ID;

  • This reply was modified 3 years by namnamir.
Post count: 5

Probably you didn’t even read my question carefully as you sent something completely irrelevant.

It seems that this theme is developed by a child with no clue about the basic software design mentality.

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