G.P.child: text after entry content
-
Hi Tom,
i need to put some text in every content-page, blog-page and post.I′ve been testing several of this hooks, but none of them is 100% what i want.
https://docs.generatepress.com/collection/hooks
“generate_after_entry_content” is almost perfect, it displays into blog-page and post, but not into content-pages.
* also tryed pippin filter. It displays into content-pages and post,but not into blog-page.
function pippin_filter_content_sample($content) {
if( is_singular() && is_main_query() ) {
$new_content = ‘<p>This is added to the bottom of all post and page content, as well as custom post types.</p>’;
$content .= $new_content;
}
return $content;
}
add_filter(‘the_content’, ‘pippin_filter_content_sample’);?Any recomendations?
- The topic ‘G.P.child: text after entry content’ is closed to new replies.