RescueThemes / beer-directory

This plugin allows home brewers, professional breweries, and beer afficianadoes to enter individual beer, beer categories, and beer details. It provides a shortcode that will allow for display management. Beer Directory is a WordPress plugin that creats a custom post which allows home brewers, professional breweries, and beer afficianadoes to enter individual beer, beer categories, and beer details. It provides a shortcode that will allow for display management.
9 stars 3 forks source link

Add filter or option to filter content instead of using single-beer.php #1

Open pippinsplugins opened 9 years ago

pippinsplugins commented 9 years ago

I would love to see an option (via UI or filter) to add support for displaying the single beer via the default single.php instead of the single-beer.php

The reason for this is that a of themes do not include the standard HTML structure, resulting in a broken single beer page.

An easy way to get around this is to filter the_content instead of registering a template file. This means appending the beer meta data to the bottom of the content. (this is how EDD works).

I know it's simple to copy single.php to single-beer.php, but that also means copying the meta data. Having an option or filter would make this work on a large percentage of sites without having to edit template files.

(this was my biggest hurdle to turning this on on my own site).

pippinsplugins commented 9 years ago

An example of how filtering the content could work better here: screen shot 2015-04-30 at 3 14 02 pm

That's the default display in Twenty Twelve. Compare that to a standard blog post:

pippinsplugins commented 9 years ago

screen shot 2015-04-30 at 3 17 14 pm

jamigibbs commented 9 years ago

Thanks for the suggestion! I'll look into updating this!