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
Dentro del loop: | |
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' ); $url = $thumb['0']; ?> | |
la URL: | |
<?=$url?> | |
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
gzip file.txt |
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
<html> | |
<head> | |
<title>Title</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
</head> | |
<body> | |
<table width="700" style="margin:0 auto 0 auto; border-collapse:collapse; background:#edeef0; border:1px solid #000;" align="center" border="0" cellspacing="0" cellpadding="0"> | |
<tr> | |
<td width="700" height="98"><table width="700" border="0" cellspacing="0" cellpadding="0"> |
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
.tagItem {display: table;} | |
.tagItem a{height: 80px; display: table-cell; vertical-align: middle;} |
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 wp_reset_postdata(); ?> | |
//When to use: best used after custom or multiple loops created with WP_Query. | |
<?php wp_reset_query(); ?> | |
//When to use: best used after a query_posts loop to reset things after a custom query. | |
<?php rewind_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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
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
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] | |
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] |
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 $var_destacados = new WP_Query('post_type=destacados&showposts=6'); while ($var_destacados->have_posts()) : $var_destacados->the_post(); ?> | |
<?php endwhile; ?> | |
/*con taxonomias*/ | |
<?php | |
query_posts( array( | |
'post_type' => 'video', | |
'taxonomy' => 'programas', |
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
register_post_type('banner_mini', array( | |
'labels' => array( | |
'name' => __('Banners') , | |
'singular_name' => __('Banner') , | |
'add_new' => _x('Agregar nuevo', 'banner_mini') , | |
'add_new_item' => __('Agregar nuevo banner') , | |
) , | |
'public' => true, | |
'has_archive' => false, | |
'show_ui' => true, |