short code no longer working
This is concerning the ESA website: http://gcenglish.commons.gc.cuny.edu/
The ESA website runs a child-theme with several custom taxonomies. Two of the custom taxonomies are Student Profiles and Alumni Profiles. Until now, we used a version of the code for the Display Posts plugin, pasted directly into the functions.php file in the child theme, to create alphabetized lists of these profiles. This short code no longer seems to work.
The code came from this plugin: https://wordpress.org/plugins/display-posts-shortcode/
Since it was pasted directly into the functions.php file, it should not be because of a change in the plugin on the Commons side. Perhaps something is preventing this from working? I know it's not the best to paste like that and this will likely teach me not to do that in the future. So if we can't figure out what's wrong, maybe just adding that plugin will do it. It's been updated significantly since the child theme was created.
The short code is not working on these pages:
I know the profiles are still live, however, as links to them work:
#2 Updated by Boone Gorges almost 6 years ago
- Category name set to WordPress (misc)
- Status changed from Assigned to Resolved
- Target version set to Not tracked
Hi Paul -
Thanks for the detailed report.
After some debugging, it looks like the problem was that you'd entered two spaces after the shortcode name in the editor:
[display-post attributes] instead of
[display-post attributes]. And it looks like some change in WordPress 4.4 caused this additional character not to be recognized properly. It looks like this is a reported bug in WP 4.4: https://core.trac.wordpress.org/ticket/35022 I'm going to poke around to see if I can help fix the bug in WordPress, but in the meantime I've fixed your problem by removing the extra space character in on the student-profiles and alumni-profiles pages.