Created
January 30, 2019 13:47
-
-
Save taciara/317293e6fd19ec5cd2498ad6db52095e to your computer and use it in GitHub Desktop.
Criar Modelo de Página no Custom Post Type com Campo Personalizado (ACF)
This file contains 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
<?php | |
//ESSE CODIGO VERIFICA O VALOR DO SELECT ACF E VERIFICA SE O ARQUIVO EXISTE | |
$selectTheme = get_field('escolha_o_tema'); | |
if(file_exists(get_stylesheet_directory().'/template-parts/'.$selectTheme.'.php')) | |
load_template(get_stylesheet_directory().'/template-parts/'.$selectTheme.'.php'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment