View functions.php
add_action( 'pre_get_posts', 'posts_per_page_home' ); | |
function posts_per_page_home($query) { | |
if ( $query->is_home() && $query->is_main_query() && get_query_var( 'paged' ) < 2 ) { | |
$query->set( 'posts_per_page', '1' ); | |
} | |
} |
View functions.php
add_action( 'pre_get_posts', 'posts_per_page_home' ); | |
function posts_per_page_home($query) { | |
if ( $query->is_home() && $query->is_main_query() ) { | |
$query->set( 'posts_per_page', '1' ); | |
} | |
} |
View functions.php
$repeater_value = get_post_meta( get_the_ID(), 'content_area_light_background', true); | |
if ( $repeater_value ) : | |
for ( $i = 0; $i < $repeater_value; $i++ ) { | |
$meta_key = 'content_area_light_background_' . $i . '_light_background_sub_field'; | |
$sub_field_value = get_post_meta( get_the_ID(), $meta_key, true ); | |
echo $sub_field_value; | |
} | |
endif; |
View functions.php
if ( have_rows( 'content_area_light_background' ) ) : | |
while ( have_rows( 'content_area_light_background' ) ) : the_row(); | |
the_sub_field( 'light_background_sub_field' ) | |
endwhile; | |
endif; |
View archive.php
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
add_action( 'genesis_before_loop', 'wordpress_seo_plugins_breadcrumbs' ); | |
function wordpress_seo_plugins_breadcrumbs() { | |
if ( function_exists('yoast_breadcrumb') ) { | |
yoast_breadcrumb('<div class="breadcrumb">','</div>'); | |
} | |
} |
View custom-html-widget.html
<div class="text">Call us today for help!<a class="" href="tel://1-800-555-2840">(800) 555-2840</a></div> |
View hero.txt
<p>New York · Paris · London</p> | |
<p><a class="button" href="#front-page-2">Start Your Journey</a></p> |
View value.text
cat=148&orderby=date&order=ASC |
View editor.html
<strong>Property Description</strong> | |
These fully furnished 2 bedroom apartments are located on the east side of campus near the Krannert Center, Loomis, and Caffe Paradiso with a 15-minute walk to the undergraduate library, downtown Urbana, and Green Street nightlife. Busey Terrace features private balconies, AC units in each room, secured entrances, lot and covered parking, new windows and lighting, onsite laundry, and fiber Internet. With nearby bus-lines, these spacious and comfortable 2 bedroom apartments are perfect for students looking to get out of the dorms, but still stay conveniently close to campus. | |
These fully furnished 2 bedroom apartments are located on the east side of campus near the Krannert Center, Loomis, and Caffe Paradiso with a 15-minute walk to the undergraduate library, downtown Urbana, and Green Street nightlife. | |
[property_details] | |
</div> |
NewerOlder