Post voting template tag on grid?

hi,

how can i add the post voting template tag to the grid on the front page of gridmarket? tried a few things… not sure how to add it right below product photos.

thanks,

gina

  • gina
    • The Bug Hunter

    hi phil,

    ya i thought the same but… the home is index.php and here it is:

    <?php get_header(); ?>
    <div id="content">
    <?php if($bp_existed == 'true') : ?>
    <?php do_action( 'bp_before_blog_home' ) ?>
    <?php endif; ?>
    <?php if ( class_exists( 'MarketPress' ) ) {
    ?>
    <?php if ( is_multisite() ) {?>
    <?php
    $options = get_option('framemarket_theme_options');
    $showpicker = $options['showinput'];
    if ($showpicker == "Global"){
    ?>
    <div id="mp-product-grid">
    <h1 class="post-title"><?php echo framemarket_page_title_output(); ?></h1>
    <?php
    $args = array();
    $args['echo'] = false;
    //check for paging
    if (get_query_var('paged'))
    $args['page'] = intval(get_query_var('paged'));

    $content = framemarket_mp_list_global_products( $args );
    $content .= get_posts_nav_link();

    echo $content;
    ?>
    <div class="clear"></div>
    </div>
    <?php } else {?>
    <h1 class="post-title"><?php _e( 'Our products', TEMPLATE_DOMAIN ) ?></h1>
    <div id="mp-product-grid">
    <?php framemarket_grid_mp_list_products();?>
    <div class="clear"></div>
    </div>
    <?php } ?>
    <?php } else {?>
    <h1 class="post-title"><?php _e( 'Our products', TEMPLATE_DOMAIN ) ?></h1>
    <div id="mp-product-grid">
    <?php framemarket_grid_mp_list_products();?>
    <div class="clear"></div>
    </div>
    <?php
    } } else { get_template_part( 'content'); } ?>
    <?php if($bp_existed == 'true') : ?>
    <?php do_action( 'bp_after_blog_home' ) ?>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer() ?>

    seems like i’d have to insert within marketpress..? i just can’t figure where is there right place to do it without messing with anything else…

    thanks,

    gina

  • gina
    • The Bug Hunter

    hi phil,

    so weird.. ya i had tried there before and it would not show up.. i tried again right now.. still no show but this time i viewed the html source and the code is showing up in the right spot but the template tag is not working..?

    <h1 class="post-title"></h1>
    <div id="mp_product_list"><div class="product mp_product"><h3 class="mp_product_name"><a href="http://site.com/handmade/store/products/demo-product-4-2/">Demo Product 4</a></h3><br><?php wdpv_vote(); ?><div class="mp_product_content">

    any ideas?

    gina

  • gina
    • The Bug Hunter

    and this is how/where i am inserting it:

    $content .= '<h3 class="mp_product_name"><a href="' . $permalink . '">' . esc_attr($product->post_title) . '</a></h3><br><?php wdpv_vote(); ?>';
    $content .= '<div class="mp_product_content">';

    $content .= $thumbnail;

    $content .= '</div>';

  • gina
    • The Bug Hunter

    hi tammie :slight_smile: how are you?

    ya.. i caught VeBailovity in support chat and the issue is with the post voting plugin and has something to do with the tag and also it being a multisite.. i think the fix will be in his next release.

    i appreciate your response here on this.. i guess i will wait for his update.

    thanks so much! :slight_smile:

    gina