Which tag to use for Post Rendering of a Page?
-
Hello,
I would like to register a post rendering hook for a WordPress Page that adds a class field to a img. It works for blog post, but it fails for Pages…
The function is registered using
add_filter('the_content','iprotectImages',99,1);
Which tag do I need to use to target the <div class=”content”> in the code below?
<div class="container clear"> <div class="content"> <div id="show"> <img width="785" height="533" src="https://www.biomatt.nl/wp-content/uploads/2011/01/1171.jpg" class="attachment-full" alt="117" title="117" /> </div> </div> <div class="l_col"> <div class="post_portfolio"> <h2>Koppen</h2> <p class="post_divider">—</p> <div class="post_text"><script langauge="javascript">alert("");</script><script langauge="javascript">alert("Hello World!");</script></div> </div> </div> </div>
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Which tag to use for Post Rendering of a Page?’ is closed to new replies.