Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1052086
    ITPHX
    Participant

    Hello,

    I used now Icon 3. On this forum I found solution but it’s not working like I wants:

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_INDEX.PHP
    // —————————————————————————–
    // Includes the index output.
    // =============================================================================

    $stack = x_get_stack();

    if ( is_home() ) :
    $style = x_get_option( ‘x_blog_style’, ‘standard’ );
    $cols = x_get_option( ‘x_blog_masonry_columns’, ‘2’ );
    $condition = is_home() && $style == ‘masonry’;

    elseif ( is_archive() ) :
    $style = x_get_option( ‘x_archive_style’, ‘standard’ );
    $cols = x_get_option( ‘x_archive_masonry_columns’, ‘2’ );
    $condition = is_archive() && $style == ‘masonry’;
    if(is_tag()) $my_posts = get_posts(array(‘tag’ => get_query_var(‘tag’)));
    else if(is_author()) $my_posts = get_posts(array(‘author’ => get_query_var(‘author’)));
    else if(is_date()) $my_posts = get_posts(array(‘m’ => get_query_var(‘m’)));
    else $my_posts = get_posts(array(‘cat’ => get_query_var(‘cat’)));

    $my_post_ids = array();

    foreach($my_posts as $post) {
    array_push( $my_post_ids, $post -> ID );
    }
    elseif ( is_search() ) :
    $condition = is_search() && $style == ‘masonry’;

    if(is_tag()) $my_posts = get_posts(array(‘tag’ => get_query_var(‘tag’)));
    else if(is_author()) $my_posts = get_posts(array(‘author’ => get_query_var(‘author’)));
    else if(is_date()) $my_posts = get_posts(array(‘m’ => get_query_var(‘m’)));
    else $my_posts = get_posts(array(‘cat’ => get_query_var(‘cat’)));

    $my_post_ids = array();

    foreach($my_posts as $post) {
    array_push( $my_post_ids, $post -> ID );
    }

    endif;

    ?>

    <?php if ( $condition ) : ?>
    <?php echo do_shortcode(‘[ess_grid alias=”my_blog” posts=”‘.implode(‘,’, $my_post_ids).'”]’); ?>
    <?php else : ?>
    <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php x_get_view( $stack, ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>
    <?php else : ?>

    <?php x_get_view( ‘global’, ‘_content-none’ ); ?>
    <?php endif; ?>
    <?php endif; ?>

    <?php pagenavi(); ?>

    Problemm is that I’ve a few type of post. I would like to make that for each one type of post is different grid from essential grid.
    For exmaple for post: type_1 I would like used grid “search_type_1” for post type_2 I would like to used grid “search_type_2” etc.

    Maybe some one can help me how _index for global settings in ICON 3 have to be?

    Best Regards

    #1052090
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1052092
    ITPHX
    Participant

    Hello Rupok,

    I’m used word “someone” coincidentally because maybe someone on this forum can help me not only support team Themeco.

    Best Regards.

    #1052100
    Rad
    Moderator

    Hi there,

    Ah I see, in that case, I’ll check on that too, that will be helpful 🙂

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1052086 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>