Ir para conteúdo
Fórum Script Brasil

Anna Carvalho

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Anna Carvalho

Anna Carvalho's Achievements

0

Reputação

  1. Bom dia! Estou com um probleminha. Está dando esse erro no meu código: Fatal error: Cannot redeclare is_portfolio() (previously declared in /home/functions.php:197) in /home/l/functions.php on line 226. o Código que estou mexendo é esse: /** * Checks if we're using the custom layout */ function is_custom_layout() { return is_home() && thb_get_option("_homepage_layout") == 1; } /** * Checks if we're in a Portfolio page */ function is_portfolio() { $is_portfolio = false; global $post; $page_template = thb_get_page_template(); if( startsWith($page_template, "template-portfolio") || isset($post) && $post->post_type == "works" ) $is_portfolio = true; return $is_portfolio; } /** * Checks if we're in a Blog page */ function is_blog() { $is_blog = false; global $post; $page_template = thb_get_page_template(); if( startsWith($page_template, "template-blog") || (isset($post) && $post->post_type == "post") || (is_home() && thb_get_option("_homepage_layout") == 0) ) $is_blog = true; return $is_blog; } A linha que provavemente está dando erro é a em vermelho. Eu já revi esse código 500 vezes, alguém por favor pode me ajudar?? Obrigada!
×
×
  • Criar Novo...