20 pointsStarting to get into this DEV thingI'm new here
yasminreyes
Member
—
18th August 2011 (9 months ago)
Hello again, I just tried to put the excerpt code on the marketpress grid plugin and it broke my site, unfortunately. I was wondering if there was any code I could put in the php function to add the excerpt below the product and the quantity box beside the price and add to cart button? Thanks so much!
Hello again, I just tried to put the excerpt code on the marketpress grid plugin and it broke my site, unfortunately. I was wondering if there was any code I could put in the php function to add the excerpt below the product and the quantity box beside the price and add to cart button? Thanks so much!
I was referring to the Grid layout shortcode. I got it to work with Marketpress then I tried to put the excerpt code in the plugin's function and my site crashed. I was wondering how to put <?php the_excerpt(); ?> in here:
Founder & CEO
—
11th October 2011 (7 months ago)
#
Hi Yasmin,
Just checking if it was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, could you let us know by re-opening this topic, and we'll get onto it and helping you out asap!
Responses (4)
WPMU DEV Fanatic — 18th August 2011 (9 months ago) #
Hi yasminreyes,
Where about were you trying to include the excerpt? Are you referring to the MarketPress Grid Layout Shortcode from the following thread?
http://premium.wpmudev.org/forums/topic/3-free-add-ons-for-marketpress
Or are you perhaps referring to the GridMarket theme?
Thanks,
David
Member — 18th August 2011 (9 months ago) #
Hi David,
I was referring to the Grid layout shortcode. I got it to work with Marketpress then I tried to put the excerpt code in the plugin's function and my site crashed. I was wondering how to put <?php the_excerpt(); ?> in here:
` if ($last = count($custom_query->posts)) {
$count = 1;
$counter = 0;
foreach ($custom_query->posts as $post) {
//add last css class for styling grids
if (($count%4 == 0))
$class = array('mp_product', 'last-product');
else
$class = 'mp_product';
$content .= '<div '.mp_product_class(false, $class, $post->ID).'>';
$content .= '<h3 class="mp_product_name">ID ) . '">' . $post->post_title . '</h3>';
$content .= '<div class="mp_product_content">';
$product_content = mp_product_image( false, 'list', $post->ID );
//$product_content .= $mp->product_excerpt($post->post_excerpt, $post->post_content, $post->ID);
$content .= apply_filters( 'mp_product_list_content', $product_content, $post->ID );
$content .= '</div>';
$content .= '<div class="mp_product_meta">';
//price
$meta = mp_product_price(false, $post->ID, false);
//button
$meta .= mp_buy_button(false, 'list', $post->ID);
$content .= apply_filters( 'mp_product_list_meta', $meta, $post->ID );
$content .= '</div>';
$content .= '</div>';
$count++;
$counter++;
Founder & CEO — 11th October 2011 (7 months ago) #
Hi Yasmin,
Just checking if it was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, could you let us know by re-opening this topic, and we'll get onto it and helping you out asap!
Otherwise, happy days, glad you got it sorted :)
Cheers, James
Member — 31st December 2011 (4 months ago) #
Hello, I am looking to add excerpt after the Add To Cart button. But I can't get it to work. Please advice.
Become a member