WordPress erhalten Post -ID
// Retrieve the ID of the current item in the WordPress Loop.
get_the_ID()
TheDutchScorpion
// Retrieve the ID of the current item in the WordPress Loop.
get_the_ID()
get_posts(array(
'fields' => 'ids', // Only get post IDs
'posts_per_page' => -1
));