I created a series of custom blocks to pull in the featured image from a series of Custom posts – (Supporters/Sponsors) – these have custom taxonomy (supporter_level) applied – platinum, gold etc.
The blocks work fine, but now we want to add links to the images- via a Link/URL field.
The code is failing when used in the block, but when I use the same code in a test page-template, it works fine. I am obviously missing something, but can’t see what it is.
In the image the top row of logos are displayed via the custom block. The lower is the same code, but is in the page-template file.
See the code here: https://gist.github.com/macgraphic/5458460acbccca46eb1a87910a1b29e3