Support » Everything else WordPress » Help Javascript…

  • Please help on javascript.
    I have a post contains couple of images. And I want to count how many images the post contains and display it.
    When I use
    it returns all image numbers, not only inside post but header, footer, and other images too.

    When page DOM structure looks like this:


    How can I count image numbers only inside a post?

  • The topic ‘Help Javascript…’ is closed to new replies.