pintsizeWP
Forum Replies Created
-
Forum: Plugins
In reply to: [List category posts] possible to indent excerpt?Thanks for your reply. Unfortunately, no luck. I added it to Custom CSS and nothing changed. CSS checker gives this error:
Unexpected token ‘&’ at line 228, col 14
Expected RBRACE at line 228, col 20.I am using Custom CSS section successfully for other changes, so I don’t think this is operator error, but it’s always possible I’m doing something wrong.
Forum: Plugins
In reply to: [List category posts] possible to indent excerpt?My indent was not preserved. Let me see if I can make it work here:
November 2, 2020
(indent here) Energy field of potential activity; etc.That did the trick, Angelo. Thanks very much!
I tried this simple template code:
<?php $lcp_display_output = ''; $lcp_display_output .= '<ul>'; foreach ($this->catlist->get_categories_posts() as $single): $lcp_display_output .= '<li>'; $lcp_display_output .= '<h1>'.$this->get_post_title($single).'<h1>'; $lcp_display_output .= $this->get_excerpt($single, 'p', 'your p style'); $lcp_display_output .= '</li>'; endforeach; $lcp_display_output .= '</ul>'; $this->lcp_output = $lcp_display_output; ?>I see a difference — it does display the posts titles, but no dates, no excerpts.
Thanks for your quick response — I was using the same shortcode. Fixed it and it works great now. Thank you again.