Z
Z
ZurabPro2022-04-07 07:54:46
Gallery
ZurabPro, 2022-04-07 07:54:46

How to display data about updating the number of images in a Wordpress post?

Good day.
I wanted to indicate the number of pictures in the post.
used for this

$num_attachments = array_sum ( (array) wp_count_attachments('image') );

Can you please tell me how to update?
For example post: City of Krasnodar - (total 49 photos)
And after the update: City of Krasnodar - 15 photos added (total 64 photos)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question