• Resolved bucklea

    (@bucklea)


    Hi

    I created a custom taxonomy (using register_taxonomy) for my attachments called ‘document-category’. I then created two categories (‘Industrials’ and ‘Consumer Goods’) in this taxonomy and assigned some (pdf) attachments to them.

    I then created a page, added the attachments to the page, and used [dg document-category=”Industrials”] to try and display only the pdfs with that category and received the following error on my site “document-category=”Industrials” is not a valid term name in 0.”

    Am I doing something wrong?

    https://www.ads-software.com/plugins/document-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author demur

    (@demur)

    Hi bucklea!

    Unfortunately shortcode engine of WordPress doesn’t recognise appropriately parameter names with hyphens. So, please, define another taxonomy name, for example You can use ‘document_category’.

    Thread Starter bucklea

    (@bucklea)

    Perfect, that works! Thank you so much for the help, it’s always the little things….!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error using custom taxonomy’ is closed to new replies.