Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] does this support multiple taxonomies?I forgot to come back to let you know that this feature has now landed in the latest version 🙂
Forum: Plugins
In reply to: [A-Z Listing] Remove Letters at top with shortcode?Like your other question, this can be achieved by copying the file from
wp-content/plugins/a-z-listing/templates/a-z-listing.phpinto your theme and removing the lines that print the alphabet. Specifically you want to remove the following lines:<div id="letters"> <div class="az-letters"> <?php $a_z_query->the_letters(); ?> </div> </div>Forum: Plugins
In reply to: [A-Z Listing] Output additional fields?Hi,
You can customise the output by copying the template file from
wp-content/plugins/a-z-listing/templates/a-z-listing.phpinto your theme or child theme and editing to suit.You will likely want to call
$post = $a_z_listing->get_the_item_object( 'I understand the issues!' )inside the loop and then use the$postobject with something likeget_post_meta( $post->ID ...appropriately for your extra fields.The parameter to
get_the_item_object()must read exactlyI understand the issues!to verify that you understand that the use of this functionality might lead to a slowly loading page.ref:
- https://a-z-listing.com/reference/classes/a_z_listing/get_the_item_object/
- https://developer.wordpress.org/reference/functions/get_post_meta/
- This reply was modified 6 years, 11 months ago by Dani Llewellyn. Reason: explain the `I understand the issues!` parameter and add references
Forum: Plugins
In reply to: [A-Z Listing] Show entries beginning with X letterIt sounds like you’ve been relying on broken code in my plugin. I’ve since “fixed” the breakage and so your assumptions are now conflicting with the way the plugin is working.
The plugin expects to show all selected items in every listing. It cannot anticipate every alphabet around the world so the
alphabetoverride is designed to allow you to specify a different, complete, alphabet. By only including theAcharacter you are restricting the plugin from knowing about any other letter and the plugin is designed to put any item not matching the provided letter into an extra category labelled#. This configuration means that all your items beginning withAare in one category while every other item is in the#category. I suspect this last feature was broken previously and you were relying on the behavior which I’ve since fixed.Forum: Plugins
In reply to: [A-Z Listing] shortcode not displaying postsThis is a simple fix I think. Your category is called
buildernotbuilders. Removing thesshould show your posts, hopefully 🙂Forum: Plugins
In reply to: [A-Z Listing] User specific PostHi,
Can you let me know what you need to alter on a per-user basis so that I may better advise?
There are two ways that you can customise the listing:
- You can alter the parameters which select the included posts/terms via PHP instead of using the shortcode. This can then respond per visitor.
- The output of a particular listing is handled via the template which you can copy into your theme and add some PHP code to change its behaviour per visitor.
- Or you can do both 🙂
Forum: Plugins
In reply to: [A-Z Listing] A-Z block display scrambled when grouped?Hmm, I suspect this is an interaction with your site’s font. I need to do better at sizing these boxes. In the meantime you can add some custom CSS using the theme customizer with code similar to:
.az-letters ul.az-links li, .a-z-listing-widget .az-letters ul.az-links li, .a-z-listing-widget.widget .az-letters ul.az-links li { width: 2em; height: 2em; }Above I’ve put the default values from the plugin, so you will need to change the
width: 2em;to something slightly larger so that it fits. If you want the boxes to remain perfectly square then adjust theheight: 2em;to match the newwidthvalue.Forum: Plugins
In reply to: [A-Z Listing] Show categories as a directory listing, with subcategoriesI’m really sorry to be the bearer of bad news, but I don’t think my plugin can be coerced into showing something similar to your example :-(.
Forum: Plugins
In reply to: [A-Z Listing] Post CountIf you add
hide-empty-terms="yes"to your shortcode then the ones with no posts should be hidden.- This reply was modified 6 years, 12 months ago by Dani Llewellyn. Reason: grammar correction
Forum: Plugins
In reply to: [A-Z Listing] Post CountHi,
Copy the template from
wp-content/plugins/a-z-listing/templates/a-z-listing.phpinto your theme (e.g. copy it towp-content/themes/<your-theme>/a-z-listing.php).Now you can edit the copy in your theme to change line 58 that reads
<?php $a_z_query->the_title(); ?>. You should get suitable results by changing it to:<?php $a_z_query->the_title(); ?> (<?php $a_z_query->the_item_post_count(); ?>)It is worth noting that if your theme is not one that you created yourself (such as one of the default WordPress themes, a theme from WordPress.org, or one from a third-party) then you likely will benefit from creating a child theme so that any updates to the theme aren’t going to cause this situation from happening again.
Forum: Plugins
In reply to: [A-Z Listing] Post CountDid you perhaps previously edit the template without copying it into your theme? If you did, then your edits will be overwritten by the update.
Other than that there should be no reason for the feature to stop working.
Are there any error messages either shown when you load the page or in your server’s error_log? These can help to narrow down the cause if there are any.
Forum: Plugins
In reply to: [A-Z Listing] How to display is AZ in the subpageI’m not sure I understand the issue you’re encountering, as you have not given me much information.
- Have you installed and activated the plugin?
- Have you added an
[a-z-listing]shortcode to any posts or pages? - Is there an error or other problem when you view the page you’ve added the shortcode to?
Forum: Plugins
In reply to: [A-Z Listing] Root categories only, without subcategoriesI haven’t tested this, but you might be able to use the following shortcode:
[a-z-listing display="terms" taxonomy="category" parent-term="0" get-all-children="no"]Forum: Plugins
In reply to: [A-Z Listing] Not working for posts on a specific categoryAha, I think I confused you with the similarity between
display="posts"and showing the post-type ofposts. To show posts instead of pages, because pages is the default, you need to specify an extra parameter. Try this to see if it helps; note the extrapost-typeparameter, which is set to the post-type namepost; the default for thepost-typeparameter when unspecified ispost-type="page":[a-z-listing display="posts" post-type="post" taxonomy="category" terms="praktika" alphabet="Аа,Бб,Вв,Гг,Дд,Ее,Жж,Зз,Ии,Кк,Лл,Мм,Нн,Оо,Пп,Рр,Сс,Тт,Уу,Фф,Хх,Цц,Чч,Шш,Щщ,Ээ,Юю,Яя"]- This reply was modified 7 years ago by Dani Llewellyn. Reason: d'oh. fix the shortcode - missed the shortcode name!
Forum: Plugins
In reply to: [A-Z Listing] Not working for posts on a specific categoryOne possible thing to check is that you are using plain
"symbols on the parameters. Accidentally using so-called typographic quotes will likely break. For example, your paste above includes”, which is a different symbol. While it is likely those are just because of the forum, it’s worth checking to be sure.