Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Sure, email sent. Thanks

    I also have the same problem, just seeing the Youtube link – no video frame, and in my case refreshing does not seem to help, even after clearing caches All was working fine before update. I have clicked Update Posts but no success.

    Thread Starter brickwicks

    (@brickwicks)

    Scratch that. I found the problem in my broken code! Sorry. Great plugin, keep up the good work 🙂

    I have also been experiencing this. Any update on what might be causing the problem. It’s a shame as it’s a great plugin.

    Actually, I have just removed all plugins and installed one by one again. Nothing specific seemed to cause the issue, but all is working fine now. Strange. Something clearly amiss.

    Pretty sure I’m having the same problem on a clean install. Can’t for the life of me figure out why. Images show perfectly in list view (which is a pain to navigate) but only a handful show up in grid and spinner just keeps on spinning till it seems to time out.

    Has anyone got any ideas on this yet?

    Thread Starter brickwicks

    (@brickwicks)

    Hi and first up, big apologies for not catching up with this. For all the help I’ve received through forums such as this, it’s pretty bad form not following up on a question.

    Having said that, I’m not sure this is what you’re after!

    Whilst for all I know there could be an easier way, I managed to get the custom fields data into the plugin by editing the plugin index.php (which I know leaves it open to destruction should their be an update…not ideal). It was my first time dealing with a custom post type I’d created. If I did it now I would save some bother by using a custom-post-type plugin as described above.

    Still, in index.php of the plugin I added a get_post_custom call and some extra args to the ‘while($lcptu->have_posts())’ etc line (around line 165?).

    while($lcptu->have_posts()) {
                        $lcptu->next_post();
                        $count++;
                        $id = $lcptu->post->ID;
      				$custom = get_post_custom($id);
    					$title = $custom["Product_title"][0];
    					$sets = $custom["Product_sets"][0];
    					$status = $custom["Product_status"][0];
    					$price = $custom["Product_price"][0];
    					$shipping = $custom["Product_shipping"][0];
    					$var1 = $custom["Product_var1"][0];
    					?>
                        <li class="post-<?php echo $id; ?> <?php echo ($count%2)?'odd':'even'; ?>">
                            <h4 class="tm_lcptu_post_title"><?php echo '<a href="'.get_permalink($id).'" class="tm_lcptu_post_title_link">'.get_the_title($id).'</a>'; ?></h4>
    
                            <?php
                            if($instance['show_thumbnails'] && $instance['show_thumbnails'] == 'yes'){
                                if(has_post_thumbnail($id)) {
                                    echo '<a class="tm_lcptu_post_thumbnail" href="'.get_permalink($id).'">';
                                    if($instance['thumbnail_format']) {
                                        if($instance['thumbnail_format'] != '0')
                                            $image = wp_get_attachment_image_src(get_post_thumbnail_id($id), $instance['thumbnail_format']);
                                        elseif($instance['thumbnail_width'] > 0 && $instance['thumbnail_height'] > 0)
                                            $image = wp_get_attachment_image_src(get_post_thumbnail_id($id), array($instance['thumbnail_width'], $instance['thumbnail_height']));
                                        else
                                            $image = wp_get_attachment_image_src(get_post_thumbnail_id($id));
                                        if($instance['thumbnail_width'] > 0)
                                            $image[1] = $instance['thumbnail_width'];
                                        if($instance['thumbnail_height'] > 0)
                                            $image[2] = $instance['thumbnail_height'];
                                        echo '<img class="pb_border" src="'.$image[0].'" alt="'.$lcptu->post->post_title.'" width="'.$image[1].'" height="'.$image[2].'" />';
                                    }
                                    echo '</a></br>
                                    <p class="pb_sideprice">£'.$price.'</p>
                      <p>';
                      		if ($status=='In Stock'){
                      		echo print_wp_cart_button_for_product(''.$title.'',$price,$shipping,$var1); }
                      		elseif ($status=="Out of Stock"){
                      		echo '<strong>Sorry - Out of stock at present</strong>'; }
                      		else {
                      		echo ''; }
                      		echo'</p>';

    Does that help?

    Thread Starter brickwicks

    (@brickwicks)

    Actually, no worries, have sorted it.

    Cheers,
    PB

Viewing 8 replies - 1 through 8 (of 8 total)