mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
23 lines
780 B
PHP
23 lines
780 B
PHP
<?php
|
|
|
|
if( !get_option( 'page_for_posts' ) && get_option( 'show_on_front' ) == 'page' && get_post_status() == 'publish' ) {
|
|
// We're transitioning away from using the blog page template
|
|
// Automatically update this so it uses the proper system.
|
|
update_option( 'page_for_posts', get_the_ID() );
|
|
update_post_meta( get_the_ID(), '_wp_page_template', 'default' );
|
|
}
|
|
|
|
add_filter('option_show_on_front', '__return_false');
|
|
add_filter('siteorigin_panels_is_home', '__return_false');
|
|
global $wp_query;
|
|
query_posts(array(
|
|
'paged' => $wp_query->get('paged'),
|
|
));
|
|
global $more; $more = 0;
|
|
get_template_part('index');
|
|
$more = 1;
|
|
remove_filter('option_show_on_front', '__return_false');
|
|
remove_filter('siteorigin_panels_is_home', '__return_false');
|
|
|
|
wp_reset_query();
|
|
wp_reset_postdata(); |