buttonpoetry / Button-Theme-2018

A custom theme for Button Poetry based on FoundationPress.
https://buttonpoetry.com/
MIT License
1 stars 0 forks source link

Poet Page/Product integration logic uses Titles rather than Post IDs. #19

Open melek opened 5 years ago

melek commented 5 years ago

This issue will cause problems if two poets have the exact same name. Using the ID would be a more robust solution.

To do this gracefully, the bp_linked_author meta should work if it is either a number or a string. If a string, then query for the most recently published post title matching it. If a number, query it as a post ID.

This logic would need to be revised in two places: On the front/shop page showcases, and on single product pages below the description.