Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] A-Z listing display verticallyWhen using a page-builder plugin you need to ensure you do not put the shortcode into a preformatted text block. You need to put it into a normal content area or a block specifically for shortcodes. You are also likely to find that the styling isn’t applied when you use a page builder because the way the plugin detects when to add styles is based on detecting the shortcode in the page’s post-content. To force the styles to always be loaded you can add this to your theme’s
functions.phpfile:add_action( 'init', 'a_z_listing_force_enable_styles', 99 );Forum: Plugins
In reply to: [A-Z Listing] Not working for posts on a specific categoryHi,
The reason your letter
Уis missing is because you have an empty space afterТт,. Delete the empty space and it should be fixed. The completealphabetshould be (you can copy+paste this):alphabet="Аа,Бб,Вв,Гг,Дд,Ее,Жж,Зз,Ии,Кк,Лл,Мм,Нн,Оо,Пп,Рр,Сс,Тт,Уу,Фф,Хх,Цц,Чч,Шш,Щщ,Ээ,Юю,Яя"With regard to the posts not being visible I’m not sure what the problem is there. Can you check your server for an “error log” – your hosting provider might make this easily accessible via a control panel page – to see if there are any messages that might indicate where I’ve broken it?
Dan.
Forum: Plugins
In reply to: [A-Z Listing] How To Display Large List as Single ColumnHi,
You can force a single list by copying the file at
wp-content/plugins/a-z-listing/templates/a-z-listing.example.phpinto your theme’s folder renaming it toa-z-listing.phpas you go. It’s advisable that you make a child-theme for this so that if/when your theme receives updates you don’t need to redo the override.Forum: Plugins
In reply to: [A-Z Listing] Show just sub-pages@argumentum0 thanks for highlighting the issue with documentation. I’ll try to update the docs for the next version of the plugin to include all the newer parameters. I will also make a note to add some end-user documentation and examples to https://a-z-listing.com/ which currently only has documentation targetted at deverlopers (at https://a-z-listing.com/reference/).
Forum: Plugins
In reply to: [A-Z Listing] Impossible to display posts by categoriesHi,
The shortcode looks correct to me. You can add
display="posts"as an extra parameter to be sure that the listing is for posts which are assigned the termalbumsrather than a taxonomy listing of all the terms in thecategorytaxonomy. If that doesn’t fix it then I’ll need a bit more information: what happens when you load the page which has the shortcode within the content – Some examples of error conditions that can help narrow down the problem:- do you get a white screen of death?
- do you get a partial page with the HTML cut-off before it finishes (theme footer is missing)?
- do you get a full page layout with no listing (theme footer is visible)?
- do you get a page with one or more error messages within?
There might also be some messages that are relevant in your server’s error log file.
Forum: Plugins
In reply to: [A-Z Listing] Show just sub-pagesYes, you can do this with the
parent-postattribute on the shortcode. If your all-conditions page has the post-id of42then you can do:[a-z-listing display="posts" post-type="page" parent-post="42"]This will include all direct children of the page. If you want to include their children as well then you can also add
get-all-children="yes"making your shortcode:[a-z-listing display="posts" post-type="page" parent-post="42" get-all-children="yes"]You can discover the post-id of your parent page by going to its edit page in your site’s admin and find the number in the address bar of your browser. You are looking for the bit that reads
post=42where42is the post-id. For example, if your edit screen for your page has the address below, then your post-id is4321:https://a-z-listing.com/wp-admin/post.php?post=4321&action=editForum: Plugins
In reply to: [A-Z Listing] does this support multiple taxonomies?It isn’t possible currently, but I think I can make it work so expect it very soon. I anticipate that when implemented the shortcode will be similar to:
[a-z-listing display="terms" taxonomy="category,post_tag"]Forum: Developing with WordPress
In reply to: WP Editor to post meta – no paragraph tagswpautopis a filter function that is normally applied bythe_contentfilter to post content. This filter is applied when outputting the content, not before it is saved to the database. To recreate the behaviour when using a post meta field you should call either of these in your theme when displaying the content, not when editing the content:<?php echo apply_filters( 'the_content', get_post_meta( ... ) );Or:
<?php echo wpautop( get_post_meta( ... ) );The first will apply all the filter functions that are associated with
the_contentwhile the second will only apply thewpautopfunction. Either will work, but the first can be both more and less desirable depending on which filter functions are associated withthe_content.For an example of more desirable to use the
the_contentfilter, consider that a hypothetical plugin includes a filter to mark-up telephone numbers so they are clickable in mobile devices and you want that to also mark-up your post meta content.For an example of less desirable to use the
the_contentfilter, consider that you definitely do not want telephone numbers marked-up by that hypothetical plugin.- This reply was modified 7 years ago by Dani Llewellyn. Reason: clarify that the functions should be applied on display, not edit
Forum: Fixing WordPress
In reply to: Syntax Error QuestionThis is a problem with your SalesLoft javascript inclusion.
If you are inserting the javascript via your theme or another PHP-based mechanism, can you share a copy of the code that inserts the javascript into your site’s footer? Without seeing what is generating the output it is difficult to determine what is causing the extra HTML inside the script tags.
Alternatively, if you are inserting the javascript via a plugin can you share the name of the plugin and the configuration you have applied, e.g. the verbatim javascript that you input into an admin screen?
Forum: Fixing WordPress
In reply to: Unsafe statement writtenIf your MySQL database isn’t replicated you should be OK with switching off the binary log. The issue arises because the statement being executed has
ON DUPLICATE KEY UPDATEwhich is unsafe in a replicated environment because MySQL replication isn’t atomic so when the binlog is replayed on a different server there is a chance it could update a subsequently-inserted record that wasn’t there when the original query ran.Forum: Fixing WordPress
In reply to: After Server Migration and Domain Change Email IssuesMake sure that your Plesk installation has included an MTA (Mail Transfer Agent) as part of its setup. The most-common MTA on Debian-based systems such as Ubuntu is Postfix. RedHat-based systems often use Sendmail, I believe. You could probably install one or other of these yourself, but your Plesk system will likely not interact with it unless it is installed by Plesk itself.
Forum: Plugins
In reply to: [A-Z Listing] How to make pagination for posts a-z listing?Pagination is not currently possible. Implementing such will take a lot of effort and won’t necessarily improve performance for large listings.
Forum: Plugins
In reply to: [A-Z Listing] PHP Notice in debug logThanks for letting me know 🙂 I have added a fix for this into my local code so the next version will not emit that message. The good news is that even when it logs that message it shouldn’t affect the operation of the plugin in any way.
Forum: Plugins
In reply to: [A-Z Listing] WordPress Database error In Debug.logNot a problem 🙂 I hope you find the cause of those messages…
Forum: Plugins
In reply to: [A-Z Listing] WordPress Database error In Debug.logI think you’re in the wrong forum 🙂
This forum is for support of the A-Z Listing plugin only. Try posting your request either in the forum for the plugin which is failing (blc?) or in the general WordPress.org support forums.