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
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$the_query = new WP_Query( 'post_type=Na-midia&paged='.$paged.'&showposts=6&posts_per_page=6' ); | |
if ( $the_query->have_posts() ) : | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
//AQUI O CONTEUDO | |
endwhile; |
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 | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$the_query = new WP_Query( 'post_type=Na-midia&paged='.$paged.'&posts_per_page=6' ); | |
if ( $the_query->have_posts() ) : | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
//AQUI O CONTEUDO | |
endwhile; |
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
'AAR – Aarhus, Denmark – Tirstrup', | |
'ABJ – Abidjan, Cote D`Ivoire – Port Bouet', | |
'ABQ – Albuquerque, NM, USA – Albuquerque Intl', | |
'ABR – Aberdeen, SD, USA – Aberdeen Regional Airport', | |
'ABS – Abu Simbel, Egypt – Abu Simbel', | |
'ABY – Albany, GA, USA – Dougherty County', | |
'ABZ – Aberdeen, Scotland, United Kingdom – Dyce', | |
'ACA – Acapulco, Guerrero, Mexico – Alvarez International', | |
'ACC – Accra, Ghana – Kotoka', | |
'ACE – Lanzarote, Canary Islands, Spain – Lanzarote', |
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
var states = ['AAR – Aarhus, Denmark – Tirstrup', 'ABJ – Abidjan, Cote D`Ivoire – Port Bouet', 'ABQ – Albuquerque, NM, USA – Albuquerque Intl','ABR – Aberdeen, SD, USA – Aberdeen Regional Airport','ABS – Abu Simbel, Egypt – Abu Simbel','ABY – Albany, GA, USA – Dougherty County','ABZ – Aberdeen, Scotland, United Kingdom – Dyce','ACA – Acapulco, Guerrero, Mexico – Alvarez International','ACC – Accra, Ghana – Kotoka','ACE – Lanzarote, Canary Islands, Spain – Lanzarote','ACY – Atlantic City /Atlantic Cty, NJ, USA – Atlantic City Intl','ADA – Adana, Turkey – Adana','ADB – Izmir, Turkey – Adnam Menderes','ADD – Addis Ababa, Ethiopia – Bole','ADJ – Amman, Jordan – Civil','ADL – Adelaide, South Australia, Australia – Adelaide','ADZ – San Andres Island, Colombia','AEP – Buenos Aires, Argentina – Jorge Newberry','AEY – Akureyri, Iceland – Akureyri','AGA – Agadir, Morocco – Inezgane','AGB – Augsburg, Germany – Muehlhausen','AGP – Malaga, Spain – Malaga','AGR – Agra, India – Kheria','AHO – Alghero, Sardenha, Itália','AJU |
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 | |
$Nome = "Teste 100"; | |
$Cep = "06327290"; | |
$Cpf = "11111"; | |
$Email = "teste100@teste100.com.br"; | |
$Senha = "11111"; | |
$Estado = "São Paulo"; | |
$Cidade = "São Pauolo"; | |
$TelefoneFixo = "00000000"; |
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
function procCadastro(){ | |
var cadastroNome = $("cadastroNome").val(); | |
var cadastroEmail = $("cadastroEmail").val(); | |
var cadastroCpf = $("cadastroCpf").val(); | |
var cadastroCep = $("cadastroCep").val(); | |
var estado = $("estado").val(); | |
var cidade = $("cidade").val(); | |
var cadastroBairro = $("cadastroBairro").val(); | |
var cadastroSenha = $("cadastroSenha").val(); |
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
/* WOOCOMMERCE */ | |
span.onsale{ | |
display: none; | |
} | |
h1.product_title.entry-title{ | |
font-family: 'Open Sans', sans-serif; | |
color:#a1a1a1; | |
text-transform: uppercase; |
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 | |
/** | |
* Add checkbox field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>'; |
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 | |
// [wp insert user « WordPress Codex](http://codex.wordpress.org/Function_Reference/wp_insert_user) | |
require_once "wordpress/wp-load.php"; | |
$user_info = array( | |
"user_pass" => "test123", | |
"user_login" => "username", | |
"user_nicename" => "username", | |
"user_email" => "email@example.com", |
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
LER APENAS UM | |
jQuery( function( $ ) { | |
$( '#get-another-quote-button' ).on( 'click', function ( e ) { | |
e.preventDefault(); | |
$.ajax( { | |
url: '/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1', | |
success: function ( data ) { | |
var post = data.shift(); // The data is an array of posts. Grab the first one. | |
$( '#quote-title' ).text( post.title ); |
OlderNewer