• Resolved artysam

    (@artysam)


    First off, thanks for the plugin Dan!

    I’ve got a custom taxonomy that contains one- & two- word terms. I was wondering what would be the best way to correct the following:

    if i do this in my page template:

    do_shortcode("[dg $current_tax=$current_term descriptions=true images=true localpost=false order=ASC orderby=menu_order]")

    then two-word terms are giving me the error:

    word1 is not a valid term name in taxonomy1.
    
    word2 is not a valid term name in 0.

    whereas the single-word terms are working perfectly.

    Now I understand why it’s doing this, but I’m hoping there’s a way around this (via encapsulation maybe?) without changing the terms to single-word, as they’re supposed to be human-readable.

    Let me know if I should be asking this somewhere more related to shortcodes in general. Thanks!

    https://wordpress.org/plugins/document-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter artysam

    (@artysam)

    hehehe… worked it out myself:

    encapsulate the term part in single quotes:

    do_shortcode("[dg $current_tax='$current_term' descriptions=true images=true localpost=false order=ASC orderby=menu_order]")

    and it works 🙂

    Horay!

    Plugin Author Dan Rossiter

    (@danrossiter)

    Beat me to it! 🙂

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘terms with spaces in nicename’ is closed to new replies.