
olly343434 described an issue: I can get it to show the alphabet navigation, and it works fine when I click on a letter with multiple results, but when a letter only has one result the navigation disappears. Is there a fix for this?
Also the pagination seems to merge with the first post on the list. I would ideally like it seperate. Do you have an idea on this?
My site was at kubetest.kube.co.uk
Thank you.
https://wordpress.org/plugins/alphabetic-pagination
Fahad replied: Your site was not displaying the pagination or relevant page, can you please re-check it?
olly343434 said: It was displaying on the following page: kubetest.kube.co.uk/display-posts
Fahad told: I got it, in fact last time this functionality was demanded by a user that if there was only one post so there shouldn’t be pagination appearance anymore. What I can do is; I will give this option in settings page that display pagination all times or hide when there was only 1 record. The second thing was a little ambiguous, please explain it that how first post was merging with the pagination? I am not sure but you might be talking about its layout?
olly343434 said: Fahad, Thank you. That would be a good solution. Please let me know when this option will be available.
For the second problem, when I do ‘inspect element’ in chrome developer tools, it shows that the alphabet navigation was INSIDE the first post item. I would prefer it to be outside the in its own div. Hope that makes sense.
Fahad suggested: I think this issue can be resolved by changing “DOM Position” field “#ID” of div. Try to play in settings area with DOM Position field. Make sure that you were giving a div #ID there in which pagination will be populated.
olly343434 replied: I then have tried to set it to custom rather than auto and it stopped working altogether. kubetest.kube.co.uk/display-posts
This was my index.php file in the child theme (I included a div with the id #ap-spot and specified this in the DOM position:
<?php get_header(); ?>
<section id=”content” role=”main”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘entry’ ); ?>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
<?php get_template_part( ‘nav’, ‘below’ ); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Fahad said: Please use “Auto” and then try to change DOM position according to your div/span/p etc. based selectors.
I have given an option to
“ Hellode/Show pagination if only one post available?” in release 1.3.0. It was just for testing purpose. Please check it that how does it facilitate you? Then i will push it as latest release.
Oliver replied: Thank you very much for that.
That serves my purposes very well.
Fahad said: Great! Keep giving your reviews so it will help me to improve this plugin more.
Discussion
No comments yet.