Hot answers tagged

1

First off, it's always good to register shortcode during init versus just in your general functions.php file. At the very least add_shortcode() should be in init. Anyway, let's begin! Whenever you use add_shortcode() the first parameter is going to be the name of the shortcode and the 2nd will be the callback function. This means that: [products line="...


1

It is because you're using a reserved term "year". https://codex.wordpress.org/Reserved_Terms



Only top voted, non community-wiki answers of a minimum length are eligible