Post excerpt based on condition

I want to modify the excerpt of a post automatically if a video has been inserted in a post either embedded or uploaded through media. So like the posts has a video on it, an excerpt is added like, “Please click to view video”

Read more here:: Post excerpt based on condition

Leave a Reply

Your email address will not be published. Required fields are marked *