Forum Replies Created

Viewing 15 replies - 76 through 90 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The easiest way to achieve a single column list is to copy the file from wp-content/plugins/a-z-listing/templates/a-z-listing.example.php into your theme alongside the index.php and style.css files, e.g. wp-content/themes/your-theme/a-z-listing.php. Make sure you rename it to a-z-listing.php when you copy.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The plugin currently cannot query terms by meta_key or meta_value. I will add this to my todo list.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    How have you enabled the scroll fix? This is an example piece of javascript that really you should be copying and modifying to suit your site – it is not a “one click” solution.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Sorry I missed your question until now. I have not implemented any special handling for multiple locales on a single site, such as those using wp_multilang. It is therefore quite likely that there are problems. Unfortunately, as the various localisation plugins are usually pay-to-play I cannot check for compatibility.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi, I believe the product brands can be shown with the following shortcode:

    [a-z-listing display="terms" taxonomy="pa_brand"]
    

    I’ve seen reports that the links to each brand using this method are incorrect, however. I have not been able to investigate yet whether this is a problem that I can fix.

    Forum: Plugins
    In reply to: [A-Z Listing] a-z list
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    The shortcode should be placed into any page that you want to show the listing. That means if you want the listing to be shown on each product page then either each product should have the shortcode, or you should add some code to your theme’s product-page templates to call the shortcode. The following PHP illustrates how to call the shortcode within a template:

    echo do_shortcode( '[a-z-listing ...options here...]' );
    

    Note that the default styles are not applied when you call the shortcode yourself like this, so you also need to add the following to your theme’s functions.php file to force the styles to be included on each page:

    add_action( 'init', 'a_z_listing_force_enable_styles', 99 );
    
    • This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add missing `echo` to shortcode function response
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m unsure what you’re asking. Can you expand a bit on the issue you are facing, so that I can understand better?

    Plugin Author Dani Llewellyn

    (@diddledani)

    The lines will wrap when the title is too long for the size of the column. The plugin uses the columnar layout by default, so there is likelihood of wrapping. You can increase the size of the columns by modifying the default CSS; an abridged version with just the attributes that you need to change to suit your site is below:

    .letter-section ul.columns {
          column-gap: 0.6em;
          column-width: 15em;
    }
    .letter-section ul.columns.max-0-columns,
    .letter-section ul.columns.max-1-columns {
          max-width: 15.6em; /* 1*column-width + 1*column-gap */
    }
    .letter-section ul.columns.max-2-columns {
          max-width: 30.6em; /* 2*column-width + 1*column-gap */
    }
    .letter-section ul.columns.max-3-columns {
          max-width: 46.2em; /* 3*column-width + 2*column-gap */
    }
    .letter-section ul.columns.max-4-columns {
          max-width: 61.8em; /* 4*column-width + 3*column-gap */
    }
    .letter-section ul.columns.max-5-columns {
          max-width: 77.4em; /* 5*column-width + 4*column-gap */
    }
    .letter-section ul.columns.max-6-columns {
          max-width: 93em; /* 6*column-width + 5*column-gap */
    }
    .letter-section ul.columns.max-7-columns {
          max-width: 108.6em; /* 7*column-width + 6*column-gap */
    }
    .letter-section ul.columns.max-8-columns {
          max-width: 124.2em; /* 8*column-width + 7*column-gap */
    }
    .letter-section ul.columns.max-9-columns {
          max-width: 139.8em; /* 9*column-width + 8*column-gap */
    }
    .letter-section ul.columns.max-10-columns {
          max-width: 155.4em; /* 10*column-width + 9*column-gap */
    }
    .letter-section ul.columns.max-11-columns {
          max-width: 171em; /* 11*column-width + 10*column-gap */
    }
    .letter-section ul.columns.max-12-columns {
          max-width: 186.6em; /* 12*column-width + 11*column-gap */
    }
    .letter-section ul.columns.max-13-columns {
          max-width: 202.2em; /* 13*column-width + 12*column-gap */
    }
    .letter-section ul.columns.max-14-columns {
          max-width: 217.8em; /* 14*column-width + 13*column-gap */
    }
    .letter-section ul.columns.max-15-columns {
          max-width: 233.4em; /* 15*column-width + 14*column-gap */
    }
    • This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: fix code block formatting
    • This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add missing column-gap attribute to css code
    • This reply was modified 4 years, 10 months ago by Dani Llewellyn. Reason: add css comments explaining the calculations
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi, @mungbean ,

    Thanks for bumping; I’m sorry that I missed your post. To ensure that titles are capitalized, you need to hook the the_title filter, which is a default filter provided by WordPress. Something like this might work, which uses the PHP native function ucfirst:

    add_filter( 'the_title', 'ucfirst' );
    

    The links on a taxonomy-term listing (when you have display="terms") should already take you to the term’s archive page, which is a WordPress feature. The layout of this page is handled by your theme’s templates. E.g. for a tag archive the tag-$slug.php, tag-$id.php, tag.php, or archive.php file handles the display; for any other taxonomy then the taxonomy-$tax_slug-$term.php, taxonomy-$tax_slug.php, taxonomy.php, or archive.php. With either, if you don’t have any of those files, the default will fall all the way back to your theme’s index.php file.

    Plugin Author Dani Llewellyn

    (@diddledani)

    @patrabharati, the WordPress.org forum rules state that you should not join somebody else’s thread with your own issue. Please start your own thread.

    Plugin Author Dani Llewellyn

    (@diddledani)

    The usual cause of this is the plugin being unable to detect your usage of the shortcode. This can happen if you’re using a page builder to insert the shortcode. To solve, you need to add the following to your theme’s functions.php file:

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

    (@diddledani)

    The plugin is unable to combine taxonomy terms and posts in the same list. This is due to underlying WordPress features.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Unfortunately the plugin is currently naive in the way it sorts the titles within each indice (group). It uses the PHP-native sorting functions which see letters with accents as a different character to their base letter. I’ve worked around this for the grouping stage, but still need to fix it for intra-group sorting.

    Plugin Author Dani Llewellyn

    (@diddledani)

    @tomsk2121 the forum guidelines for WordPress.org require that you start your own thread instead of jumping into somebody else’s. This prevents thread hijacking. For your problem try replacing:

    term_description( '11','post_tag' );
    

    with

    term_description( $a_z_query->get_the_item_id(), 'post_tag' );
    

    alternatively, save the response from $a_z_query->get_the_item_object() to a variable and use that instead of the ID.

    Plugin Author Dani Llewellyn

    (@diddledani)

    You can layout the page any way you like by writing your own template. The plugin does not do this itself, so you need to write the code. Copy the file from wp-content/plugins/a-z-listing/templates/a-z-listing.example.php into your theme alongside its style.css file and rename to a-z-listing.php, e.g. wp-content/themes/twentytwentyone/a-z-listing.php, and modify to suit your design.

    This is an advanced capability and you need to understand WordPress theming to be able to achieve what you need.

Viewing 15 replies - 76 through 90 (of 927 total)