Last active
June 28, 2017 12:59
-
-
Save bigdigital/9879c2a5bbc38073c8e6b1e7beef46bb to your computer and use it in GitHub Desktop.
The7 Handle portfolio archive pages
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
add_filter( 'presscore_config_post_id_filter', 'dt_portfolio_archive_id_filter' ); | |
function dt_portfolio_archive_id_filter($new_post_id) { | |
if (is_post_type_archive('dt_portfolio')) | |
{ | |
$new_post_id = 84; //replace this to template post id | |
} | |
return $new_post_id; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment