• Resolved philreardon

    (@philreardon)


    Hi there,

    I have two minor issues with the plugin:

    1. Is there any way to have the slider display ONLY the post excerpt (ie before the<!–More–> tag? I use it frequently and it’d be nice to have FA take it into account providing the excerpt is short enough.
    2. Also, I’ve allowed for the <p> tag in the slider, but it seems to be ignoring line breaks altogether, any thoughts?

    Thanks!

    https://www.ads-software.com/extend/plugins/featured-articles-lite/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Constantin Boiangiu

    (@constantinboiangiu)

    Hi,

    1. Not for the moment but will be available with the next update.
    2. There’s a problem with the truncation function, I know about it, didn’t had the time to solve it though. Will try to do it ASAP.

    Hi there!

    Any progress on issue #2 – line breaks? Any known workarounds out there? I have a client who is very anxious to get page breaks working on his FA Lite sliders.

    https://www.trustmeimascientist.com

    Plugin Author Constantin Boiangiu

    (@constantinboiangiu)

    Have you tried except of p tags to allow <br> and maybe <br /> ?

    I needed to display excerpts when available, with a fallback to the truncated content. Since excerpts allow for HTML, this was perfect for me.

    Here’s the fix:

    In themes/{theme_name}/display.php, change:

    <p><?php echo FA_truncate_text($post->FA_post_content, $image ? $options['desc_truncate'] : $options['desc_truncate_noimg']);?></p>

    to

    <p>
    		<?php 	if( $post->post_excerpt) {
    				echo $post->post_excerpt;
    			}
    			else {
    				echo FA_truncate_text($post->FA_post_content, $image ? $options['desc_truncate'] : $options['desc_truncate_noimg']);
    			}
    		?>
    		</p>

    Hope this helps.

    Hi again guys,

    Constantin and fcrossen – I tried both your suggestions, but it’s still not working for me.

    Any other ideas? When is the next FA Lite update due?

    Plugin Author Constantin Boiangiu

    (@constantinboiangiu)

    We do out best to be ready with the next update by the end of this month. It was a lot of work and still is (for this and for clients I have) but hopefully with time this will turn into a full time job. Time will tell.
    About your line breaks problem, allowing them in slider settings should do it (at least technically) but if you say it doesn’t one thing you could do is disable HTML stripping from the text altogether.
    In file includes/common.php, inside function FA_truncate_text almost at the end of the function you’ll notice php function strip_tags is used. Either remove that function completely or manually allow br tags in it. If you don’t know how to do that, contact me on from https://www.php-help.ro and we’ll continue this over e-mail.

    Constantin, I totally understand how hard it is to make a living freelancing! Thanks a lot for all your help.

    I think we’ll wait for the next update to make any changes. Maybe the WordPress theme I’m using (Thematic Child Theme) is causing the conflict.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Featured Articles Lite] Using Post Excerpts/Line Breaks in Slider’ is closed to new replies.