WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Ordering by Alphabetical Order

[Resolved] Ordering by Alphabetical Order

  • I created a CPT and called it Music, where I can create a place on my site for my client’s discography. I included a field where I can upload an image, and then added a WYSIWYG editor to it.

    I created 3 different items, one for each of his albums. Then I used the shortcode to add each of his albums onto my Music Page.

    Question: Can I change the order that these albums are displayed in? It looks like it defaulted to alphabetical order according to the Title of each album.

    Link: http://www.josephruscitti.com/clients/jimmyclanton/jimmys-music/

    Thank you.

    https://wordpress.org/plugins/pods/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Josh Pollock

    @shelob9

    You need to add a “orderby” parameter to the shortcode.

    orderby = "title.meta_value ASC " should do it.

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    'orderby' => 't.post_title ASC' should actually do it in this case, assuming title isn’t a custom field but the built-in Post Title field.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Ordering by Alphabetical Order’ is closed to new replies.