I’m building a plugin which will pull custom meta post automatically.
For example if I have a post with content
"A post content"
when display content in the theme used the_content() tag, I want to display as :
A post content <br> <div id="custom-data">Some custom data</div>
In that way, I can build a plugin to pull custom meta post automatically and re-style the custom data.
Anyone know it? Thanks!
You can use add_filter() to add text to the content. Here’s an example:
There are many filters you can hook on, here’s a list: http://codex.wordpress.org/Plugin_API/Filter_Reference