set a variables contents as the_content()
-
I was trying to figure a way to use
preg_match_all()
to output the number of times the search string appeared in the post, and I was wondering if there was any way to create a variable whos contents werethe_content()
.$content = the_content()
doesnt work, as it just displays the content in the , and adding quotes only makes it take the literal string of text,the_content()
, instead of the actual contents of the post. Any help on this is much appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘set a variables contents as the_content()’ is closed to new replies.