Archived topic
Default footer content on Toolset custom post type
1 reply · Started by Antwan on June 26, 2018
Hello,
I'm using GP in combination with the Toolset plugin to render a Custom Post Type named 'Events'. Would it be possible for a section with default content to display at the footer of each event? And how should I activate a two-column widget area on this CPT? The info on https://docs.generatepress.com/article/footer-widgets/#change-the-number-of-footer-widgets-on-individual-pages-posts doesn't seem to help me there.
Thanks in advance!
Antwan
H there,
you can use a conditional within a GP Hook like so to add content before the footer for your-post-type
add_action( 'generate_before_footer','example_function_name' );
function example_function_name() {
if ( is_singular( 'your-post-type' ) ) : ?>
your content here
<?php endif;
}
https://docs.generatepress.com/article/adding-php/
For the footer, do you want this to be the same as the rest of the site?