Custom Shortcodes cannot access taxonomy
-
I have some custom shortcodes that add tables of information with a summary of posts from the last week.
These are filtered by a taxonomy that each user can set so they see posts that a relevant to them in the newsletter.
This all worked perfectly in RC 1.0.4, however upon upgrading to RC 2.0.1 today it is now broken and if I filter by taxonomy no posts are found when using the web browser, however the posts show up fine in the emails themselves. This is a problem however as the newsletter archive is also empty except for the header, preamble and footer.
Just to be sure I reverted to RC 1.0.4 and it worked again, and was broken on going back to 2.0.1.
I realise that you do not support custom shortcodes but this is something more fundamental. If I do a simple var_dump(get_term( 3609, ‘subject’ )) in the custom shortcode I get a result of WP_Error – invalid_taxonomy, despite the taxonomy and term being OK.
The odd thing is as I mentioned above that it works when sending the mail but not when rendering a webpage.
- The topic ‘Custom Shortcodes cannot access taxonomy’ is closed to new replies.