View custom-menu.php
$menu_exists = wp_get_nav_menu_object( 'custom-menu');
// If it doesn't exist, let's create it.
if( !$menu_exists){
register_nav_menus(
array(
'custom-menu' => 'Mi Custom Menú',
)
);
$menu_id = wp_create_nav_menu('Mi Custom Menú');
View custom-taxonomy-terms.php
function insert_taxonomy_terms() {
wp_insert_term(
'Test',
'taxonomy',
array(
'description' => 'taxonomía via functions',
'slug' => 'test'
)
);
View tamaño_texto.js
//funcion para agrandar o achicar el tama�o de letra (25/09/2003)
var max_size = 150;
var min_size = 50;
function dzIncreaseFontSize(idElemento) {
if (document.all || document.getElementById) {
var elemento = document.all ? document.all[idElemento] : document.getElementById(idElemento);
if (elemento) {
View exclude_taxonomy.php
<?php
$args = array(
'post_type'=>'casas',
'posts_per_page'=>4,
'orderby'=>'date',
'order'=>'DESC',
'tax_query' => array(
array(
'taxonomy'=>'categorias_casas',
'field' => 'slug',
View css
.wow {
visibility: hidden;
}
View .php
<?php echo substr(get_the_excerpt(), 0,50); ?>
View bootstrap_dropdown.css
/*
Bootstrap 3.3.6. dropdown nav menu on hover
*/
dropdown:hover > .dropdown-menu {
display: block;
}
View pre_code_wrap.css
pre, code {
padding:30px;
box-sizing:border-box;
-moz-box-sizing:border-box;
webkit-box-sizing:border-box;
display:block;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
View flex.html
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<style type="text/css">
html {
font-size: 62.5%;
}
View Install_NPM.sh
sudo npm install -g npm
sudo npm install -g express