Can't Show in a Widget a Custom Field Value From a Post

Posted in: Newspaper
Post count: 4

Hi there, I’m trying to show in a normal PHP Widget, not a custom one, a Custom Field Value that is filled in the post.

When I use get_the_ID() function the id it returns is the one from the template, not from the post in the page, but I need the id from the post. Can you help me?

From inside the content I can get what I want, but I need it outside, and the widget needs to get all the post ID automatically.

Post count: 18283

Hello !

Can you provide an example of what you are looking to achieve. I’m not sure what exactly you’d like to achieve.

Thank you !

Post count: 18283

Hello !

Can you provide an example of what you are looking to achieve. I’m not sure what exactly you’d like to achieve.

Thank you !

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