public
(bool) (optional) Whether posts of this status should be shown in the front end of the site.
Default: false
internal
(bool) (optional) Whether the status is for internal use only.
Default: false
private
(bool) (optional) Whether the posts of this status should be accessible by their urls.
Default: false
function make_archived_status_public()
{
global $wp_post_statuses;
// Меняем public на true
$wp_post_statuses['archived']->public = true;
// Повторяем для других аргументов, если нужно
// ...
}
add_action( 'init', 'make_archived_status_public' );
<?php
// подключаем стили и скрипты
function register_styles_scripts() {
// стили для Главной
if(is_home() || is_front_page()):
wp_enqueue_style('style', get_template_directory_uri() . '/style1.css');
endif;
// Общие стили
wp_enqueue_style('style', get_template_directory_uri() . '/style2.css');
}
add_action('wp_enqueue_scripts', 'register_styles_scripts');
<div class="fusion-modal modal fade modal-1 modal-callback" tabindex="-1" role="dialog" aria-labelledby="modal-heading-1" aria-hidden="true" style="display: none;"><style type="text/css">.modal-1 .modal-header, .modal-1 .modal-footer{border-color:#ebebeb;}</style><div class="modal-dialog modal-sm"><div class="modal-content fusion-modal-content" style="background-color:#f6f6f6"><div class="modal-header"><button class="close" type="button" data-dismiss="modal" aria-hidden="true">×</button><h3 class="modal-title" id="modal-heading-1" data-dismiss="modal" aria-hidden="true" data-fontsize="27" data-lineheight="50">Наш менеджер скоро вам перезвонит</h3></div><div class="modal-body fusion-clearfix">
<div role="form" class="wpcf7" id="wpcf7-f18123-o1" dir="ltr" lang="ru-RU">
<div class="screen-reader-response"></div>
<form action="/product-category/chargers/#wpcf7-f18123-o1" method="post" class="wpcf7-form form-submit" novalidate="novalidate">
<div style="display: none;">
<input type="hidden" name="_wpcf7" value="18123">
<input type="hidden" name="_wpcf7_version" value="4.7">
<input type="hidden" name="_wpcf7_locale" value="ru_RU">
<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f18123-o1">
<input type="hidden" name="_wpnonce" value="e450f9a8ae">
</div>
<p><label> Ваше имя<br>
<span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false"></span> </label></p>
<p><label> Ваш телефон *<br>
<span class="wpcf7-form-control-wrap your-tel"><input type="tel" name="your-tel" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-tel wpcf7-validates-as-required wpcf7-validates-as-tel" aria-required="true" aria-invalid="false"></span> </label></p>
<p><label> Ваш e-mail *<br>
<span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false"></span> </label></p>
<p><input type="submit" value="Получить звонок!" class="wpcf7-form-control wpcf7-submit"><div class="fusion-slider-loading" style="display: none;"></div></p>
<p style="font-size:9px">Нажимая кнопку вы принимаете <a href="/user-agreement/" target="_blank">пользовательское соглашение</a> и соглашаетесь с условиями <a href="/politika/" target="_blank">политики конфиденциальности</a></p>
<div class="fusion-alert alert custom alert-custom fusion-alert-center fusion-alert-capitalize alert-dismissable wpcf7-response-output wpcf7-display-none" style="background-color:;color:;border-color:;border-width:1px;"><button style="color:;border-color:;" type="button" class="close toggle-alert" data-dismiss="alert" aria-hidden="true">×</button><div class="fusion-alert-content-wrapper"><span class="fusion-alert-content"></span></div></div></form></div>
</div></div></div></div>
БЕЗ ПЛАГИНА.
<div id="portfoliowrap">
<div class="portfolio-centered">
<div class="recentitems portfolio">
<?php if( have_rows('gallery') ):
while( have_rows('gallery') ) : the_row();
?>
<div class="portfolio-item graphic-design">
<div class="he-wrap tpl6">
<?php $image = get_sub_field('image');
if( !empty($image) ): ?>
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
<?php endif; ?>
<div class="he-view">
<div class="bg a0" data-animate="fadeIn">
<h3 class="a1" data-animate="fadeInDown"><?php the_sub_field('title'); ?></h3>
<a data-rel="prettyPhoto" href="<?php echo $image['url']; ?>" class="dmbutton a2" data-animate="fadeInUp"><i class="fa fa-search"></i></a>
<a href="<?php echo get_sub_field('page_link');?>" class="dmbutton a2" data-animate="fadeInUp"><i class="fa fa-link"></i></a>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div>
</div>
<?php echo $image['url']; ?>
<?php the_sub_field('page_link');?>
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
передать урл миниатюры.