• Hi, im trying to create custom output for fields depending if its on the grid or list view.

    i found um_is_core_page(‘user’) to create custom outputs on the user page – that helped.
    but now im trying to find a way to customise some outputs on the list vs. the grid view. for example, id like to show the phone number in full on grid view and as an icon on list view.

    is there a check like um_is_core_view(‘grid’) or something like that? 🙂

    thanks, cheers, arne

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @dukavannori

    Sorry for the late response.

    Is the “grid” view a custom post type page?

    Regards,

    Thread Starter dukavannori

    (@dukavannori)

    Hi Champ, thanks for getting back to me. On your member directory page, you have this small icon on the top left to toggle between the views.
    would be great to have the possibility to show different data or different “formatted” data on those two pages.
    grid view has a lot of space to put lenghty data, but the list view is overflown then …

    so it uses two different templates – but i dont know how to adress that in the hook (in functions.php) for the datafield…

    thanks! cheers, arne

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

The topic ‘current_view check for hook’ is closed to new replies.