Ready to get started?Download WordPress


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

  1. consumedesign
    Posted 1 year 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',




  2. mgibbs189
    Plugin Author

    Posted 1 year 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
    Posted 1 year 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
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic