Forum Replies Created

Viewing 15 replies - 376 through 390 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    I forgot to come back to let you know that this feature has now landed in the latest version 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Like your other question, this can be achieved by copying the file from wp-content/plugins/a-z-listing/templates/a-z-listing.php into 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>
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You can customise the output by copying the template file from wp-content/plugins/a-z-listing/templates/a-z-listing.php into 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 $post object with something like get_post_meta( $post->ID ... appropriately for your extra fields.

    The parameter to get_the_item_object() must read exactly I understand the issues! to verify that you understand that the use of this functionality might lead to a slowly loading page.

    ref:

    • This reply was modified 6 years, 11 months ago by Dani Llewellyn. Reason: explain the `I understand the issues!` parameter and add references
    Plugin Author Dani Llewellyn

    (@diddledani)

    It 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 alphabet override is designed to allow you to specify a different, complete, alphabet. By only including the A character 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 with A are 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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    This is a simple fix I think. Your category is called builder not builders. Removing the s should show your posts, hopefully 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    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 🙂
    Plugin Author Dani Llewellyn

    (@diddledani)

    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 the height: 2em; to match the new width value.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’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 Count
    Plugin Author Dani Llewellyn

    (@diddledani)

    If 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 Count
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Copy the template from wp-content/plugins/a-z-listing/templates/a-z-listing.php into your theme (e.g. copy it to wp-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 Count
    Plugin Author Dani Llewellyn

    (@diddledani)

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

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’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?
    Plugin Author Dani Llewellyn

    (@diddledani)

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

    (@diddledani)

    Aha, I think I confused you with the similarity between display="posts" and showing the post-type of posts. 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 extra post-type parameter, which is set to the post-type name post; the default for the post-type parameter when unspecified is post-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!
    Plugin Author Dani Llewellyn

    (@diddledani)

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

Viewing 15 replies - 376 through 390 (of 927 total)