• I wanted to reorganize my alphabetical list at the top so the any special characters come first before the alphabet so I used the shortcode:

    [a-z-listing display="posts" post-type="post" alphabet="#,Aa,Bb,Cc,Dd,Ee,Ff,Gg,Hh,Ii,Jj,Kk,Ll,Mm,Nn,Oo,Pp,Qq,Rr,Ss,Tt,Uu,Vv,Ww,Xx,Yy,Zz"]

    which works great, except for the fact that when it’s showing up on the page the alphabet (not in the actual list itself) has # repeated twice. Once in the beginning before A (like I wanted) and once at the end after Z.

    Any way I can remove the second #?

Viewing 1 replies (of 1 total)
  • Scott

    (@scottwblack)

    I simply replaced 0-9 with # in a-z-listing/src/Numbers.php.

    	public function title( $letter ) {
    		if ( '0' === $letter && true === $this->group ) {
    			return '#';
    		}
    		return $letter;
    	}
    }

    And used the shortcode [a-z-listing display="posts" post-type="post" numbers="before" group-numbers="yes"]. Works fine.

    Now if I could just get it to ignore articles like a, an and the.

    • This reply was modified 4 years, 1 month ago by Scott.
    • This reply was modified 4 years, 1 month ago by Scott.
Viewing 1 replies (of 1 total)
  • The topic ‘# showing up twice in alphabetical list’ is closed to new replies.