Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Update 3.1.0 not working with WP 5.2.2As a quick diagnostic, can you edit the post with the shortcode that isn’t currently working and replace the shortcode with arbitrary text and save. If the page doesn’t show up even when the shortcode is removed then there is likely something more at play..
Forum: Plugins
In reply to: [A-Z Listing] How do I combine to show all categories, Pages and Tags?Hi,
You can only show terms or posts. Unfortunately you cannot combine to show terms and posts in the same listing. This is a limitation with the underlying WordPress functionality that the plugin sits atop.
Forum: Plugins
In reply to: [A-Z Listing] Question about Footer A-Z BLOCK?Hi,
The alphabet can be shown separately using either the shortcode with a special hidden parameter, or by using the widget you can find at:
wp-admin -> appearance -> widgetsThe hidden parameter to the shortcode can be used like:
[a-z-listing display="posts" post-type="page" return="letters"](The parameter you want is the
return="letters")Forum: Plugins
In reply to: [A-Z Listing] Change # To TopHi,
Sorry it took me so long to get to this.
The
#entry is currently hard-coded to always be last in the list. I’m sorry to report that you can’t change this with the plugin as it is right now. I will try to get the ability to move the#entry in the next update.Forum: Plugins
In reply to: [A-Z Listing] Don’t Include “the” or “A” when alphabetizingSorry I missed this request for help. If you are adept at writing WordPress PHP filters then you can hook into the
a_z_listing_item_index_letterfilter. The passed parameters are documented at https://a-z-listing.com/reference/hooks/a_z_listing_item_index_letter-2/. You can use the second parameter$itemto access$item->post_titleand return the correct index letter for the item according to your own rules.Forum: Plugins
In reply to: [A-Z Listing] Error 500 on loadingHi,
I don’t have a solution right now, but resolving the memory and time limits are my main priority. It’s a difficult problem to solve while not breaking the plugin for people that have customised things.
Forum: Plugins
In reply to: [A-Z Listing] Shortcode show post under category does not workI’m glad you found the fix 🙂
Forum: Plugins
In reply to: [A-Z Listing] Update 3.1.0 not working with WP 5.2.2Can you try temporarily turning on
WP_DEBUGandWP_DEBUG_LOG(https://wordpress.org/support/article/debugging-in-wordpress/) and reproduce the issue before turning it off again to see if there’s anything that is being sneaky and hiding from the logs by default?Please make sure you don’t leave it turned-on for your publicly accessible website, because it could leak information that may help someone with nefarious ideas, so it’s best to be safe
Forum: Plugins
In reply to: [A-Z Listing] Bug when displaying A-Z with custom post types@igralkin I’m not sure what’s happening in your case, so I’ll try to reproduce it locally and get back to you 🙂
Forum: Plugins
In reply to: [A-Z Listing] Update 3.1.0 not working with WP 5.2.2Thanks for pulling this into a separate thread 🙂
There might be some information in your server’s error_log file that could indicate what the issue is. You’re right that it’s really strange to work in preview but then fail once published. Hopefully we can find the problem together…
Forum: Plugins
In reply to: [A-Z Listing] Bug when displaying A-Z with custom post types@rafaelreyeros Can you start a new thread for your problem, because I don’t think it’s related to this issue.
Forum: Plugins
In reply to: [A-Z Listing] A-Z variationHi,
The layout is possible, but restricting the page to a single letter’s items is not possible. You can try adding the following code to your theme’s
functions.phpfile which will simulate paging using javascript:add_filter( 'a-z-listing-tabify', '__return_true' );If you are not using the shortcode or the plugin still does not load the javascript you can change it to:
add_action( 'wp_enqueue_scripts', 'a_z_listing_force_enqueue_tabs' );This second variant will load the javascript on every page – the first variant tries to limit only to pages where the shortcode has been used.
- This reply was modified 6 years, 8 months ago by Dani Llewellyn. Reason: use filter instead of init action
Forum: Plugins
In reply to: [A-Z Listing] How to add thumbnail on the list?Hi,
To show the thumbnail you need to modify the template that the plugin uses. Copy the file at
wp-content/plugins/a-z-listing/templates/a-z-listing.phpinto your theme’s folder and modify as follows:Add a new line beneath line 54 with:
$post = $a_z_query->get_the_item_object();Then inside the
<li>on line 56 thru 60 add (probably on line 58 as part of the link):<?php echo get_the_post_thumbnail( $post, 'post-thumbnail', '' ); ?>The second item on the function call which is set to
post-thumbnailabove needs to be an image size that is provided by your theme. See the get_the_post_thumbnail() documentation on WordPress.org for information on using the function, which is part of WordPress.Forum: Plugins
In reply to: [A-Z Listing] Anchors Only on HeaderHi,
If your header has an area for widgets then you can add the one provided by the A-Z Listing plugin by going to appearance->widgets or appearance->customize->widgets within your admin area.
Alternatively, if you are able to use the shortcode you can add the internal/secret code
return="letters"to only output the letters. Using this method will link the letters to the “current” page, so you will likely also need to addtarget="https://example.com/your-listing-page"if you want them to link to a different page.Forum: Plugins
In reply to: [A-Z Listing] Show Custom Taxonomy FieldsHi,
Try adding
$a_z_query->get_the_item_object()as below. This will force the plugin to load the full post object from the database. By default a very minimal amount of information is pulled to improve speed and memory usage:<?php // snipped for brevity while ( $a_z_query->have_letters() ) : $a_z_query->the_letter(); // snipped for brevity while ( $a_z_query->have_items() ) : $a_z_query->the_item(); $post = $a_z_query->get_the_item_object(); echo get_the_category_list( ', ', '', $post->ID ); // snipped for brevity endwhile; // snipped for brevity endwhile; // snipped for brevity