-
Notifications
You must be signed in to change notification settings - Fork 0
FAQs
No. AlphaListing displays each post, page, or term once based on the first character of its title. Duplicating entries under multiple headings is not supported.
When using page builders such as WPBakery or Elementor, insert the shortcode inside a regular text block. Placing it inside a preformatted block wraps the output in <pre> tags, which breaks the layout.
Each letter heading needs at least 11 items before the layout adds a second column. At 11 items the list becomes two columns (6 items in the first column and 5 in the second). AlphaListing adds a third column at 21 items if space permits and continues balancing content up to 15 columns where practical.
Replace the placeholders with your actual post-type slugs.
- Single post type:
[alphalisting post-type="post-type-slug"]
- Multiple post types:
[alphalisting post-type="type1-slug,type2-slug"]
Add the snippets to a theme file.
- Single post type:
<?php
the_alphalisting( array(
'post_type' => 'post-type-slug',
) );
?>- Multiple post types:
<?php
the_alphalisting( array(
'post_type' => array( 'type1-slug', 'type2-slug' ),
) );
?>The function accepts the same arguments as WP_Query. Place the code inside PHP blocks and omit the opening/closing tags if the surrounding template is already in PHP mode.
Use either the shortcode or PHP.
- Single term:
[alphalisting taxonomy="taxonomy-slug" terms="term-slug"]
- Multiple terms:
[alphalisting taxonomy="taxonomy-slug" terms="term1-slug,term2-slug"]
<?php
the_alphalisting( array(
'tax_query' => array(
'taxonomy' => 'taxonomy-slug',
'field' => 'slug',
'terms' => array( 'term1-slug', 'term2-slug' ),
),
) );
?>Specify the taxonomy slug and switch the display mode to terms.
[alphalisting taxonomy="taxonomy-slug" display="terms"]
<?php
the_alphalisting( 'taxonomy-slug' );
?>Add the following to the theme's functions.php file:
<?php
add_filter( 'alphalisting-sections', '__return_empty_array' );
?>To restrict the sections, adjust the returned array so it only includes the desired entries. Insert the code immediately after the first <?php if the file already contains PHP code.
Yes. Enqueue the styles manually by adding this snippet to functions.php:
<?php
add_action( 'init', 'alphalisting_force_enable_styles', 99 );
?>To limit the override to a specific page, wrap the helper in a conditional check:
<?php
add_action( 'init', 'custom_override_wrapper_function', 99 );
function custom_override_wrapper_function() {
if ( ! is_page( 'custom-alphalisting-page-slug-or-ID' ) ) {
return;
}
alphalisting_force_enable_styles();
}
?>Return false from the styling filter:
<?php
add_filter( 'alphalisting-add-styling', '__return_false' );
?>Enable tabbed output by returning true from the filter:
<?php
add_filter( 'alphalisting-tabify', '__return_true' );
?>