[SOLVED] How to Add Text to ALL Posts?
I wish to add a few lines of text to all posts (and occassionally change the text, probably), at the BOTTOM of the post -- not in the byline or the footer areas.
Is this possible (without editing every post)? Dr. Strangelove Watching YouTube |
If I'm not mistaken, you could add it in the body of your index.php file, but then you'd have to re-edit it to change it.
I did this to create some custom templates for certain categories, where I wanted certain text and photos to appear on every post in that category. For instance, at http://www.larchmontgazette.com/2009...e-right-place/ , the intro text at the top, the photo and text under the photo and the Ask a question form are built into the template. Here is what the new template looks like, where I put the photo, text under the photo and the question form: Code:
<!-- Post Body Copy --> |
You could do this by adding a filter function to the post content. Add the following tightly to the bottom of functions.php without causing any blank lines or spaces:
PHP Code:
|
hello flynn
i am also looking to do the same thing when i have inserted your code the text below the post, above the comments i want to insert text above the posts, below the title is there an easy way to do this? |
I have found the PostPost plug-in to work very nicely with Atahualpa. You can choose what to insert before or after content on posts or pages.
Quote:
Out of Debt Again |
All times are GMT -6. The time now is 07:02 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.