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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user