Project

General

Profile

Bug #5175

short code no longer working

Added by Paul Hebert about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2016-01-27
Due date:
% Done:

0%

Estimated time:

Description

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:

http://gcenglish.commons.gc.cuny.edu/profiles/student-profiles/
http://gcenglish.commons.gc.cuny.edu/profiles/alumni-profiles/

I know the profiles are still live, however, as links to them work:
http://gcenglish.commons.gc.cuny.edu/profile/hebert-paul/

History

#1 Updated by Matt Gold about 3 years ago

  • Status changed from New to Assigned
  • Assignee set to Boone Gorges

#2 Updated by Boone Gorges about 3 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.

#3 Updated by Paul Hebert about 3 years ago

Thanks!

Also available in: Atom PDF