-
Search Results
-
Topic: Tag returns Error
When I klick on a tag I get the following:
please help:Fatal error: Uncaught Error: Cannot unset string offsets in /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-content/themes/enfold-child/functions.php:102 Stack trace: #0 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-includes/class-wp-hook.php(286): avia_post_slide_query_mod(Array, Array) #1 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #2 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php(865): apply_filters(‘avia_post_slide…’, Array, Array) #3 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-content/themes/enfold/tag.php(105): avia_post_slider->query_entries() #4 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-includes/template-loader.php(78): include(‘/www/htdocs/w00…’) #5 /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-blog-header.php(19): require_once(‘/www/htdocs/w00…’) #6 /www/htdocs/w00b6cdc/webseite-relaunch-2017/index.php(17): require(‘/www/htdocs/w00…’) #7 {main} in /www/htdocs/w00b6cdc/webseite-relaunch-2017/wp-content/themes/enfold-child/functions.php on line 102
Die Website weist technische Schwierigkeiten auf.Hello I try to change blog layout for tag.php using
From
$avia_config[‘blog_style’] = apply_filters(‘avf_blog_style’, avia_get_option(‘blog_style’,’multi-big’), ‘tag’);
if($avia_config[‘blog_style’] == ‘blog-grid’)To
$avia_config[‘blog_style’] = apply_filters(‘avf_blog_style’, avia_get_option(‘blog_style’,’multi-big’), ‘tag’);
if($avia_config[‘blog_style’] == ‘single-small’)But don not work https://www.waterworldsons.it/tag/allevamento-golden-retriever-americano/
<?php $current_tag = single_tag_title(“”, false); ?>
$output .= “<h1 class=’post-title tag-page-post-type-title’>”.$label.”</h1>”;
Do not work
.category-term-description p {font-size:18px!important;}
Also title term is missing in tag.php template ?
HI
I have some questions about the tag archive pages. I have some edited the tag.php so that the portfolio grid is in 4 columns instead of 3, but am seeing some pages are loading into 2 pages like the one shown below, even though there is space for more items on the 1st page. Can you help me fix this? Is it a matter of allowing only a certain number of items to show in the portfolio on a page? I’d like to show 12 on the page.Also is there a way to add some padding or space under the grid?
thanks for your help,
Nancymy tag.php code is:
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config, $more; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); echo avia_title(array('title' => avia_which_archive())); do_action( 'ava_after_main_title' ); ?> <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'> <div class='container template-blog '> <main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>> <div class="category-term-description"> <?php echo term_description(); ?> </div> <?php global $wp_query, $posts; $backup_query = $wp_query; $sorted = array('post'=>array()); $post_type_obj = array(); foreach($posts as $post) { $sorted[$post->post_type][] = $post; if(empty($post_type_obj[$post->post_type])) { $post_type_obj[$post->post_type] = get_post_type_object($post->post_type); } } $avia_config['blog_style'] = apply_filters('avf_blog_style', avia_get_option('blog_style','multi-big'), 'tag'); if($avia_config['blog_style'] == 'blog-grid') { $output = ''; $post_ids = array(); foreach($posts as $post) $post_ids[] = $post->ID; if(!empty($post_ids)) { echo "<div class='entry-content-wrapper'>"; foreach($sorted as $key => $post_type) { if(empty($post_type)) continue; if(isset($post_type_obj[$key]->labels->name)) { $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name); $output .= "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>"; } else { $output .= "<hr />"; } $atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 4, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key ) ); $blog = new avia_post_slider($atts); $blog->query_entries(); $output .= $blog->html(); } echo $output; echo '</div>'; } else { get_template_part( 'includes/loop', 'index' ); } } else { foreach($sorted as $key => $post_type) { if(empty($post_type)) continue; if(isset($post_type_obj[$key]->labels->name)) { $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name); echo "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>"; } else { echo "<hr />"; } if($key == 'portfolio') { $args = array_merge( $wp_query->query_vars, array( 'post_type' => $key ) ); query_posts( $args ); $grid = new avia_post_grid(array( 'linking' => '', 'columns' => '4', 'contents' => 'excerpt', 'sort' => 'no', 'paginate' => 'yes', 'set_breadcrumb' => false, )); $grid->use_global_query(); echo $grid->html(); } else { $args = array_merge( $wp_query->query_vars, array( 'post_type' => $key ) ); query_posts( $args ); $more = 0; get_template_part( 'includes/loop', 'index' ); } $wp_query = $backup_query; } } ?> <!--end content--> </main> <?php //get the sidebar $avia_config['currently_viewing'] = 'blog'; get_sidebar(); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php get_footer(); ?>Hello!
I have added a custom image size (rb-square in functions file), and use that size on an advanced builder created page:
https://richard-bauer.psstudiosdev.com/work/Now, we want the same layout for the dynamically generated archive pages: (tag, and portfolio categories)
https://richard-bauer.psstudiosdev.com/portfolio_entries/higher-education/
this uses the customized template in child theme: taxonomy-portfolio_entries.php
AND
https://richard-bauer.psstudiosdev.com/tag/faculty-offices/
this uses the customized template in child theme: tag.phpThose templates use a different image size when they are rendered. I’ve attempted to change the size that they display through many techniques in this forum – this one in particular looked promising, but had no effect: https://kriesi.at/support/topic/edit-the-archive-page-template/
I want the templates to use the Featured Image as set in the portfolio post, but use a square format.
How can I change the image size that these templates display?
