feat: add PRAutoBlogger posts widget to front page
Renders PRAutoBlogger-generated research articles as a card grid between the hero section and the peptide news feed. Wrapped in shortcode_exists() so it degrades gracefully if the plugin is deactivated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,13 @@ get_header();
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<!-- PRAutoBlogger Posts Widget -->
|
||||||
|
<?php
|
||||||
|
if ( shortcode_exists( 'prautoblogger_posts' ) ) {
|
||||||
|
echo do_shortcode( '[prautoblogger_posts count="6" title="' . esc_attr__( 'Latest Research & Insights', 'peptide-starter' ) . '" subtitle="' . esc_attr__( 'Evidence-based articles on peptides, protocols, and emerging research', 'peptide-starter' ) . '"]' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- News Feed Section -->
|
<!-- News Feed Section -->
|
||||||
<?php
|
<?php
|
||||||
// Display the Peptide News plugin shortcode if available
|
// Display the Peptide News plugin shortcode if available
|
||||||
|
|||||||
Reference in New Issue
Block a user