Working for one of my client he had a very unique requirement. “He wanted to show all the posts in his blog as a combo box where user can select any post and visit that post”.
Could not find anything and so I had to do the coding myself but when I used the default WordPress looping functions it had some issues on the category pages and the loop to show all posts interfered with the main page loop and so I had to do a new looping.
The below code will not interfere with any of the existing loops in the page and can even be used on 404 error pages.
Further Reading …