Incluir esse código no functions.php
.
Nas action_hooks, no lugar de "category"
é só incluir o slug da sua taxonomia :)
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Teste</title> | |
</head> | |
<body> | |
<?php | |
// Verifica se o ?p foi passado na URL. Se foi, $p = o valor passado em ?p + .php (para dar include no arquivo) | |
// Senão, chama o arquivo home.php |
var cep_search = function( fields ) { | |
// Passa os campos em variáveis | |
var $field_cep = fields.cep | |
, $field_estado = fields.estado | |
, $field_cidade = fields.cidade | |
, $field_endereco = fields.endereco | |
, $field_bairro = fields.bairro | |
, $field_numero = fields.numero |
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Abrir/fechar pop-up</title> | |
</head> | |
<body> | |
<ul> | |
<li class="container-box-to-open"> | |
<a class="el-open-box">Abrir Pop-up</a> |
<?php | |
$default_configs = array( | |
'post_status' => 'publish', | |
'post_type' => 'page', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
'post_content' => '' | |
); | |
$panel_pages = array( |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb | |
sudo dpkg -i elasticsearch-0.90.0.deb |
$formLogin = $( 'form.form-login' ); | |
$formLogin.find( 'label' ).addClass( 'js' ); | |
$formLogin.find( 'input[type=text], input[type=password]' ).each(function(){ | |
// Verifica se os campos estão preenchidos (autocompletar do browser) | |
if( $( this ).val() !== '' ) { | |
$( this ).prev( 'label' ).animate({'font-size' : 0}, 200); | |
} | |
$( this ).focus(function(){ |
/* | |
Scripts usados nessa página | |
Índice de funções para esse arquivo: | |
* carousel.init(); | |
* carousel.init_events(); | |
*/ | |
var carousel; |
module.exports = function( grunt ) { | |
grunt.initConfig({ | |
coffee : { | |
compile : { | |
files : { | |
'lib/command.js' : 'src/command.coffee', | |
'lib/generator.js' : 'src/generator.coffee', | |
'lib/index.js' : 'src/index.coffee', | |
'lib/manifest.js' : 'src/manifest.js' | |
} |
<?php | |
/* | |
Adicionar metabox à páginas específicas | |
*/ | |
function my_meta_setup_1() { | |
// criação da metabox | |
} | |
function especific_metabox_pages() { | |
$post_ID = $_GET['post'] ? $_GET['post'] : $_POST['post_ID']; |