I started working on a wordpress website, I need to show 20 words from every post with post name in Sidebar. I am new to wordpress, I am finding difficult to do it.
This is a little broad and more than one approach is possible.
If you want to show posts in general sidebar area you would need to:
- Find and edit a template file responsible for that output in your theme
WP_Queryto query set of posts and output the results.
If you want to implement this in a sense of sidebar Widget (that can be controlled in admin to move it around and such) you would need to:
- Create a Widget, using Widget API.
- Again, use
WP_Queryfor querying and output.
Given that your requirements are not that elaborate it might also be a good idea to look for existing plugins that offer post–listing widgets, they should be quite a few around.