Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function rp4wp_wp_job_manager_use_normal_template( $located, $template_name, $args, $template_path, $default_path ) {
  2.  
  3. if ( 'related-post-default.php' === $template_name && 'job_listing' === $args['related_post']->post_type ) {
  4. $manager_template = new RP4WP_Manager_Template();
  5.  
  6. $located = $manager_template->locate_template( 'related-post-default.php', $template_path, $default_path );
  7. }
  8.  
  9. return $located;
  10. }
  11.  
  12. add_filter( 'rp4wp_get_template', 'rp4wp_wp_job_manager_use_normal_template', 20, 5 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement