Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Letter Index is not “Horizontal”Hi,
This is commonly caused when you use a page builder that doesn’t register the usage of the shortcode properly. To fix you can force the styles to be loaded by adding the following line into your theme’s
functions.phpfile:add_action( 'init', 'a_z_listing_force_enable_styles' );Forum: Plugins
In reply to: [A-Z Listing] Show subcategories as a dropdownHi,
This is potentially possible, though it will require some hard thinking. 🙂
You can try adjusting your shortcode to something like this:
[a-z-listing display="terms" taxonomy="category" parent-term="0" get-all-children="false"]That will hopefully remove any term that has a parent term from the list. Now you can add those terms that have been removed by copying the file from
wp-content/plugins/a-z-listing/templates/a-z-listing.phpinto your theme and modify lines 53 thru to 60. You will want to replace those lines with something like this to add the child terms:while ( $a_z_query->have_items() ) : $a_z_query->the_item(); ?> <li> <a href="<?php $a_z_query->the_permalink(); ?>"> <?php $a_z_query->the_title(); ?> </a> <?php $id = $a_z_query->get_the_item_id(); $children = get_terms( 'category', array( 'parent' => $id, ) ); if ( 0 < count( $children ) ) : ?> <ul> <?php foreach ( $children as $child_term ) : ?> <li> <a href="<?php echo get_term_link( $child_term ); ?>"> <?php echo $child_term->name; ?> </a> </li> <?php endforeach; ?> </ul> <?php endif; ?> </li> <?php endwhile; ?>Unfortunately this won’t keep the hierarchy beyond the first layer, i.e. grand-child terms will be listed alongside child terms.
Forum: Reviews
In reply to: [A-Z Listing] I’m getting error after upgrade the pluginHi,
This is most unexpected. The parameter it talks about as being an issue holds the alphabet. Have you specified any customisations to the alphabet?
As a wild shot in the dark, I am wondering if your PHP installation has the
mbstringextension installed and enabled, though I don’t think that would cause this issue.Forum: Plugins
In reply to: [A-Z Listing] Persian Language supportPerhaps your PHP installation is missing the
mbstringextension? If you have the required access to your web host then you should be able to find out whether it is currently enabled or enable it if it isn’t. This is the main reason that people encounter that causes this behaviour.Forum: Plugins
In reply to: [A-Z Listing] Modify letters html outputHi,
It is currently not possible to modify the HTML output of the
the_lettersfunction.Forum: Plugins
In reply to: [A-Z Listing] only two columnsHi,
You can change the number of columns by adjusting the CSS that drives the layout. This is currently much harder than it should be, and I’ve got improvements coming in a future version. For now, you need to adjust the CSS from what it currently uses to something that limits to two columns (You can add this using the theme customiser’s “custom CSS” feature, or add it directly to your theme):
.letter-section ul.columns { column-gap: 0.6em; column-width: 15em; line-height: 1.6em; } .letter-section ul.columns.max-0-columns, .letter-section ul.columns.max-1-columns { column-count: 1; max-width: 15.6em; } .letter-section ul.columns.max-2-columns, .letter-section ul.columns.max-3-columns, .letter-section ul.columns.max-4-columns, .letter-section ul.columns.max-5-columns, .letter-section ul.columns.max-6-columns, .letter-section ul.columns.max-7-columns, .letter-section ul.columns.max-8-columns, .letter-section ul.columns.max-9-columns, .letter-section ul.columns.max-10-columns, .letter-section ul.columns.max-11-columns, .letter-section ul.columns.max-12-columns, .letter-section ul.columns.max-13-columns, .letter-section ul.columns.max-14-columns, .letter-section ul.columns.max-15-columns { column-count: 2; max-width: 30.6em; }Forum: Plugins
In reply to: [A-Z Listing] I want to Layout changes with this pluginHi,
You cannot currently move the symbols category to the head of the alphabet.
The list will display more columns when there is room for them, and you have at least 10 items in each letter’s list. You currently do not have any single letter with enough items in your list to overflow onto multiple columns.
Forum: Plugins
In reply to: [A-Z Listing] How to show specific category Woo-commerce ProductsHi @stormweb,
Please can you post your question into a new topic per the rules of WordPress.org’s forum guidelines? Many thanks 🙂
Forum: Plugins
In reply to: [A-Z Listing] Special charactersHi,
Is there a possibility that your posts starting with
Șmight include variations on the character/letter that aren’t accounted for in the default alphabet? The “Unicode” character number needs to exactly match, so even if two letters look similar they could be considered by Unicode to be different.If you’re sure that they should be the same, try copying the first character/letter from the title of the (a) post that is correctly sorted and paste it into the title of one of the posts that is being treated wrongly and save that post to see if it makes it work. If the post you just edited is now correct then it would seem that you have similar letters that are actually different Unicode letters.
Hi,
I’m going to add this idea into my to-do list so that I get it implemented in a future version.
Forum: Plugins
In reply to: [A-Z Listing] Exclude non alphanumeric characters – againI suspect the issue with double-quotes or apostrophe might be a difference between
"and"or'and'.Forum: Plugins
In reply to: [A-Z Listing] Display post tag on listing but link to pages instead of postsHi,
Your shortcode is correct. I suspect that somewhere in your configuration of the
post_tagtaxonomy, or the template for displaying the terms’ posts in your theme (e.g.taxonomy-post_tag.phportaxonomy-post_tag-tagname.php), you have it configured to only showpostswhen you want it to also showpages…Forum: Plugins
In reply to: [A-Z Listing] PHP Warning caused by Indices.phpHi,
I’m unsure what might be causing this. The offset in question is the discovered index letter for your item(s). If this is not a valid letter that might be the reason for the error.
Forum: Plugins
In reply to: [A-Z Listing] Plugin can make like thisHi,
The layout of individual items in the list can be tailored by customising the template that comes with the plugin. Copy the file
wp-content/plugins/a-z-listing/templates/a-z-listing.example.phpinto your theme and modify to suit.For the restriction of showing a single letter’s items at a time this is not a default behaviour for my plugin. It can be faked by adding the following to your theme’s
functions.phpfile:add_filter( 'a_z_listing_tabify', '__return_true' );Note, however, that this will load all your items on a single page and merely hides the non-active letters. You will not have a separate address/page for each letter.
Forum: Plugins
In reply to: [A-Z Listing] Deleted tags remains in the listHi,
Do you have any caching mechanisms on your site? e.g. W3TC, or WP-Rocket