WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Suite
[resolved] 'orderby' => 'menu_order' & form() (4 posts)

  1. consumedesign
    Member
    Posted 7 months ago #

    I am trying to put my form on the front end and using the following test code to order the items orderby doesn't work, is there a way to order those form like in the admin?

    echo $cfs->form(array(
        'post_id' => $post->ID,
        'orderby' => 'menu_order',
    ));

    https://uproot.us/docs/form/

    Thanks!

    http://wordpress.org/plugins/custom-field-suite/

  2. mgibbs189
    Member
    Plugin Author

    Posted 7 months ago #

    I'm not sure I understand your question. Does that post have more than 1 field group attached to it? If so, are the fields within each field group displaying in the correct order?

  3. consumedesign
    Member
    Posted 7 months ago #

    Ya sorry... ok on the backend I created 3 field groups... G2, G1, G3 for example. I ordered them G1, G2, G3 using the "order" in the extras area (G1=0, G2=1, G3=2). It orders them correctly in the post area (G1, G2, G3), perfect... but now I am using the $cfs->form() function on the front end to allow users to enter in their own posts, and CFS info but it does not order them correctly like on the backend, ie showing up as G2, G1, G3. My question is how can I get them to order using $cfs->form() as G1, G2, G3 like in the backend?

  4. consumedesign
    Member
    Posted 6 months ago #

    I abandoned the idea and made it into one form. Have another issue in the forum. Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic