Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Multiple categories won’t showI’ve not managed to get the first issue fixed just yet. I’ve been working on a major update which will land in the future and forgot about this issue. Thanks for reminding me – I’ll try to get it fixed today.
Forum: Plugins
In reply to: [A-Z Listing] Index Display on Chrome and Home PageHi Staci,
For the first problem it looks like I wrote dodgy stylesheet code 🙂 I should not have forced a fixed width and height in an attempt to get square boxes, but should have let them auto-size. The following CSS should fix it in Chrome for now, until I put-out a release that includes the same changes (note that on modern browsers this will mean slightly rectangular, rather than exactly square, boxes):
.az-letters ul.az-links li { // You may modify these to support older browsers. The values here are the same // as those in the plugin. For your particular font it appears that 2.2em will // work, but you might want to make it slightly larger to account for variances // in browser engine, which can change the way fonts are rendered slightly // between different vendors. width: 2em; height: 2em; } // These styles below shouldn't need modification. They're what I'm going to // include in the plugin in a future release. @supports(display: grid) { .az-letters ul.az-links { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; grid-gap: 0.2em; } .az-letters ul.az-links li { width: 0; height: 0; margin: 0; padding: 0.1em 0.2em; } }For the second issue I think this is due to my attempt at limiting the CSS to pages where the shortcode is present or the widget is active on the site. This would explain why adding/removing the widget is causing the change in behaviour. The good news is I anticipated such things, and so you can add into your theme or child-theme’s
functions.phpfile a snippet of code to force the stylesheet to be included:<?php /* If the file is already in your theme then the line above is probably already there. It tells the server where PHP code is to separate it from HTML (you probably know this already, but for completeness sake I've mentioned it :-) */ add_action( 'init', 'a_z_listing_force_enable_styles', 99 );- This reply was modified 8 years, 1 month ago by Dani Llewellyn. Reason: add some more commentary
- This reply was modified 8 years, 1 month ago by Dani Llewellyn. Reason: slightly tweaked padding on css
Forum: Plugins
In reply to: [A-Z Listing] No output from multiple terms in an array.I’m glad you got running 🙂
I’ll mark this topic as resolved for now, but please come back if I can help further…
Forum: Plugins
In reply to: [A-Z Listing] Design A-Z list.I’m marking this as resolved, but please come back if you need further help.
Forum: Plugins
In reply to: [A-Z Listing] No output from multiple terms in an array.There shouldn’t be any conflict, but anything’s possible.
Could you share the full code of your usage of
the_a_z_listing()where it doesn’t work, including the full$argsarray you’re using?This is a particularly odd issue, because underneath the plugin uses
WP_Queryto do the fetching of the posts, so if the same array works in aWP_Querycall then it should work as-is with this plugin.Forum: Plugins
In reply to: [A-Z Listing] Link spacing offThat’s being caused because you have javascript which is removing the header from the document upon scrolling (
display: none;), which is confusing the viewer’s browser causing it to jump-upwards. You can possibly fix it by changing some CSS, but it looks like javascript (fusion?) is making a birds’-nest of styles, and I can’t figure out anything sane.Forum: Plugins
In reply to: [A-Z Listing] Show only Subcategories from a parent categoryYou cannot show only partial taxonomy term listings, which is implied by including only terms that are children of another term. Often you will find that the children terms can be split-out into an extra taxonomy which will allow you to display those terms directly without issues trying to extract them from a larger list by parent-term.
Forum: Plugins
In reply to: [A-Z Listing] Substituting alphabet and Tags as listingHi,
To change the alphabet you can use the
alphabet="Aa,Bb,Cc....."parameter. It is a list of lists. Each letter group is separated by commas,. Each letter group needs to include all the characters you want collected together, soAahere causes all titles beginning withAandato be in the same group. The title of each group is the first character, soAawill be titledA. There is no limit on the number of characters in each letter group, and there is no limit on the number of groups. There is no requirement for each group to include the same quantity of characters as the others.<?php the_a_z_listing( array( 'tax_query' => array( 'taxonomy' => 'category', //as is 'field' => 'slug', // literally the word "slug" 'terms' => array( 'term1-slug', 'term2-slug' ) // a list of term slugs when 'field', above, is set to "slug"; // if 'field' above is set to "term_id", or omitted, then this uses term ID numbers. ) ) ); ?>Reference for
tax_query: https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_ParametersForum: Plugins
In reply to: [A-Z Listing] Showing terms from a specific categoryYou cannot show only partial taxonomy term listings, which is implied by including only terms that are children of another term. Often you will find that the children terms can be split-out into an extra taxonomy which will allow you to display those terms directly without issues trying to extract them from a larger list by parent-term.
Forum: Plugins
In reply to: [A-Z Listing] Broken design after upgradeI’m marking this as resolved, but please come back if you still need help.
Forum: Plugins
In reply to: [A-Z Listing] Show Only Pages from a single Parent PageHi,
This is doable in two ways:
1: you can use the PHP method by including
the_a_z_listing()in a template with aget_pages()parameter array being sure to includechild_ofparameter. ref: https://codex.wordpress.org/Function_Reference/get_pages (the presence ofchild_ofin the parameter array switches the plugin from usingWP_Queryto usingget_pagesto support parent-child relationships.)2: you could use the in-built functionality for the listing to display children of the (only top-level) parent page of the listing-page. The concept is that you have a top-level page on your site, lets call it “Alice”. Alice has children Bob and Eve which are the pages you want to appear in the listing. You add alongside Bob and Eve a page with the short-code so that Alice now has children Bob, Eve, and A-Z. The plugin will crawl up to Alice and use that page as the parent in the listing so that the listing will display the three children Bob, Eve, and A-Z.
The PHP method is easier to understand in my opinion 🙂
Forum: Plugins
In reply to: [A-Z Listing] List shows veritcally ?!?I’m marking this as resolved, but please come back if you still need help.
Forum: Plugins
In reply to: [A-Z Listing] Insert symbol in listingI’m marking this as resolved, but please come back if you still need help.
Forum: Plugins
In reply to: [A-Z Listing] Display List of Blog Posts From One CategoryI’m marking this as resolved, but please come back if you still need help.