The Grid and the archive template

Hi guys
Could you help us with this please, as per another member we have added a new "_index.php in x-child global. Ou page isn’t displaying correctly.Here is what I get on eh page at present.

<?php // ============================================================================= // VIEWS/GLOBAL/_INDEX.PHP // ----------------------------------------------------------------------------- // Includes the index output. // ============================================================================= $stack = x_get_stack(); if ( is_home() ) : $style = x_get_option( 'x_blog_style' ); $cols = x_get_option( 'x_blog_masonry_columns' ); $condition = is_home() && $style == 'masonry'; elseif ( is_archive() ) : $style = x_get_option( 'x_archive_style' ); $cols = x_get_option( 'x_archive_masonry_columns' ); $condition = is_archive() && $style == 'masonry'; elseif ( is_search() ) : $condition = false; endif; ?> <?php if ( $condition ) { x_get_view( 'global', '_script', 'isotope-index' ); ?> <div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>"> <?php if (have_posts()) { $index_grid = get_page_by_title(html_entity_decode('Index Grid'), 'OBJECT', 'the_grid'); $archive_grid = get_page_by_title(html_entity_decode('Archive Grid'), 'OBJECT', 'the_grid'); $search_grid = get_page_by_title(html_entity_decode('Search Grid'), 'OBJECT', 'the_grid'); if ($index_grid && (is_home() || is_front_page())) { The_Grid('Index Grid', true); } else if ($archive_grid && is_archive()) { The_Grid('Archive Grid', true); } else if ($search_grid && is_search()) { The_Grid('Search Grid', true); } else { while (have_posts()) { the_post(); if ( $stack != 'ethos' ) { x_get_view( $stack, 'content', get_post_format() ); } else { x_ethos_entry_cover( 'main-content' );	} } } } else { x_get_view( 'global', '_content-none' ); } ?> </div> <?php } else { if ( have_posts() ) { $index_grid = get_page_by_title(html_entity_decode('Index Grid'), 'OBJECT', 'the_grid'); $archive_grid = get_page_by_title(html_entity_decode('Archive Grid'), 'OBJECT', 'the_grid'); $search_grid = get_page_by_title(html_entity_decode('Search Grid'), 'OBJECT', 'the_grid'); if ($index_grid && (is_home() || is_front_page())) { The_Grid('Index Grid', true); } else if ($archive_grid && is_archive()) { The_Grid('Archive Grid', true); } else if ($search_grid && is_search()) { The_Grid('Search Grid', true); } else { while (have_posts()) { the_post(); x_get_view( $stack, 'content', get_post_format() ); } } } else { x_get_view( 'global', '_content-none' ); } } if (!is_home() && !is_front_page() && !is_archive()) { pagenavi(); } ?>

Hey there,

Regretfully, we do not have support for custom development. Custom code or snippets given in this forum serves only as a guide. We do not have support for them because they are not official parts of the theme and they may work or not work. With that said, using those snippets requires user knowledge of the PHP language.

We do have an in-house custom development team that offer paid services, who may be able to assist. They can be contacted at [email protected] if this is of interest to you.

Thank you for your understanding.

thanks Christian will follow thru

You’re welcome.

Hi guys
We’ve reached out to [email protected] a couple of times on this issue but haven’t had a response, is it possible for you to give them a nudge our way, thanks in advance

Sorry to hear that, I’ll forward this for further checking. But I can’t guarantee any response right away as they may be busy attending other messages ahead of yours :slight_smile: Thanks!

Hi Rad
Yes they came back to me my job was to small as it turns out so that directed me to our User group where I reached out and got some help from a member in Florida, I employe3d him and we had it sorted in 24hours.

Glad this is now sorted out for you.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.