Auto template for the archive.php
-
Hi,
I’m trying to overwrite my theme’s “archive.php” with the Pods auto template. How do I do that by using the custom filter/hook?
Here’s my WP “archive.php”
/** * The template for displaying post archives with Pods */ get_header(); if( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ) { do_action( 'my_custom_hook' ); } get_footer();
… and here’s the Pod category setting:
I’ve got the Pod Template created!
What I don’t understand is how to define the custom hook.
As a side note, I’m OK with usingget_the_archive_description
as a template filter but I don’t understand how to implement this one as well.Thanks for any tip!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Auto template for the archive.php’ is closed to new replies.