Forum Replies Created

Viewing 15 replies - 211 through 225 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    This is commonly caused when you use a page builder that doesn’t register the usage of the shortcode properly. To fix you can force the styles to be loaded by adding the following line into your theme’s functions.php file:

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

    (@diddledani)

    Hi,

    This is potentially possible, though it will require some hard thinking. 🙂

    You can try adjusting your shortcode to something like this:

    [a-z-listing display="terms" taxonomy="category" parent-term="0" get-all-children="false"]
    

    That will hopefully remove any term that has a parent term from the list. Now you can add those terms that have been removed by copying the file from wp-content/plugins/a-z-listing/templates/a-z-listing.php into your theme and modify lines 53 thru to 60. You will want to replace those lines with something like this to add the child terms:

    while ( $a_z_query->have_items() ) :
    	$a_z_query->the_item();
    	?>
    	<li>
    		<a href="<?php $a_z_query->the_permalink(); ?>">
    			<?php $a_z_query->the_title(); ?>
    		</a>
    		<?php
    		$id = $a_z_query->get_the_item_id();
    		$children = get_terms( 'category', array(
    			'parent' => $id,
    		) );
    		if ( 0 < count( $children ) ) :
    		?>
    			<ul>
    				<?php foreach ( $children as $child_term ) : ?>
    					<li>
    						<a href="<?php echo get_term_link( $child_term ); ?>">
    							<?php echo $child_term->name; ?>
    						</a>
    					</li>
    				<?php endforeach; ?>
    			</ul>
    		<?php endif; ?>
    	</li>
    <?php endwhile; ?>

    Unfortunately this won’t keep the hierarchy beyond the first layer, i.e. grand-child terms will be listed alongside child terms.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    This is most unexpected. The parameter it talks about as being an issue holds the alphabet. Have you specified any customisations to the alphabet?

    As a wild shot in the dark, I am wondering if your PHP installation has the mbstring extension installed and enabled, though I don’t think that would cause this issue.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Perhaps your PHP installation is missing the mbstring extension? If you have the required access to your web host then you should be able to find out whether it is currently enabled or enable it if it isn’t. This is the main reason that people encounter that causes this behaviour.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    It is currently not possible to modify the HTML output of the the_letters function.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You can change the number of columns by adjusting the CSS that drives the layout. This is currently much harder than it should be, and I’ve got improvements coming in a future version. For now, you need to adjust the CSS from what it currently uses to something that limits to two columns (You can add this using the theme customiser’s “custom CSS” feature, or add it directly to your theme):

    .letter-section ul.columns {
        column-gap: 0.6em;
        column-width: 15em;
        line-height: 1.6em;
    }
    .letter-section ul.columns.max-0-columns,
    .letter-section ul.columns.max-1-columns {
          column-count: 1;
          max-width: 15.6em;
    }
    .letter-section ul.columns.max-2-columns,
    .letter-section ul.columns.max-3-columns,
    .letter-section ul.columns.max-4-columns,
    .letter-section ul.columns.max-5-columns,
    .letter-section ul.columns.max-6-columns,
    .letter-section ul.columns.max-7-columns,
    .letter-section ul.columns.max-8-columns,
    .letter-section ul.columns.max-9-columns,
    .letter-section ul.columns.max-10-columns,
    .letter-section ul.columns.max-11-columns,
    .letter-section ul.columns.max-12-columns,
    .letter-section ul.columns.max-13-columns,
    .letter-section ul.columns.max-14-columns,
    .letter-section ul.columns.max-15-columns {
          column-count: 2;
          max-width: 30.6em;
    }
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You cannot currently move the symbols category to the head of the alphabet.

    The list will display more columns when there is room for them, and you have at least 10 items in each letter’s list. You currently do not have any single letter with enough items in your list to overflow onto multiple columns.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi @stormweb,

    Please can you post your question into a new topic per the rules of WordPress.org’s forum guidelines? Many thanks 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Is there a possibility that your posts starting with Ș might include variations on the character/letter that aren’t accounted for in the default alphabet? The “Unicode” character number needs to exactly match, so even if two letters look similar they could be considered by Unicode to be different.

    If you’re sure that they should be the same, try copying the first character/letter from the title of the (a) post that is correctly sorted and paste it into the title of one of the posts that is being treated wrongly and save that post to see if it makes it work. If the post you just edited is now correct then it would seem that you have similar letters that are actually different Unicode letters.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m going to add this idea into my to-do list so that I get it implemented in a future version.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I suspect the issue with double-quotes or apostrophe might be a difference between " and or ' and .

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Your shortcode is correct. I suspect that somewhere in your configuration of the post_tag taxonomy, or the template for displaying the terms’ posts in your theme (e.g. taxonomy-post_tag.php or taxonomy-post_tag-tagname.php), you have it configured to only show posts when you want it to also show pages

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m unsure what might be causing this. The offset in question is the discovered index letter for your item(s). If this is not a valid letter that might be the reason for the error.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The layout of individual items in the list can be tailored by customising the template that comes with the plugin. Copy the file wp-content/plugins/a-z-listing/templates/a-z-listing.example.php into your theme and modify to suit.

    For the restriction of showing a single letter’s items at a time this is not a default behaviour for my plugin. It can be faked by adding the following to your theme’s functions.php file:

    add_filter( 'a_z_listing_tabify', '__return_true' );
    

    Note, however, that this will load all your items on a single page and merely hides the non-active letters. You will not have a separate address/page for each letter.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Do you have any caching mechanisms on your site? e.g. W3TC, or WP-Rocket

Viewing 15 replies - 211 through 225 (of 927 total)