I created a few tags and assigned them to some of my terms.
How do I utilize these Tags when I display the dictionary using the shortcode?
]]>This plugin brings in a simple manner exact the functionality I was looking for. Thanks a lot for developing. However, the plugin is only able to work with the 26 characters of the English alphabet. When I tried an ? (which I was in need for because of Danish/Norwegian terms), it got mixed up with the O and its content as well was absorbed under the o, no matter what I tried with the slug (oe) or elsewhere. Same for the Dutch ? (slug ij), which got caught in the regular Y. Is there a way I can avoid this?
]]>In WP admin editor: I was wanting to add tags to my entry, but the section in the Classic Editor that normally offers tag options is filled with Category options. Ideally, I’d like to add both Tags and Categories.
In WP admin editor: On another note, typically I see the permalink under the post heading input. I don’t see it here. I think it would be nice to be able to share the single.php link for any dictionary entry, as I would like to encourage people to share and learn the language I am putting in.
Thank you.
]]>How can we not refresh the page by changing the term?
]]>I tested your plugin and I can say that it looks and works almost perfectly. That’s the reason why I come with some suggestions:
What do you think about my suggestions?
So I’m trying to figure out how to clump any terms that begin with a number into a custom tag like “Misc” so that I don’t wind up with 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, etc.
Looking in the “set_letter” method, that appears to be where you define the first letter of the word to be the tag the term is categorized under. However, when I tried to add a check for is_numeric, it doesn’t seem to work.
public function set_letter($post_ID, $post) {
if ($post->post_type == 'dict-terms') {
$lower = mb_strtolower($post->post_title);
$one = mb_substr($lower, 0, 1);
if (is_numeric($one)) {
$set = wp_set_object_terms($post_id, 'Misc', 'dict-terms-letter');
wp_update_term($set[0], 'dict-terms-letter', array(
'name' => mb_strtoupper('Misc')
));
}
else {
$set = wp_set_object_terms($post_ID, $one, 'dict-terms-letter');
wp_update_term($set[0], 'dict-terms-letter', array(
'name' => mb_strtoupper($one),
));
}
}
return;
}
]]>
I did not find it in “description” or “installation” does this plugin have a shortcode ?
]]>