Character list behaviour when hierarchical, shortcode to call only children?
-
Me again! Separate topic so as not to mess with the search should anyone else have this question.
I currently have my characters displaying on a cast page using the
[webcomic_characters_list]
shortcode around a table so that I can easily format for this page specifically in my CSS:[webcomic_characters_list hide_empty="true"] <table class="castpagegrid"><tbody> <tr><td>%thumbnail</td></tr> <tr><td>%title</td></tr> </tbody></table> [/webcomic_characters_list]
It works beautifully (image via imgur) to format for my needs! However, this becomes complicated should I introduce any sort of character taxonomic hierarchy.
SIDE QUESTION:
With a taxonomy set up, any character list dropdown displays perfectly as expected. (image via imgur) However, I’ve not yet figured out how to set the default text to something like “Select a Character” as it does in a widget display. I have the shortcode filled out as such:
[webcomic_characters_list format="<select>{{join}}</select>"][/webcomic_characters_list]
If it isn’t possible to give the dropdown a default text outside of the widget that’s fine. This is more a side thing.PRIMARY QUESTION:
When there is a hierarchy in place for characters, in my visual/grid display each parent is given its own entry even if
hide_empty
is set to “true”. (image via imgur) I assume this is because they technically have children even if no pages are directly assigned to them?I’d like to work around this by potentially making a new page that manually organizes the parents as headings, and calls ONLY the involved children/characters using a shortcode beneath them, but I’ve had no luck with the
link
method we discussed in my previous thread. I also tried using thetaxonomy
argument but I feel I might be using it incorrectly? I’ve tried entering the parent’s name, slug, and ID as a parameter but none of them seem to change the output. Here’s a mockup of what I’d like to accomplish if possible, I know my wording can be terrible at times for getting ideas across: (image via imgur)Is there an argument I’m misreading/not understanding correctly that might allow me to list characters only beneath a certain hierarchical level?
Thank you once again, so very much, for the assistance. There’s only so far a novice background in C and CSS can take me here but I’m trying my very best to troubleshoot without bothering you. ??
- The topic ‘Character list behaviour when hierarchical, shortcode to call only children?’ is closed to new replies.