• I am simply trying to control the number of WORDS that are displayed for the SU_POSTS shortcode.

    It seems like there should be a docs page somewhere that tells me all the wonderful delimiters I can use to get just what I want to display.

    I am trying:

    [su_posts post_type=”testimonial” excerpt_size=”20″ ]

    or

    [su_posts post_type=”testimonial” excerpt_length=”20″ ]

    IS THERE SERIOUSLY no way to get this done????

    SUPER frustrating folks. VERY frustrating. Spend LITERALLY days trying to google this and figure it out. TERRIBLE documentation.

    https://www.ads-software.com/plugins/shortcodes-ultimate/

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can find documentation while in the admin of your site. Explore the “Shortcodes -> Cheatsheet” or “Shortcodes -> Examples” sections in your admin menu.

    Looking in those areas I did not see a way to change excerpt length, but just a little digging into the WordPress Codex at https://codex.www.ads-software.com/Function_Reference/the_excerpt revealed this filter code that you could add to your functions.php file:

    function custom_excerpt_length( $length ) {
    	return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Alternatively, try a plugin such as https://www.ads-software.com/plugins/advanced-excerpt/

    Also, you may have already checked the knowledge base but in case you missed it: https://gndev.info/kb/

    Thread Starter opticalfuel

    (@opticalfuel)

    I think I did try something similar to that, but maybe not EXACTLY that code for the functions.php … trying..

    Thanks.

    Still surprising that there is not an easier way to modify the excerpt for the su_posts shortcode. It would really be a good addition.

    Thread Starter opticalfuel

    (@opticalfuel)

    Yup…

    gives me the same error that another code generated…

    Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /home/devbuildhost15/public_html/dentsntints/wp-content/themes/limitless/functions.php:34) in /home/devbuildhost15/public_html/dentsntints/wp-content/themes/limitless/backend/helper.php on line 320

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘NO clear Documentation about SU_POSTS shortcode?’ is closed to new replies.