Archived topic
Need help in creating Left sidebar menu of posts list
11 replies · Started by Gaurav on February 9, 2023
Hello,
Please let me know how can i create a similar left sidebar menu of the posts list like on this website sparkbyexamples.com. Also, the left sidebar posts don't have underlining. How to show posts like that without underlining?
Thanks!
Hi there,
that site is using several Navigation Widgets ( blocks ) to display those lists.
Is that what you require?
Or are you just wanting a list of post titles ?
If possible I like to display my blog posts list in that website manner only, as my niche is similar to that website.
If it's difficult to provide all the exact changes, kindly guide me to whatever extent possible.
Thanks!
Will the list of posts be split into Categories ?
Yes. For example, if I write 50 articles on Java and 50 articles on Python. If a person visits a post in Java Category, then on the left sidebar all the 50 posts of Java only should be shown in list form. Similarly, if a person visits a post in Python Category, then on the left sidebar all the 50 posts of Python only should be shown in list form. Thanks!
You can also check this website pythontutorial.net. How this person is showing the list of posts on the right side. Category wise link pythontutorial.net/django-tutorial, sidebar content changes.
If you have GenerateBlocks Pro plugin, you can add a query loop block in the sidebar widget area, and set the category tocurrent post terms, so it will only show posts that are in the same category as the current post.
https://www.screencast.com/t/ZfQrxhz8sJ
Otherwise, you don't have many categories, you can use block elements to insert the WP latest posts block, manually choose a category for the latest posts block, and set the block element's location accordingly.
Sorry, I don't have GenerateBlocks Pro plugin.
I would like to repeat my basic requirement. I have 10 posts written in the Java category and 10 posts written in the Python category.
If I open any 1 post of the Java category, then on the left sidebar only 10 posts of Java should be shown. Likewise, if I open any 1 post of the Python category, then on the left sidebar only 10 posts of Python should be shown.
How to do this?
Hi Guarav,
As mentioned by Ying, you would need GB Pro for that if you want it done automatically/dynamically.
See: https://share.getcloudapp.com/4gu4gdOk
With GB Pro, you can add such a Query Loop on your sidebar to grab posts of the same category and at the same time, exclude the current post.
Without GB Pro, you can manually choose the category.
You can create multiple Block Elements for the Sidebar specific to the category.
Example for a post with category "Affiliate Marketing":
https://share.getcloudapp.com/8LugLXkN
https://share.getcloudapp.com/YEuDnLX9
Thanks for the help. I understood this.
Resolved
You're welcome, Gaurav!