Elementor Trouble Shooting

prayerport-template.php

				
					<?php
/* Template Name: Prayerport Page */

get_header(); ?>

<div id="primary" class="content-area">
    <main id="main" class="site-main" role="main">

        <?php
        $args = array(
            'post_type' => 'post', // Change to your custom post type if necessary
            'posts_per_page' => 10, // Adjust the number of posts per page
            // Add any other query parameters you need
        );
        $prayer_query = new WP_Query($args);

        if ($prayer_query->have_posts()) :
            while ($prayer_query->have_posts()) : $prayer_query->the_post();
                ?>
                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                    <header class="entry-header">
                        <h1 class="entry-title"><?php the_title(); ?></h1>
                    </header>

                    <div class="entry-content">
                        <?php the_content(); ?>
                    </div>
                </article>
                <?php
            endwhile;
            wp_reset_postdata();
        else :
            echo '<p>No prayer requests found.</p>';
        endif;
        ?>

    </main><!-- #main -->
</div><!-- #primary -->

<?php
get_sidebar();
get_footer();
?>