PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Creating filter result table with posts excerpts

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello I tried to customize my_cars_2 template so that it would show post excerpt instead of in-post fancy images. I created my copy of the template my_cars_2, its name is bazar_1.

I deleted this code:

<?php echo do_shortcode('[inpost_fancy thumb_width="50" thumb_height="50" post_id=........
and copied there the code from the template woocommerce/table1:
<?php echo $post->post_excerpt; ?><br />
My shortcode is:
[mdf_results_by_ajax shortcode="mdf_custom template=any/bazar_1 post_type=bazar orderby=date order=desc page=1 per_page=9 pagination=tb" animate=1 animate_target=body]
but it does not show the post excerpt. Should I change also anything else?
This is the result with my_cars2:
this is my result now with the new template bazar_1:
This my whole bazar_1 template code:
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<?php
wp_enqueue_style('bazar_1', get_stylesheet_directory_uri() . '/mdf_templates/any/bazar_1/css/styles.css');
global $mdf_loop;
MDTF_SORT_PANEL::mdtf_catalog_ordering();
?>
<table>
<thead>
<tr>
<th><?php_e('Title', 'meta-data-filter') ?></th>
<th><?php_e('Description', 'meta-data-filter') ?></th>
<th><?php_e('View', 'meta-data-filter') ?></th>
</tr>
</thead>
<tbodyclass="mdtf_posts">
<?php
while ($mdf_loop->have_posts()) : $mdf_loop->the_post();
?>
<trclass="mdtf_post">
<tdstyle="width: 35%;">
<?php
if (has_post_thumbnail($post->ID)) {
echo'<a href="'.get_permalink($post->ID) .'" title="'.esc_attr($post->post_title) .'">';
echoget_the_post_thumbnail($post->ID, 'thumbnail');
echo'</a>';
}
?><br/>
<strong><ahref="<?phpthe_permalink() ?>"target="_blank"><?phpthe_title() ?></a></strong><br/>
</td>
<tdstyle="width: 60%;"><?phpecho$post->post_excerpt; ?><br/>
<br/>
<?php
$terms = get_the_terms($post->id, 'pa_size');
$tmp = array();
if (!empty($terms)) {
foreach ($terms as $k => $term) {
$tmp[] = $term->name;
}
}
if (!empty($tmp)) {
echo'<b>Size(s)</b>: '.implode(',', $tmp);
}
?><br/>
<?phpechodo_shortcode('[mdf_post_features_panel]'); ?>
</td>
<tdstyle="width: 5%;"><ahref="<?phpthe_permalink() ?>"target="_blank"><?php_e('View', 'meta-data-filter') ?></a></td>
</tr>
<?phpendwhile; // end of the loop. ?>
</tbody>
</table>

Hello

Try  to  use  this  code:

echo get_the_excerpt( $post );

if no luck  - So in your posts, the short description field is empty - https://c2n.me/4eVE34u.png

Thank you very much for your guidance. You were right, there was a mistake in my code and my post excerpts were empty. So I used your piece of code and installed plugin for exceprt creation and it works finally.

Hello

Great! Welcome;)