TCBarrett
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Find posts with no user connectionGotacha, like so?
$suppliers = p2p_type( 'user_supplier' )->set_direction( 'to' )->get_connectable( 'any' ); foreach( $suppliers->items as $supplier ): $available[] = $supplier; endforeach;This is not any quicker. My sample size is ~1500 posts and it is just as slow as my first example.
Perhaps I should identify all existing connections instead?
Forum: Plugins
In reply to: [Posts 2 Posts] Find posts with no user connectionThanks. Is that for the complete list of posts, or to be called inside the loop to check for connections?
Forum: Plugins
In reply to: [WP Glossary] Glossary page and terms page issues, hopefully minor fixesI think I have an idea why that is. Thanks.
Forum: Plugins
In reply to: [WP Glossary] Showing terms by languageThere is a difference between the WP core i18n supporting a variety of single languages on one installation, and a plugin creating functionality for multiple languages on a single installation.
Forum: Plugins
In reply to: [WP Glossary] Request for backlink from /glossary/single_word/Hi jchris
Not sure how to do this nicely as an option/setting in the plugin.
You can achieve it yourself either by writing your own single-glossary.php template file, or with a filter.
add_filter( 'the_content', 'tcb_wpg_backlink' ); function tcb_wpg_backlink( $content ){ global $post; if( is_single() && $post->post_type == 'glossary' ): $content .= '<br><a href="javascript:javascript:history.go(-1)">«Back</a>'; endif; return $content; }Forum: Plugins
In reply to: [WP Glossary] Changing archive pageHi cw_wp
The plugin uses whatever archive template the theme tells it to. So for most people that would be the standard posts archive.
According to http://codex.wordpress.org/images/1/18/Template_Hierarchy.png you need to create archive-glossary.php
Forum: Plugins
In reply to: [WP Glossary] Glossary page and terms page issues, hopefully minor fixesHi sindyr
1) This is a general archive setting. I’ll add an option to change this to my to-do list.
2) This is a theme feature that is tricky to interact with nicely via plugin.
3) Recent posts widget – this is displaying *non glossary* posts alphabetically on glossary archive page?
4) as 2)
5) as 2)
6) as 2)The last are most effeciently fixed by creating your own single-glossary.php template file, and putting it in your *theme* (in the place as single.php)
Thanks for the feedback 🙂
Forum: Plugins
In reply to: [WP Glossary] This plug-in simply does not workhyperthalamus – the forums add the plugin url automatically as a way to tag the post 🙂
perrymyk – the WP Glossary plugin uses shortcodes. Here is some general information on WordPress shortcodes: http://en.support.wordpress.com/shortcodes/
Hopefully, armed with that knowledge, you can add glossary shortcodes.
I do have it in my to-do list to create a nicer UI (like gallery). I just need to find the time 🙂
Forum: Plugins
In reply to: [WP Glossary] glossary_atoz in single-glossary.php1. Glossary mini-menu is a nice idea.
2. How do you mean ‘within templates’. If you are creating page templates you need to use do_shortcode() in your PHP to invoke shortcodes.Forum: Plugins
In reply to: [WP Glossary] Showing terms by languageLanguage support and ‘support for WPML’ are different things.
If I get the time to look into what it would need for the two plugins to compliment each other, I will.
Forum: Plugins
In reply to: [WP Glossary] Auto Glossary ContentI can’t think of a nice way of doing this. It strikes as an expensive and complex thing to get right. So I’m unlikely to add this any time soon.
Forum: Plugins
In reply to: [WP Glossary] Alphabetize main glossary page?I have added an option (from version 1.5) that orders the archive alphabetically.
Forum: Plugins
In reply to: [WP Glossary] Request for goups of glossary termsI have added glossary-groups taxonomy.
It is up to your theme to support it at the moment.
Forum: Plugins
In reply to: [WP Glossary] on / off tooltipI have added this option in version 1.5
Forum: Plugins
In reply to: [WP Glossary] Request for localized sortingThe alphabet range is passed through a filter, like so:
$range = apply_filters( 'tcb_wpg_atoz_range', range('a','z') );You can try building your own array:
add_filter( 'tcb_wpg_atoz_range', 'tcb_wpg_atoz_range' ); function tcb_wpg_atoz_range( $range ){ ... return my_list_of_characters(); }Let me know how you get on.