Title: Query, loop and shortcodes
Last modified: August 31, 2016

---

# Query, loop and shortcodes

 *  [tralladas](https://wordpress.org/support/users/tralladas/)
 * (@tralladas)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/query-loop-and-shortcodes/)
 * Hi,
 * I want to show a list of items in a page using a custom query to a new created
   table. I want to do it scalable, so my idea is create a shortcode to show the
   data. The problem is that the shortcode should receive as parameter one specific
   item, and I don’t know how it can be done.
 * This is my idea (in pseudocode):
 * items = get all items matching condition
 * for each item in item
    { show item data (i.e. Item Code – Item name) }
 * How can I create shortcodes for “show item” receiving parameters from item.prop1,
   item.prop2, etc?

The topic ‘Query, loop and shortcodes’ is closed to new replies.

## Tags

 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tralladas](https://wordpress.org/support/users/tralladas/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/query-loop-and-shortcodes/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
