Title: Need a very basic primer on query_posts
Last modified: August 20, 2016

---

# Need a very basic primer on query_posts

 *  [jvisser](https://wordpress.org/support/users/jvisser/)
 * (@jvisser)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/need-a-very-basic-primer-on-query_posts/)
 * I am slowly learning how to build a website – [http://bmwtcnsw.org/club](http://bmwtcnsw.org/club)–
   a month or so ago I never had heard of WordPress. And as for html…
 * I need a very basic primer on how to place a query_posts or get_posts command
   into the left sidebar – title “Latest Classifieds”, category “classifieds” – 
   I want to show the title, or part of, of the latest 5 posts in that category (
   much like the Recent Posts query).
 * From what I learn here I can make up further queries
 * TIA

Viewing 1 replies (of 1 total)

 *  Thread Starter [jvisser](https://wordpress.org/support/users/jvisser/)
 * (@jvisser)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/need-a-very-basic-primer-on-query_posts/#post-3029282)
 * Update:
 * I have tried using the Category Posts widget – all I get is a title and no content.
   I have tried using shortcodes [weaver_show_posts…], same result
 * I have tried using a different slug (“home” as against “classifieds” or “for-
   sale”) and I get an instant result. Now I may be onto something here – “classifieds”
   is a parent with no content; “for-sale” is under “classifieds”. Maybe the widget
   and shortcode will not detect a child category???
 * Or do I have to specify something extra in the [weaver_show_posts cats=??? …]?
 * So close, yet so far…
 * TIA

Viewing 1 replies (of 1 total)

The topic ‘Need a very basic primer on query_posts’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [jvisser](https://wordpress.org/support/users/jvisser/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/need-a-very-basic-primer-on-query_posts/#post-3029282)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
