All Topics
Help with Array and User Metafield
Hello!
I have a user metafield that records the browsing history, I want to display the posts visited in the table.
My array is like this:
array (
0 =>
array (
348 =>
array (
'visits' => 4,
'time' => '2023-06-08 11:16:32',
'last_time' => '2023-06-17 17:16:14',
),
350 =>
array (
'visits' => 1,
'time' => '2023-06-08 11:16:56',
'last_time' => '2023-06-08 11:16:56',
),
346 =>
array (
'visits' => 18,
'time' => '2023-06-09 07:48:30',
'last_time' => '2023-06-11 15:08:50',
),
),
)
Just pointing to this metafield the value looks like this inside the cell:
2, 2023-06-22 23:55:05, 2023-06-23 00:01:49
Would you help me?
You must be logged in to reply to this topic.