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
echo wp_strip_all_tags( get_the_content() ); |
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 $args = array('type' => 'rentals', 'taxonomy' => 'rental-categories'); | |
$categories = get_categories($args); | |
foreach($categories as $category) { | |
echo' | |
<div class="fg12 rentals"> | |
<h2> '. $category->name . '</h2> | |
<div class="info"> | |
<p>'. $category->description . '</p> | |
<a class="button" href="#"> |
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
<h4><?php $terms = get_terms("sectors"); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { echo $term->name; } } ?> Sector</h4> |
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 query_posts( array( 'post_type' => 'NNN') ); if (have_posts()) : while (have_posts()) : the_post(); ?> | |
... | |
<?php endwhile; endif; wp_reset_query(); ?> |
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
.videoWrapper { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 25px; | |
height: 0; | |
} | |
.videoWrapper iframe { | |
position: absolute; | |
top: 0; | |
left: 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
<?php $recent = new WP_Query("page_id=nºpage"); while($recent->have_posts()) : $recent->the_post();?> | |
// bla bla bla | |
<?php endwhile;?> | |
<?php wp_reset_query(); ?> |
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 | |
global $post; | |
$args = array( 'taxonomy' => 'product_cat',); | |
$terms = wp_get_post_terms($post->ID,'product_cat', $args); | |
$count = count($terms); | |
if ($count > 0) { | |
foreach ($terms as $term) { | |
echo '<div style="direction:rtl;">'; |
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 ( has_post_thumbnail() ) { the_post_thumbnail('thumb-post'); } else { ?> | |
<img src="<?php bloginfo('template_directory'); ?>/images/rutadela.imagen" alt="<?php the_title(); ?>" /> | |
<?php } ?> |