Browse Source

builder_status is deprecated since version 4.2.1! Use AviaBuilder::get_alb_builder_status() instead

windhamdavid 1 year ago
parent
commit
273c881522
2 changed files with 2 additions and 12 deletions
  1. 1 6
      search.php
  2. 1 6
      taxonomy-specialties.php

+ 1 - 6
search.php

@@ -113,12 +113,7 @@
 							$current_post['post_layout']	= avia_layout_class('main', false);
 							$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
 	
-							/*If post uses builder change content to exerpt on overview pages*/
-						    if(AviaHelper::builder_status($current_post['the_id']) && !is_singular($current_post['the_id']) && $current_post['post_type'] == 'post')
-						    {
-							   $current_post['post_format'] = 'standard';
-							   $blog_content = "excerpt_read_more";
-						    }
+
 	
 	
 							/*

+ 1 - 6
taxonomy-specialties.php

@@ -113,12 +113,7 @@
 							$current_post['post_layout']	= avia_layout_class('main', false);
 							$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
 	
-							/*If post uses builder change content to exerpt on overview pages*/
-						    if(AviaHelper::builder_status($current_post['the_id']) && !is_singular($current_post['the_id']) && $current_post['post_type'] == 'post')
-						    {
-							   $current_post['post_format'] = 'standard';
-							   $blog_content = "excerpt_read_more";
-						    }
+
 	
 	
 							/*