• 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.