New shortcode parameter gd_listings post_author

This topic contains 6 replies, has 3 voices, and was last updated by  Guust 8 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #156602
    #156712

    mb
    Buyer
    Post count: 151

    I found the post_author=”current” as an option and it works very well.

    Are there other values for this parameter?

    Most probably you have to update the docs also to reflect this.

    #156868

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    New parameter “post_author” added in [gd_listings] shortcode to filter listings by author – ADDED

    Now listing can be filtered by author by adding parameter post_author=”current” or post_author=”11″
    post_author=”current” will filter the listings by author id of current viewing post.
    post_author=”11″ will filter the listings by author id = 11.

    We will update the docs asap.

    Thanks for the reminder.

    #157031

    mb
    Buyer
    Post count: 151

    Great, great, paolo.

    Really big thanks for this extra parameter. It is doing great job in our project frame.

    Is it possible to dynamically populate the parameter with an author id, and still the shortcode to execute?

    Is it possible to state more than 1 author id: post_author=”5,11″?

    Thanks.

    #157349

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    not inside a post, but if you add the shortcode in a template via php, yes you can.

    No the parameter only accept one author ID.

    Thanks

    #157773

    mb
    Buyer
    Post count: 151

    Great info about the php option.

    #159132

    Guust
    Moderator
    Post count: 29970
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