montera34 / globalrec

Wordpress theme of the global alliance of waste pickers
http://globalrec.org
GNU General Public License v3.0
0 stars 0 forks source link

Fixings display of posts with tag in side panel of waste picker organization #53

Open numeroteca opened 6 years ago

numeroteca commented 6 years ago

I am testing with this translated waste picker organization in Spanish: http://globalrec.org/es/organization/asociacion-de-recicladores-de-bogota-arb/

The side panel is supposed to display the posts with the tag in the custom field gm_tag and managed by this file that calls the loop for the posts: related-postbytag.php. The file that calls this one, the custom post type single is single-waste-picekr-org.php

It is working in English, but not in Spanish.

skotperez commented 6 years ago

The system was working. There were no posts in Spanish because the tag slug in gm_tag field wasn't correct.

I've changed the code: i've removed related-postbytag.php file and i've created a function to be called when related posts list is desired. I've also changed single-waste-picekr-org.php and single-global-meeting.php to work with the new function.

Details: https://github.com/montera34/globalrec/commit/ba6370a842570c97731871243819cf10c9ca79b3