I have the following really simple code:
function load_peoplesoft_results() {
global $wpdb;
echo "<h2>Results</h2>";
}
add_shortcode('load_peoplesoft_result_page', 'load_peoplesoft_results()');
And I put the following on the page I want to display the page:
[load_peoplesoft_result_page]
But when I load the page, it just displays the above. I checked the error log, and got the following:
[22-Jul-2019 10:26:49] PHP Notice: do_shortcode_tag was called <strong>incorrectly</strong>.
Attempting to parse a shortcode without a valid callback:
load_peoplesoft_result_page Please see
<a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a>
for more information. (This message was added in version 4.3.0.)
in \wp-includes\functions.php on line 4231
I also tried putting it in a plugin in a different site where I have some shortcodes implemented that are working fine, but had the same issue. No idea what is going on.
Any advice or ideas are greatly appreciated. Thanks in advance.