I might be showing my green-ness with PHP code here, but I need help.
I've got divs that are all styled the same but have differing content, as they are related product snippets to be displayed on a product page. I'm trying to allow non-technical editors of the wordpress site that we use to be able to select these related products through use of custom fields.
Is it possible to code these divs in an external file, link that file to the product page template and then call these divs in their entirety using a callback function, which I can manipulate in the template to allow the use of a custom field key?
Thanks.