• Resolved patricktulio

    (@patricktulio)


    Hi!

    I’m using the plugin for about 2 years, and i love it.

    I was wodering, its possible to filter the post type using post_types and words like a charm.

    But its possible to order by post count of that custom type?

    On my site has “especials” and “rule”. I want to order by the sum of both post types and show the author.

    Example:
    Author A has 2 posts in especials and 3 in rule.
    Author B has 3 posts in especials and 4 in rule.

    The order will be B(7) first, A(5 posts)last

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi,

    Thanks, happy to hear that.

    Try orderby="all_post_count" it takes into account all the post types you supplied with the post_types parameter.

    Thread Starter patricktulio

    (@patricktulio)

    It worked. <3

    One last thing, the parameter latest_post_after when i use, doesn’t show correct results, btw i trying to show last 90days only.

    [authors_list style=”1″ only_authors=”no” skip_empty=”no” post_types=”regradetres,especiais,analises” orderby=”all_post_count” show_bio=”no” show_link=”no” exclude=”1,2,17,3,5″ order=”DESC” count_text=”Artigos”]

    This is the code that i’m using right now, would be great if i can limit for the last 90 days of publications for each.

    If is not possible that’s ok, i’m really happy right now.

    Thank you

    Plugin Author WPKube

    (@wpkube)

    Great, happy to hear that ??

    As for the latest_post_after, it doesn’t currently work with custom post types but we’ll get that fixed and release an update, will try to push that for today.

    Thread Starter patricktulio

    (@patricktulio)

    Oh great!

    Thank you.

    Plugin Author WPKube

    (@wpkube)

    Hi @patricktulio

    The update is released.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can i order authors by custom post type count?’ is closed to new replies.