⭐ Premium
The Submit a prayer request form is meant to appear at the top of your prayer requests archive page, above the list of requests. On most sites it does this automatically — but because WordPress themes vary in how they build their pages, on a few themes the form can end up in the wrong place, such as below the requests or hidden behind the footer. This page explains why, and how to fix it.
If you haven’t yet added a prayer requests page to your site, follow Adding menu items for Prayer Requests and Bible Readings first.
Why it happens
To show the form in the right spot, Church Admin needs to hook into your theme just before it starts listing the prayer requests. The plugin now handles this automatically for:
- Block themes — the form is inserted ahead of the post content block, so modern block-based themes work out of the box.
- Several popular classic themes — including Avada, The7 and Omega, which have their own layout systems the plugin recognises.
- Most other classic themes — the plugin falls back to the standard WordPress
loop_starthook.
The display problem only shows up on classic themes that build their archive pages in an unusual way, where loop_start doesn’t fire where you’d expect. On those themes the form can appear after the first request, or be pushed down the page. The fix is to tell the plugin exactly where to place the form.
The fix: add a hook to your theme
You can give the plugin a precise insertion point by adding one line to your theme’s archive template. Church Admin looks for a custom action called church_admin_premium_theme_before_loop — if it finds it, it uses that to position the form instead of guessing.
Important: edit a child theme, not the theme itself — otherwise your change will be wiped out the next time the theme updates.
In your theme’s index.php or archive template, add this line immediately before the loop:
<?php do_action('church_admin_premium_theme_before_loop'); ?>
The loop is the point where the theme starts running through the posts. It usually looks something like this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
or your theme may load the loop through a template part, in which case you’ll see something like:
<?php get_template_part( 'template-parts/content', get_post_type() ); ?>
Place the do_action line just above whichever of these your theme uses, save, and the form will appear exactly there — above your prayer requests.