Support

Account

Home Forums General Issues Displaying newly added entries as "New" on the label with red color

Helping

Displaying newly added entries as "New" on the label with red color

  • We love using ACF, This is a powerful feature but not sure how to display newly added entries to label as “New” so that users can discern between old and new entries.

    For example:

    We have a page to upload PDF files to make them available for the users to read and download them. What we want is they identify the newly uploaded fils. To achieve this we wanted to display a text “New” besides the label.

    Is there a way to append or prepend custom text to the label based on the date files/PDFs or the entries are added to the table on a page?

    Appreciate your help in this regard.

    Thank you,
    Sasi.

  • Hi @upadas

    I beleive this can be achieve using the acf/load_field hook

    From here you can modify the field attributes including the label before they are displayed.

    https://www.advancedcustomfields.com/resources/acf-load_field/

    Hope this helps.

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

The topic ‘Displaying newly added entries as "New" on the label with red color’ is closed to new replies.