blacksnotling / hdwsbbl-legacy

Old Code for the HDWSBBL website and team network - No longer maintained
hdwsbbl.co.uk
0 stars 0 forks source link

If the Team or Competition taxonomy don't exist then Oberwald crashes down #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because the Teams and competition taxonomies are defined within the plugin.

At this moment in time, moving the new taxonomies into the theme is not an 
option because theme bblm plugin relies on them too much. Therefore the theme 
has to be adjusted. There are two ways of doing this:

1) The theme should check to see if they are defined using the taxonomy_exists 
function (this is normally when generating the post-meta for the post). If not 
then the theme will error every time they are referenced.
2) In the output where they would be mentioned, create a custom action hook 
(function do_action) and then the plugin can call this and enter its own text.

Both have advantages and disadvantages. I will be going for option 1 for now

Original issue reported on code.google.com by blacksno...@gmail.com on 25 Oct 2011 at 10:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r20.

Original comment by blacksno...@gmail.com on 25 Oct 2011 at 10:36