Custom Fields
Re-Envisioned
Support Meta Box Group group_title from field incfrementing value

This topic contains 4 replies, has 2 voices, and was last updated by  Ale 6 months, 1 week ago.

  • Creator
    Topic
  • #13484
    Resolved
    Ale
    Participant

    Hello!

    Currently I my group’s title is pulled from a field value. So if the field’s value is ‘Headline’ then the group_title becomes ‘Headline’.

    'group_title' => array('field' => 'headline' ),

    I would like to add a number after each title like ‘Headline 1’, ‘Headline 2’, ‘Headline 3’…

    I’ve tried but the code below but the result is ‘Array 1’, ‘Array 2’, ‘Array 3’…

    'group_title' => array('field' => 'headline' ) . ' {#}',

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #13530

    Anh Tran
    Keymaster

    Hi Ale, it’s not possible at the moment. I’m thinking of a better way to improve the group title. I’ll release new version when it’s done.

    #13531

    Ale
    Participant

    Thanks Anh.

    #13742

    Anh Tran
    Keymaster

    @Ale: I’ve just updated Meta Box Group to version 1.3 which supports flexible group title like this:

    'group_title' => '{headline} {#}',

    Please try that and let me know if you find any bug.

    #13743

    Ale
    Participant

    Thanks Anh! Works great.

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

You must be logged in to reply to this topic.