Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Display count of posts contained in custom taxonomy terms listSorry, I didn’t manage to get this into 2.0 🙁 It’s still coming, though.
Forum: Plugins
In reply to: [A-Z Listing] Display only Child Terms in Custom TaxonomyYou can now filter the taxonomy queries by hooking the filter
a-z-listing-query:function my_filter_a_z_query( $query, $type ) { if ( 'terms' !== $type ) { return $query; } // maybe need some logic to be sure $query is the one you want to change $query['childless'] = true; return $query; } add_filter( 'a-z-listing-query', 'my_filter_a_z_query' );Forum: Plugins
In reply to: [A-Z Listing] Multi Column not responsiveHopefully I’ve got this sorted in version 2.0.1, which I’ve just released.
Forum: Plugins
In reply to: [A-Z Listing] child terms under a term, and also hide empty termsGood news everybody!
You can now do
hide-empty-terms="true"on the shortcode. This works in version 2.0.1 which has just been released.You can also limit to children of a term with
parent-term="5"which takes a term-ID. Again, this is in version 2.0.1.Forum: Plugins
In reply to: [A-Z Listing] Using DIVI theme – care to share your a-z_listing.php?I believe divi is adding
<pre><code>around the shortcode. You need to make sure it doesn’t do that.Forum: Plugins
In reply to: [A-Z Listing] Exclude categoriesWhile you cannot exclude terms when displaying posts, you can when you are displaying terms with the new version 2.0.1.
This will work:
[a-z-listing display="terms" taxonomy="post_cat" exclude-terms="5,9"]Here I’ve told the plugin to display Categories excluding category ID
5and category ID9. exclude-terms takes a list of term-IDs separated by commas:,You can only use one of terms or exclude-terms in the shortcode. You cannot use both in the same shortcode.
Forum: Plugins
In reply to: [A-Z Listing] How to show category and subcategory name ??You could also use
parent-term:[a-z-listing display="terms" taxonomy="post_cat" parent-term="5"]Forum: Plugins
In reply to: [A-Z Listing] How to show category and subcategory name ??You can now, in version 2.0.1, use a shortcode which takes the form:
[a-z-listing display="terms" taxonomy="post_cat" exclude-terms="5,9"]Here I’ve told the plugin to display
Categoriesexcluding category ID 5 and category ID 9.exclude-termstakes a list of term-IDs separated by commas:,You can only use one of
termsorexclude-termsin the shortcode. You cannot use both in the same shortcode.Forum: Plugins
In reply to: [A-Z Listing] Exclude specific pagesVersion 2.0.1 includes a new shortcode attribute
exclude-poststhat you can now use for this:[a-z-listing display="posts" post-type="posts" exclude-posts="1,3"]In the above shortcode I have told the plugin to remove the post with ID
1and the post with ID3.Forum: Plugins
In reply to: [A-Z Listing] Fatal error in wordpressPlease try 2.0.1 which should hopefully fix the fatal error.
Forum: Plugins
In reply to: [A-Z Listing] woocommerce categoriesThis should now be available in 2.0.1.
Forum: Plugins
In reply to: [A-Z Listing] Adding nordic lettersThe ability to add tags to the widget configuration should be available now, in version 2.0.1.
You will need to use the term
slugs(text) when the widget is configured for displaying “posts” and use the termIDs(numbers) when the widget is configured for displaying “terms”.Separate each term with a comma:
,Forum: Plugins
In reply to: [A-Z Listing] How to use A-z Plugin to filter artist namesYou can now upgrade to version 2.0.1 which should hopefully include the functionality you’re looking for in the widget.
Forum: Plugins
In reply to: [A-Z Listing] Top Buttons issueSorry about that. I’m just rolling a .1 release to fix it – The code is committed I just need to wait for some sanity tests to run and then I’ll get it uploaded to WordPress.org.
The problem is because when I moved some code I forgot to match it with a change to the
requirein the main plugin file (a-z-listing.php) so the plugin didn’t even try to load any styles. :facepalm:The fix will be available shortly.
Forum: Plugins
In reply to: [A-Z Listing] Using the plugin with advanced custom fieldsIt might be possible to do this by adding some PHP code that hooks into the filter called
a_z_listing_item_indices:https://a-z-listing.com/reference/hooks/a_z_listing_item_indices/
The return value needs to be of the format:
return array( $index_letter => array( array( array( 'title' => get_the_title( $post ), 'item' => $post, // the post object as passed into the function 'permalink' => get_the_permalink( $post ), ) ) );Yes there is a double-nested array, allowing for you to add multiple index letters for the same post, or multiple instances under the same index letter.
You’ll need to take the title from the post and perform your custom match to find the correct index letter (last name’s first letter) and use that in your return.