How to add text at the end of post on last page only
-
How to add text at the end of post but only on the last page only (multiple pages post)? I have some posts that have multiple pages.
I have this code but this will show at the end of post on every pages
function author_end_post($content) { if (is_single()) { $content .= '<div id="author">test</div>'; } return $content; } add_filter ('the_content', 'author_end_post', 0);
Thanks for the help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add text at the end of post on last page only’ is closed to new replies.