fix: calc shortcode name mismatch — prc_calculator not peptide_tools_calculator (v2.1.3)

page-calculator.php and module-cards.php were both checking for
'peptide_tools_calculator' which the plugin never registered.
The calc plugin (prc) registers 'prc_calculator' — template fell
through to the 'currently being set up' fallback on every request.
This commit is contained in:
peptiderepo
2026-04-26 09:06:03 +00:00
parent 03bedf1d6b
commit 22716b4227
3 changed files with 4 additions and 4 deletions

View File

@@ -33,8 +33,8 @@ get_header();
<section class="ps-tool-page">
<div class="ps-container">
<?php
if ( shortcode_exists( 'peptide_tools_calculator' ) ) {
echo do_shortcode( '[peptide_tools_calculator]' );
if ( shortcode_exists( 'prc_calculator' ) ) {
echo do_shortcode( '[prc_calculator]' );
} else {
?>
<div class="ps-tool-fallback">