Forum Replies Created

Viewing 15 replies - 391 through 405 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    When 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.php file:

    add_action( 'init', 'a_z_listing_force_enable_styles', 99 );
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The reason your letter У is missing is because you have an empty space after Тт,. Delete the empty space and it should be fixed. The complete alphabet should 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You can force a single list by copying the file at wp-content/plugins/a-z-listing/templates/a-z-listing.example.php into your theme’s folder renaming it to a-z-listing.php as 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    @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/).

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    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 term albums rather than a taxonomy listing of all the terms in the category taxonomy. 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Yes, you can do this with the parent-post attribute on the shortcode. If your all-conditions page has the post-id of 42 then 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=42 where 42 is the post-id. For example, if your edit screen for your page has the address below, then your post-id is 4321:

    https://a-z-listing.com/wp-admin/post.php?post=4321&action=edit
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    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"]
    
    Dani Llewellyn

    (@diddledani)

    wpautop is a filter function that is normally applied by the_content filter 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_content while the second will only apply the wpautop function. Either will work, but the first can be both more and less desirable depending on which filter functions are associated with the_content.

    For an example of more desirable to use the the_content filter, 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_content filter, 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
    Dani Llewellyn

    (@diddledani)

    This 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?

    Dani Llewellyn

    (@diddledani)

    If 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 UPDATE which 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.

    Dani Llewellyn

    (@diddledani)

    Make 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Pagination is not currently possible. Implementing such will take a lot of effort and won’t necessarily improve performance for large listings.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Thanks 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Not a problem 🙂 I hope you find the cause of those messages…

    Plugin Author Dani Llewellyn

    (@diddledani)

    I 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.

Viewing 15 replies - 391 through 405 (of 927 total)