• Resolved mechanicvirus

    (@mechanicvirus)


    Hello, I’m a bit new to PODS but have been using it as a way to have different taxonomies. What I’m trying to do is display a simple list of all items for a certain POD (called Models) on a wordpress page.

    When I go to make a new page, I insert the following code

    [pods name="model" orderby="DESC" template="Models"]

    However the page comes up blank. I have a feeling I might be missing information or using the wrong syntax.

    The PODS Item name is Model

    Custom template is Models

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    That orderby should be orderby="t.ID DESC" or something else that specifies which field to order by. Just having DESC won’t work here.

    Thread Starter mechanicvirus

    (@mechanicvirus)

    Hi Scott, thank you for clarifying. Just so I understand, I could use the following code you posted? Or would I need to edit the code as such

    orderby="t.model DESC"
    Plugin Support Paul Clark

    (@pdclark)

    The context of the shortcode you provided sets the context of the query to model with name="model".

    t means the primary column of the queried object, which in this case, would be columns in wp_posts of post_type model.

    Therefore, orderby="t.ID DESC" will order by IDs of model post types.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress page display list of items’ is closed to new replies.