Forum Replies Created

Viewing 15 replies - 466 through 480 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Your shortcode is slightly off from the correct format. display can either be posts or terms, so page is incorrect. You might find fixing that with the code below will get you working properly with the latest version:

    [a-z-listing display="posts" post-type="page" taxonomy="post_tag" terms="mv"]
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You should be able to use a shortcode like:

    [a-z-listing display="posts" post-type="post" taxonomy="category" terms="xxx"]
    

    I am guessing your term isn’t named “XXX”, so you will need to replace the slug xxx with the slug(s) of your categories separated by commas: ,. To use a different taxonomy (i.e. a taxonomy that is not categories) you will need to change the slug category to the slug of your taxonomy. I’ve assumed you want to show the post-type of Posts; if you want to show pages you can change post-type="post" to post-type="page".

    Plugin Author Dani Llewellyn

    (@diddledani)

    Ooh, it looks like you found a nice bug 🙂

    I’ll try to get an update out to fix this soon. Although I want to write a test case to check for correctness and that I don’t break it in the future, first, so it might be in the next day or so.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi, as your site is new I expect the post types you have available are post and page. To show both you want to use the following shortcode:

    [a-z-listing display="posts" post-type="page,post"]
    

    To show only pages you can use:

    [a-z-listing display="posts" post-type="page"]
    

    And to show only posts then:

    [a-z-listing display="posts" post-type="post"]
    

    Note that the display="posts" is not strictly necessary as this is the default, so you can omit that to leave you with:

    [a-z-listing post-type="page,post"]
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    curious. I’m not sure how that got broken. I think it was from an automated code formatting I applied to the code that has gone awry. Thanks for your effort in finding the issue and letting me know about it, and I’m sorry I broke it… 🙂

    I’ll roll a fix asap. Sometime this evening I’ll get version 2.1.2 out to fix this. (UK time)

    Plugin Author Dani Llewellyn

    (@diddledani)

    You can use either exclude-posts="1,2,3" or exclude-terms="term-to-exclude,another-term" in the shortcode, which requires version 2.1.0 or 2.1.1 of the plugin:

    [a-z-listing display="posts" post-type="product,page" exclude-posts="42"]
    

    or

    [a-z-listing display="posts" post-type="product,page" exclude-terms="no-a-z"]
    

    You could even combine them:

    [a-z-listing display="posts" post-type="product,page" exclude-posts="42" exclude-terms="no-a-z"]
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    First thing is to ensure you’re running the latest version of the plugin. It looks like you’re running an older release and the more recent version might have fixed the issue.

    I haven’t seen this problem myself, but will try to do some testing later this evening (UK time) to see if I can replicate it on the most-recent version.

    Sorry about the delay replying 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    The plugin will use the # symbol for any post that doesn’t begin with a letter defined in the alphabet that the plugin is using. If your posts begin with an A then they should be in the A group. If your posts begin with an accented A that I haven’t anticipated then they will be shuffled into #. (I’ve anticipated the common European accents such as Á, and à. All the letters the plugin defaults to using are below, though some localisations might have overridden this via glotpress:

    AÁÀÄÂaáàäâ,Bb,Cc,Dd,EÉÈËÊeéèëê,Ff,Gg,Hh,IÍÌÏÎiíìïî,Jj,Kk,Ll,Mm,Nn,OÓÒÖÔoóòöô,Pp,Qq,Rr,Ssß,Tt,UÚÙÜÛuúùüû,Vv,Ww,Xx,Yy,Zz

    The glotpress translations are automatically installed by WordPress. You can see their status or contribute at https://translate.wordpress.org/projects/wp-plugins/a-z-listing

    The first thing to check for an easy win if it works is whether the mbstring PHP extension is enabled on your server, enabling it if it isn’t currently enabled. I’ve tried to work around cases where mbstring isn’t present, but the fallback code might not work correctly – I still need to find a way to test that reliably and easily…

    Plugin Author Dani Llewellyn

    (@diddledani)

    You need more posts in the list for it to overflow into a second, and third… column. The plugin ensures that you have “several” posts in the first column before breaking to a second and third column so that you don’t end up with, for example, three columns each with one item.

    Plugin Author Dani Llewellyn

    (@diddledani)

    While my plugin can be used to create such a feature it will require custom development to implement it.

    Getting the plugin to output into the header will likely need you to edit the header.php file in your theme to add either a do_shortcode() call or an the_a_z_listing() call.
    You will need to write the supporting javascript for the reveal when your visitors hover their mouse over the letters. You might also need to copy the template from the plugin into your theme and edit it accordingly to support the concept.

    Plugin Author Dani Llewellyn

    (@diddledani)

    The plugin comes with a widget for the letters out-of-the-box. You need to configure it separately from the shortcode. Configure the widget and the shortcode with the same settings and the letters will match-up.

    I suspect that it only runs once because you are setting a constant to a value and then trying to overwrite it on subsequent clicks.

    Move the function outside of the click handler into a separate file or embedded into the page along with the rest of your javascript imports. Then reduce the click handler to a simple call of the function instead of recreating the function on every click.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Version 2.1.0/2.1.1 is now available, which supports specifying multiple post-types. The shortcode should look similar to:

    [a-z-listing display="posts" post-type="post,page"]
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Version 2.1.0/2.1.1 is now available which includes the exclude-terms feature.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Sorry it took me so long. The new version is now available – you want version 2.1.0 or 2.1.1.

Viewing 15 replies - 466 through 480 (of 927 total)