You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I add a template (based on the default.php, or even the default one copyied to theme-dir/list-category-posts and renamed to "defaultone"), like this...
The text was updated successfully, but these errors were encountered:
pezcurrel
changed the title
date_tag and date_class isn't honored when using (default) template
date_tag and date_class aren't honored when using (default) template
Jan 7, 2018
Ok, I'll close it since it's already discussed in #284 (I agree with you @zymeth25 that shortcode parameters should take precedence over function arguments). Thanks for helping :)
Hi,
when using...
[catlist name="segnalazioni" pagination="yes" numberposts="20" excerpt="yes" date="yes" date_tag="p" date_class="lcpt_date" thumbnail="yes" thumbnail_class="lcpt_thumb"]
...I get the correct html for the date:
<p class="lcpt_date"> 13 dicembre 2017 </p>
But when I add a template (based on the default.php, or even the default one copyied to
theme-dir/list-category-posts
and renamed to "defaultone"), like this...[catlist name="segnalazioni" pagination="yes" numberposts="20" excerpt="yes" date="yes" date_tag="p" date_class="lcpt_date" thumbnail="yes" thumbnail_class="lcpt_thumb" template="defaultone"]
...date_tag and date_class are ignored so I get the date without the
<p class="lcpt_date">
and</p>
.The default template (default.php) states...
$lcp_display_output .= ' ' . $this->get_date($post);
I worked around the issue by changing that to this...
$lcp_display_output .= '<p class="lcpt_date">' . $this->get_date($post) . '</p>';
...but it's an ugly solution ;)
The text was updated successfully, but these errors were encountered: