character_count

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 6 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #436613

    Manu Kaspar
    Free User

    Istead of an excerpt I need to display full description of a place in a list.
    as in [gd_listings … character_count=”5000″] but it only allows 255.
    How can I change it to display all of the description in a list?

    #436652

    Alex Rollin
    Moderator
    Post count: 27815

    There is a limit built into WordPress for excerpts. It can be adjusted with this snippet (set to 50000 words here).

    
    
    
    add_filter( 'excerpt_length', function($length) {
        return 50000;
    } );
    

    This is a PHP Snippet and can be added as described here: https://wpgeodirectory.com/docs/useful-plugins/#snippets

    Then make sure your shortcode has the correct punctuation like:

    
    
    
    [gd_listings post_type="gd_place" layout="1" post_number="100" character_count="50000"]
    
Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount