Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @juliana9

    There’s no drag-and-drop reorder UI in ACF itself. In the classic editor you could reorder metaboxes by dragging them on screen, but that doesn’t carry over reliably in the block editor, so menu_order is the way to go.

    You can set it directly inside each field group’s settings (Edit Field Group → scroll down to Group Settings → Menu Order). Lower numbers appear first. If two groups have the same value, they’ll fall back to alphabetical.

    If you’re managing field groups in PHP or via ACF’s local JSON, you can set it there too:

    // In a PHP-registered field group:
    acf_add_local_field_group( [
        'key'        => 'group_123',
        'title'      => 'My Field Group',
        'menu_order' => 10,
        // ...rest of your config
    ] );
    

    Or in your group_xyz.json file:

    {
    "key": "group_123",
    "title": "My Field Group",
    "menu_order": 10
    }

    Hope that helps!

    Hey @aftab1003

    This is totally doable. A dedicated Comparison CPT with ACF relationship fields is the cleanest way to handle this.

    You can set it up like this; create a new CPT (e.g., mobile-comparison) and attach an ACF field group to it with two Relationship or Post Object fields, one for each mobile being compared (e.g., phone_a and phone_b). Point both fields to your existing mobilespecs CPT as the source. When the admin creates a new Comparison post, they simply pick the two phones to compare. No front-end selector needed. All comparison content lives on the Comparison post itself, as you intend.

    To display it, use get_field() to fetch each selected post object, then pull the ACF fields from those posts using the post ID.

    Could you try that and let me know if it gets resolved?

Viewing 2 replies - 1 through 2 (of 2 total)