Viewing 1 replies (of 1 total)
  • Thread Starter idear

    (@idear)

    Hi,

    problem is this:

    $sql = “SELECT DISTINCT
    u.ID,
    u.user_nicename,
    MAX(p.post_modified_gmt) AS last_post
    FROM
    {$wpdb->users} u,
    {$wpdb->posts} p
    WHERE
    p.post_author = u.ID
    AND p.post_status = ‘publish’
    AND p.post_type IN(‘” . implode(“‘,'”, array_map(‘esc_sql’, $enabledPostTypes)) . “‘)
    AND p.post_password = ”
    GROUP BY
    u.ID,
    u.user_nicename”;

    Only show authors with publish posts.

Viewing 1 replies (of 1 total)

The topic ‘XML Limit 25 authors’ is closed to new replies.