try to add
<?php wp_reset_query(); ?>
to the beginning of sidebar.php;
code and custom queries in the main part of the site may have distorted the original $query_string; and ‘wp_reset_query();’ restores it.
You are truly wonderful!
It worked! I put your code under the sbwidgets in the sidebar and it did the trick.
My heartfelt thanks. I spent days and days over this problem.
I will play with the styling in the next few days and will let you know
how I get on.
Many, many thanks for your kind help.
Hello,
Many thanks again for your help.
I managed to style everything the way I wanted because your advice enabled me to get the current_page_items back.
I’ll mark this thread as resolved now.
All my best wishes.