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
<?php | |
/* | |
Template de Post | |
Este trecho de código faz parte do artigo: Template de Posts: Série Anatomia de um Tema do WordPress #4 | |
Artigo URL: https://garagemwp.com.br/template-para-posts-tema-wordpress/ | |
*/ | |
?> | |
<?php get_header(); ?> |
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
<?php | |
/* | |
Template de Post | |
Este trecho de código faz parte do artigo: Template de Posts: Série Anatomia de um Tema do WordPress #4 | |
Artigo URL: https://garagemwp.com.br/template-para-posts-tema-wordpress/ | |
*/ | |
?> | |
<?php get_header(); ?> |
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
<?php | |
/* | |
Template de Arquivo | |
Este trecho de código faz parte do artigo: Template de Arquivo: Série Anatomia de um Tema do WordPress #3 | |
Artigo URL: https://garagemwp.com.br/template-de-arquivo-tema-wordpress/ | |
*/ | |
?> | |
<?php get_header(); ?> |
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
#Redirection code starts | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
#Redirection code Ends |
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
<?php | |
/* | |
Action para não permitir que uma conta seja cadastrada no Woocommerce com um CPF ou CNPJ já existente. | |
Esta action adiciona esta condicional para o campo de CPF ou CNPJ inserido pelo do plugin Extra Checkout Fields for Woocommerce | |
Você pode inserir este código no arquivo functions.php do seu tema. | |
*/ | |
add_action('woocommerce_checkout_process', 'check_if_cpf_cnpj_exists'); | |
function check_if_cpf_cnpj_exists() { | |
if( isset( $_POST['billing_cpf'] ) ){ |
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
<?php get_header(); ?> | |
<div id="page" class="site"> | |
<header> | |
<h1><?php bloginfo( 'name' ); ?></h1> | |
</header> | |
<?php if ( have_posts() ) : ?> | |
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
<!DOCTYPE html> | |
<html <?php language_attributes(); ?> > | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="profile" href="http://gmpg.org/xfn/11"> | |
<title><?php bloginfo( 'name' ); ?></title> | |
<?php wp_head(); ?> | |
</head> |
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
<?php echo paginate_links(); ?> |
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
<?php if ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article <?php post_class(); ?>> | |
<?php the_title('<h2>','</h2>'); ?> | |
<p><?php echo get_the_date(); ?></p> | |
<?php the_post_thumbnail( 'thumbnail' ); ?> | |
<?php the_excerpt(); ?> | |
<a href="<?php echo get_permalink(); ?>">Leia mais</a> | |
</article> |
NewerOlder