Writing a filter to add text to the_content
-
I’ve been reading up on filters and adding text to the content but I’ve yet to figure out my situation.
What I’d like to do is have this displayed before every posts content:
Title: the_title(); Author: get_post_meta($post->ID, 'wpcf-book_author', true); Genre: the_tags(); Price: get_post_meta($post->ID, 'wpcf-book-price', true);
I can manage a simple filter that displays text, but I can’t figure out displaying text plus the results of a function. Any pointers would be helpful and appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Writing a filter to add text to the_content’ is closed to new replies.