HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/negarestandoc.ir/root/wp-content/themes/twentytwentyfive/single-doc.php
<?php
get_header();
?>
test test
<main id="site-content" role="main">
    <?php
    if ( have_posts() ) {
        while ( have_posts() ) {
            the_post();
            ?>

            <article <?php post_class(); ?>>
                <header class="entry-header">
                    <h1 class="entry-title"><?php the_title(); ?></h1>
                </header>

                <div class="entry-content">
                    <?php the_post_thumbnail('large'); ?>
                    <?php the_content(); ?>

                    <div class="doc-custom-fields">
                        <p><strong>پدیدآورنده:</strong> <?php echo esc_html(get_post_meta(get_the_ID(), 'creator', true)); ?></p>
                        <p><strong>دوره تاریخی:</strong> <?php echo esc_html(get_post_meta(get_the_ID(), 'period', true)); ?></p>
                        <p><strong>موقعیت:</strong> <?php echo esc_html(get_post_meta(get_the_ID(), 'location', true)); ?></p>
                    </div>
                </div>
            </article>

            <?php
        }
    }
    ?>
</main>

<?php
get_footer();