Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] A-Z listing shows all pagesWith version 2.1.0/2.1.1 you can now tell the shortcode to show child pages of a specific page:
[a-z-listing display="posts" post-type="page" parent-post="42"]The value for
parent-postis a Post ID number. See this page for instructions to find a post-id.Forum: Plugins
In reply to: [A-Z Listing] A to Z show pages AND woocommerce productsVersion 2.1.0/2.1.1 is now available for download, which provides this capability. You can now use a shortcode similar to:
[a-z-listing display="posts" post-type="product,page"]Forum: Plugins
In reply to: [A-Z Listing] URGENT! NEW FEATURE NEEDED – A-Z by posts with ThumbnailsVersion 2.1.0/2.1.1 is now available for download.
Forum: Plugins
In reply to: [A-Z Listing] Only showing pages from certain parent pageWith version 2.1.0/2.1.1 you can now tell the shortcode to show child pages of a specific page:
[a-z-listing display="posts" post-type="page" parent-post="42"]The value for
parent-postis a Post ID number. See this page for instructions to find a post-id.Forum: Plugins
In reply to: [A-Z Listing] Displaying Custom FieldsThe new version is out now!
To use the metadata function you can call it like:
<?php echo esc_html( $a_z_query->get_item_meta( 'meta-key-name', true ) );The arguments are:
- Meta key (string)
- Single value (boolean: true or false)
- This reply was modified 7 years, 4 months ago by Dani Llewellyn. Reason: oops. named the variable wrong! should be `a_z_query`; I accidentally wrote `$a_z_listing`
Forum: Plugins
In reply to: [A-Z Listing] Show only pagesSorry about the delay in replying. Unfortunately, you cannot explicitly specify posts to include only those posts in the list. I’ll try to get the feature into 2.2.0, but I’d like to let 2.1.0/2.1.1 settle for a few weeks to allow bugs to surface before releasing another new version.
Forum: Plugins
In reply to: [A-Z Listing] Links to A – Z Listing page not correctly output by widgetHi,
Earlier today I released a new version of the plugin which includes some tweaks and fixes to the widget configuration. Can you try updating to 2.1.1 to see if that fixes the problem?
Once the plugin is updated, please re-configure your widget’s “target post” option by deleting the text in the box and typing the name of your post:
List of Genera. Select the post from the popup menu and deselect the input box before saving – I’m unsure why you need to deselect the box, but it doesn’t save properly without doing so.Forum: Plugins
In reply to: [A-Z Listing] How to display product categoriesI’m not sure I understand your use case enough to say whether my plugin will be suitable.
My plugin provides a widget with the letters of the alphabet as links (
<a>tags). This could be placed into your header if your theme provides a widget area/sidebar in the header area. The links in the widget point to the letter in a specified page in your site provided that the page includes the shortcode.I’m not sure about the “not redirecting them to another page” requirement. The widget points to a page that you specify in its configuration, which will require a page load when the visitor clicks on it unless the visitor is already on the specified page. However, the letters are also outputted as links to the current page as part of the shortcode output; so you don’t need the widget on the listing page itself. When the user clicks on the letters in the listing page they will be moved to the appropriate letter’s list without reloading the page.
I hope this helps, and I’m sorry if I have not understood correctly.
Forum: Plugins
In reply to: [A-Z Listing] Display ProblemHi,
Thanks for the link. It looks like you have put the shortcode inside a pre-formatted block. That wraps a
<pre>tag around the output which throws everything out of whack. The solution is to use the block editor’s “shortcode” block instead of the “preformatted text” block.Forum: Plugins
In reply to: [A-Z Listing] Hebrew AlphabetYes, I anticipated this and provided functionality that allows you to customise the alphabet that is used for the listing.
You can override the alphabet with the shortcode by the
alphabetattribute like this:[a-z-listing ... alphabet="Aaá,Bb,Cc"]The text between the quotes (
") is the alphabet you want to use for the listing. Each letter is separated by a comma (,). You can assign multiple variants of each letter, such as upper and lower case like I have done above. In the example above the lettersA,a, andáare all in one group so that posts beginning with either of those letters are collected within the same part of the listing. The first character of each group is used as the title of the group; in the example above the group titles are the upper-caseA,B, andC.I don’t know how the Hebrew alphabet looks or works but hopefully, as someone who knows the alphabet better, you can use this to form the correct configuration.
Somebody has attempted to add the configuration to the localisation that WordPress provides at https://translate.wordpress.org/projects/wp-plugins/a-z-listing/stable/he/default. They have determined that the configuration for
alphabetshould be:[a-z-listing alphabet="א,ב,ג,ד,ה,ו,ז,ח,ט,י,כ,ל,מ,נ,ס,ע,פ,צ,ק,ר,ש,ת"]Forum: Plugins
In reply to: [A-Z Listing] How to show only post list for clicking by letterHi,
Sorry I missed your message.
Showing a single letter is not a feature that my plugin supports. You can fake it by using javascript, and I have included some example code which can be loaded with the following PHP added to your theme’s
functions.phpfile:add_filter( 'a-z-listing-tabify', __return_true );However, I do not believe that this will automatically show the correct letter when the page loads from a link in the widget on other pages of your site. It might, but I’ve not tested that.
Forum: Plugins
In reply to: [A-Z Listing] About filter on pages and postHi,
To show pages you need:
[a-z-listing display="posts" post-type="page"]You cannot currently restrict which pages appear or not in the listing with the shortcode. Nor can you currently display both posts and pages in the same listing. Both of these features are coming in version 2.1.0 when it is released.
Forum: Plugins
In reply to: [A-Z Listing] Show only pagesHi,
This isn’t possible with the currently released version of the plugin but will be coming in version 2.1.0. Once it’s released you’ll be able to do:
[a-z-listing display="posts" post-type="page" exclude-posts="1,2,3"]Forum: Plugins
In reply to: [A-Z Listing] Elementor compatibility issuesHi,
From the screenshot it looks like the Elementor output has not loaded the CSS that my plugin provides. I suspect this is because of the way that I currently load the CSS when the shortcode is detected in the post content, and I am guessing that Elementor is storing the shortcode definition in it’s own data. I think this can be fixed on my end by detecting when Elementor is embedding the shortcode in addition to the current method that I use.
Thankyou for the message, and even though you’ve managed to find a workaround for now I appreciate you asking about it. Please write again if you would like more assistance or want to alert me to something else 🙂
Forum: Plugins
In reply to: [A-Z Listing] Displaying Custom FieldsFirst, you have
$a_z_query->the_item()twice. It needs to only be used at the very beginning of thewhileloop. Having it twice will load the next post on the list, if there is one, before you have finished outputting the current post.Second, you are using
$a_z_query->get_the_item_object()incorrectly. The first one assigning to$postis correct, the second one assigning to$post2will do nothing.I think once you remove the second
$a_z_query->the_item()the template will start working how you wanted it.