How to show 'Add more text' field in the begining in cloneable metabox field

Support General How to show 'Add more text' field in the begining in cloneable metabox field

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #46779
    Nitesh KumarNitesh Kumar
    Participant

    I am using the Metabox Cloneable group field to create a timeline. Currently, it contains 50 fields, and I regularly add new data every few days.

    By default, there is an 'Add more' button at the end of the list, which adds new content to the bottom.

    image

    However, I need to display new content at the top of the timeline. Although I have enabled the 'Sortable' setting, I must manually drag the new content from the bottom to the top each time I want to add it, which is time-consuming.

    Is there a way to add new content directly at the top instead of the bottom? Is there a setting that allows this?

    If not, could there be a workaround to send newly added content to the top position or to the second or third position from the top?

    Please help me with this.
    Thank you.

    #46782
    PeterPeter
    Moderator

    Hello,

    Currently, we don't support adding a new cloneable entry to the top of the section and showing the "Add more" button at the top. However, it is an interesting idea. I will inform the development team to consider supporting this feature in future updates.
    If you use the code to output the cloneable field value, you can use the PHP function array_reverse() to reverse the order of cloneable entries.
    https://www.php.net/manual/en/function.array-reverse.php

    #46783
    Nitesh KumarNitesh Kumar
    Participant

    Oh! I understand.

    Please consider adding this feature in upcoming updates. Currently I use Metabox with Bricks Builder .. so, don't really use code 🙁

    #47098
    Robert EhniRobert Ehni
    Participant

    Would also love to see this feature!

    #47099
    Robert EhniRobert Ehni
    Participant

    Usecases:
    - I have several wordpress pages where a long list of repeatable entries is maintained and some integrations (e.g. OxygenBuilder with OxyExtras) do support using metabox repeater fields but do not allow altering the order (e.g. random, reverse, etc.).

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.