Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Single Column List – Is it Possible?Hi,
The easiest way to achieve a single column list is to copy the file from
wp-content/plugins/a-z-listing/templates/a-z-listing.example.phpinto your theme alongside theindex.phpandstyle.cssfiles, e.g.wp-content/themes/your-theme/a-z-listing.php. Make sure you rename it toa-z-listing.phpwhen you copy.Forum: Plugins
In reply to: [A-Z Listing] Tag meta_key/meta_value (custom field)Hi,
The plugin currently cannot query terms by
meta_keyormeta_value. I will add this to my todo list.Hi,
How have you enabled the scroll fix? This is an example piece of javascript that really you should be copying and modifying to suit your site – it is not a “one click” solution.
Forum: Plugins
In reply to: [A-Z Listing] Localization with a-z listingHi,
Sorry I missed your question until now. I have not implemented any special handling for multiple locales on a single site, such as those using wp_multilang. It is therefore quite likely that there are problems. Unfortunately, as the various localisation plugins are usually pay-to-play I cannot check for compatibility.
Forum: Plugins
In reply to: [A-Z Listing] Showing woocommerce brand listingHi, I believe the product brands can be shown with the following shortcode:
[a-z-listing display="terms" taxonomy="pa_brand"]I’ve seen reports that the links to each brand using this method are incorrect, however. I have not been able to investigate yet whether this is a problem that I can fix.
Forum: Plugins
In reply to: [A-Z Listing] a-z listHi,
The shortcode should be placed into any page that you want to show the listing. That means if you want the listing to be shown on each product page then either each product should have the shortcode, or you should add some code to your theme’s product-page templates to call the shortcode. The following PHP illustrates how to call the shortcode within a template:
echo do_shortcode( '[a-z-listing ...options here...]' );Note that the default styles are not applied when you call the shortcode yourself like this, so you also need to add the following to your theme’s
functions.phpfile to force the styles to be included on each page:add_action( 'init', 'a_z_listing_force_enable_styles', 99 );- This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add missing `echo` to shortcode function response
Forum: Plugins
In reply to: [A-Z Listing] A-z List displayHi,
I’m unsure what you’re asking. Can you expand a bit on the issue you are facing, so that I can understand better?
Forum: Plugins
In reply to: [A-Z Listing] Page displays and line wrappingThe lines will wrap when the title is too long for the size of the column. The plugin uses the columnar layout by default, so there is likelihood of wrapping. You can increase the size of the columns by modifying the default CSS; an abridged version with just the attributes that you need to change to suit your site is below:
.letter-section ul.columns { column-gap: 0.6em; column-width: 15em; } .letter-section ul.columns.max-0-columns, .letter-section ul.columns.max-1-columns { max-width: 15.6em; /* 1*column-width + 1*column-gap */ } .letter-section ul.columns.max-2-columns { max-width: 30.6em; /* 2*column-width + 1*column-gap */ } .letter-section ul.columns.max-3-columns { max-width: 46.2em; /* 3*column-width + 2*column-gap */ } .letter-section ul.columns.max-4-columns { max-width: 61.8em; /* 4*column-width + 3*column-gap */ } .letter-section ul.columns.max-5-columns { max-width: 77.4em; /* 5*column-width + 4*column-gap */ } .letter-section ul.columns.max-6-columns { max-width: 93em; /* 6*column-width + 5*column-gap */ } .letter-section ul.columns.max-7-columns { max-width: 108.6em; /* 7*column-width + 6*column-gap */ } .letter-section ul.columns.max-8-columns { max-width: 124.2em; /* 8*column-width + 7*column-gap */ } .letter-section ul.columns.max-9-columns { max-width: 139.8em; /* 9*column-width + 8*column-gap */ } .letter-section ul.columns.max-10-columns { max-width: 155.4em; /* 10*column-width + 9*column-gap */ } .letter-section ul.columns.max-11-columns { max-width: 171em; /* 11*column-width + 10*column-gap */ } .letter-section ul.columns.max-12-columns { max-width: 186.6em; /* 12*column-width + 11*column-gap */ } .letter-section ul.columns.max-13-columns { max-width: 202.2em; /* 13*column-width + 12*column-gap */ } .letter-section ul.columns.max-14-columns { max-width: 217.8em; /* 14*column-width + 13*column-gap */ } .letter-section ul.columns.max-15-columns { max-width: 233.4em; /* 15*column-width + 14*column-gap */ }- This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: fix code block formatting
- This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add missing column-gap attribute to css code
- This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add css comments explaining the calculations
Forum: Plugins
In reply to: [A-Z Listing] Capitalizing/formatting/filtering page tag displaysHi, @mungbean ,
Thanks for bumping; I’m sorry that I missed your post. To ensure that titles are capitalized, you need to hook the
the_titlefilter, which is a default filter provided by WordPress. Something like this might work, which uses the PHP native functionucfirst:add_filter( 'the_title', 'ucfirst' );The links on a taxonomy-term listing (when you have
display="terms") should already take you to the term’s archive page, which is a WordPress feature. The layout of this page is handled by your theme’s templates. E.g. for a tag archive thetag-$slug.php,tag-$id.php,tag.php, orarchive.phpfile handles the display; for any other taxonomy then thetaxonomy-$tax_slug-$term.php,taxonomy-$tax_slug.php,taxonomy.php, orarchive.php. With either, if you don’t have any of those files, the default will fall all the way back to your theme’sindex.phpfile.Forum: Plugins
In reply to: [A-Z Listing] Font size for permalink entries@patrabharati, the WordPress.org forum rules state that you should not join somebody else’s thread with your own issue. Please start your own thread.
Forum: Plugins
In reply to: [A-Z Listing] Index tab verticalThe usual cause of this is the plugin being unable to detect your usage of the shortcode. This can happen if you’re using a page builder to insert the shortcode. To solve, you need to add the following to your theme’s
functions.phpfile:add_action( 'init', 'a_z_listing_force_enable_styles', 99 );Forum: Plugins
In reply to: [A-Z Listing] Show categories AND pages in listThe plugin is unable to combine taxonomy terms and posts in the same list. This is due to underlying WordPress features.
Forum: Plugins
In reply to: [A-Z Listing] sort alphabetically with grammatical accentsHi,
Unfortunately the plugin is currently naive in the way it sorts the titles within each indice (group). It uses the PHP-native sorting functions which see letters with accents as a different character to their base letter. I’ve worked around this for the grouping stage, but still need to fix it for intra-group sorting.
- This reply was modified 4 years, 11 months ago by Dani Llewellyn.
Forum: Plugins
In reply to: [A-Z Listing] Display custom fields after post name@tomsk2121 the forum guidelines for WordPress.org require that you start your own thread instead of jumping into somebody else’s. This prevents thread hijacking. For your problem try replacing:
term_description( '11','post_tag' );with
term_description( $a_z_query->get_the_item_id(), 'post_tag' );alternatively, save the response from
$a_z_query->get_the_item_object()to a variable and use that instead of the ID.Forum: Plugins
In reply to: [A-Z Listing] Display consecutively in 4 columnsYou can layout the page any way you like by writing your own template. The plugin does not do this itself, so you need to write the code. Copy the file from
wp-content/plugins/a-z-listing/templates/a-z-listing.example.phpinto your theme alongside itsstyle.cssfile and rename toa-z-listing.php, e.g.wp-content/themes/twentytwentyone/a-z-listing.php, and modify to suit your design.This is an advanced capability and you need to understand WordPress theming to be able to achieve what you need.