Listing Shortcode Character Count

This topic contains 6 replies, has 3 voices, and was last updated by  getawaydigital 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #511063

    getawaydigital
    Full Member
    Post count: 211

    In V1 it was possible to shorten the excerpt character count in the listing shortcode. Doesn’t seem to be the case in either the listings widget or shortcode editor with V2. Listings shortcode was an important part of V1 site that I am now upgrading to V2 and I really need to be able to reduce except length in some places and remove altogether in others. Can anyone help with a way to do this? Cheers Andy

    #511075

    Alex Rollin
    Moderator
    Post count: 27815

    Use GD Post Content for special options for textarea fields (like the description field) for use in the GD Archive Item template.

    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_content

    #511098

    getawaydigital
    Full Member
    Post count: 211

    Sorry Alex, I maybe didn’t make things clear or I’m just looking at things wrong …

    I am using this shortcode to drop a few key events onto home page as per attached image. I need to be able to control the excerpt length. How do I use GD Post Content along with the shortcode?

    [gd_listings post_type=”gd_event” event_type=”upcoming” single_event=”1″ tags=”featured” sort_by=”event_dates_asc” title_tag=”h3″ layout=”0″ post_limit=”3″ view_all_link=”o” bottom_pagination=”1″ category=”0″ ]

    #511134

    Kor
    Moderator
    Post count: 16516

    Hi getawaydigital,

    Thanks for your reply. As mentioned by Alex, you need to edit the “GD Archive Item template” as explained here https://wpgeodirectory.com/docs-v2/templates/archive-item/

    Then, apply

    limit="10"

    parameter to your gd_post_content shortcode.
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_content

    #511613

    getawaydigital
    Full Member
    Post count: 211

    Unfortunately if I do that it seems to change excerpt length everywhere. I need to simply be able to do it on a page where I am using a short code to deliver a limited amount of results. In V1 I was able to modify the short code I used to pull the result. Is this not now possible in V2 and if not is the any chance it could be implemented ? Cheers

    #511624

    Alex Rollin
    Moderator
    Post count: 27815

    What you say is true. There are currently 3 different ways to show the excerpt. The only want I can think of to adjust how much is shown is with CSS using the GD Post Meta for post_content . That will put in a gradient that can be adjusted with CSS on the height to adjust how many lines are shown.

    Instead of that, you might consider using a custom field that has your excerpt, then hide it in some views.

    In either case you will need CSS targeted at the specific GD Listings blocks you are using.

    I will share your request with the developers but at this time there isn’t a plan to add that functionality back in. I hope you can understand that is because there are now several other ways to achieve the same outcome, methods that were not available in GDV1.

    #511638

    getawaydigital
    Full Member
    Post count: 211

    Hi Alex thanks for the update. At least I know I’m not missing something. I will need to think now as to best way to achieve what I need and may have to come back for a little more advice on implementing your suggestions. In the meantime if developers could find a way of building excerpt length back into this short code it would be very useful , thanks again , Andy

Viewing 7 posts - 1 through 7 (of 7 total)

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

Open Support Ticket