How can I make the scenario stop constantly updating the title and instead just write the final count into the article's title?

Hello. The scenario parses the body of a WordPress article, counts the number of <img> tags ((?<img_count><img[^>]*>)) in the article, and then adds this data to the title. Why does it update the title every time instead of just recording the final data in the title? How can I make the scenario stop constantly updating the title and instead just write the final count into the article’s title?

You’ll also need to aggregate the second “Match Pattern” module. Try an array aggregator so you can get a total count using the built-in length function for the array.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

Thank you very much. Everything works.

1 Like