Issue With WP 6.5
-
After updating to WP 6.5, the output of this function is the string “array”.
function generate_custom_post($customtext) { global $post; if ( '' == $customtext ) { $customtext = get_the_content(''); $customtext = apply_filters('the_content', $customtext); } return $customtext; } add_shortcode( 'custom_post', 'generate_custom_post' );
Before, it outputted the entire content of the post in my customized way. I reverted to WP 6.43 and things work fine. Any ideas why this might happen in the WP 6.5? Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue With WP 6.5’ is closed to new replies.