Upload file list-posts.php via GUI

This commit is contained in:
2026-03-29 22:28:09 +02:00
parent 75c3583b11
commit 0a494f8148

View File

@@ -0,0 +1,26 @@
<?php
define('WP_USE_THEMES', false);
require('../../../wp-load.php');
$posts = get_posts(array(
'post_type' => 'mm_livestream',
'posts_per_page' => -1,
'post_status' => 'any',
));
echo "Gefundene Livestream Posts: " . count($posts) . "\n\n";
foreach ($posts as $p) {
echo "ID: {$p->ID}\n";
echo "Titel: {$p->post_title}\n";
echo "Status: {$p->post_status}\n";
$profile = get_post_meta($p->ID, '_mm_livestream_url', true);
$player = get_post_meta($p->ID, '_mm_livestream_player_url', true);
$owner = get_post_meta($p->ID, '_mm_livestream_owner', true);
echo "Owner: {$owner}\n";
echo "Profile: {$profile}\n";
echo "Player: {$player}\n";
echo "---\n\n";
}