WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
List all posts and count connections (1 post)

  1. frankhertz
    Member
    Posted 1 year ago #

    Hi Scribu, here's a challenge for you:

    I have a custom post type (Companies) that is connected to two other custom post types (call them "Apples" and "Bananas").

    What I'd like to do on a Page is list out ALL companies and then show how many Apples and how many Bananas are connected to each one, in descending order, e.g.:

    Company A
    Apples: 47
    Bananas: 58
    Total: 105

    Company B
    Apples: 43
    Bananas: 52
    Total: 95

    And so on ... and then eventually I'd like to restrict the list by time period, e.g., show me the list of connections from the past 90 days, 180 days, etc.

    Any thoughts or suggestions?

    Thanks!

    - Frank

    http://wordpress.org/extend/plugins/posts-to-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags