• Hi!
    Can I add here substituting alphabet?
    <?php echo do_shortcode(‘[a-z-listing post-type=”post” taxonomy=”category” terms=”lawyer”]’); ?>

    Can I use tags to show? it’s taxonomy=post_tag by default.

    Can you please replace vars in this code:
    <?php
    the_a_z_listing( array(
    ‘tax_query’ => array(
    ‘taxonomy’ => ‘category’, //as is
    ‘field’ => ‘slug’, //what is it? subcategory slug?
    ‘terms’ => array( ‘term1-slug’, ‘term2-slug’ ) // a list of subcategories of posts?
    )
    ) );
    ?>

    Is it possible to place here in <?php substituting alphabet?

    Thank you very much!
    Great plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    To change the alphabet you can use the alphabet="Aa,Bb,Cc....." parameter. It is a list of lists. Each letter group is separated by commas ,. Each letter group needs to include all the characters you want collected together, so Aa here causes all titles beginning with A and a to be in the same group. The title of each group is the first character, so Aa will be titled A. There is no limit on the number of characters in each letter group, and there is no limit on the number of groups. There is no requirement for each group to include the same quantity of characters as the others.

    <?php
    the_a_z_listing( array(
        'tax_query' => array(
            'taxonomy' => 'category', //as is
            'field' => 'slug', // literally the word "slug"
            'terms' => array( 'term1-slug', 'term2-slug' )
              // a list of term slugs when 'field', above, is set to "slug";
              // if 'field' above is set to "term_id", or omitted, then this uses term ID numbers.
    )
    ) );
    ?>
    

    Reference for tax_query: https://codex.www.ads-software.com/Class_Reference/WP_Query#Taxonomy_Parameters

Viewing 1 replies (of 1 total)
  • The topic ‘Substituting alphabet and Tags as listing’ is closed to new replies.