PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

setting menu_order for post images?

  1. sascha
    Member

    Is there a way to set the menu_order of the images I upload to my post with a form? Is there a way of doing it via the CSS class and a hook? Or any other way?

    Posted 12 years ago on Thursday February 9, 2012 | Permalink
  2. Hi, sascha,

    I am not certain what you mean by menu order. But if you are using the Image field in the Post Fields section, you can create select "Create content template" on the Post Body field and specify the image size and location. Take a look at this screenshot: http://grab.by/bWfc

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  3. sascha
    Member

    Hi Dana,
    with menu_order I meant the field in the DB that can be used for instance for attachments. That order decides in what order they are shown if you call the [gallery orderby="menu_order" order="ASC"] shortcode. Would be great to be able to set that on each image upload...

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  4. The order that they are added as attachments is what determines this and that order is determined by the order in which the file was uploaded on the form. So it is based on the field display order.

    Posted 12 years ago on Monday February 13, 2012 | Permalink

This topic has been resolved and has been closed to new replies.