Created
January 4, 2021 14:01
-
-
Save yousufansa/172f8a693f546a32bf07d1b332b4e7f2 to your computer and use it in GitHub Desktop.
Jobhunt - Display Custom Content on Job Archive Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( ! function_exists( 'jh_child_job_archive_custom_content' ) ) { | |
| function jh_child_job_archive_custom_content() { | |
| $static_content_id = '1354'; // Replace 1354 with your static block id | |
| $static_content = get_post( $static_content_id ); | |
| echo do_shortcode( $static_content->post_content ); | |
| } | |
| } | |
| add_action( 'jobhunt_after_job_listing_loop', 'jh_child_job_archive_custom_content', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment