Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Mat 🙂

    I remember i promised to check it. Will do asap, probably this week-end. I’ll come back on this post asap.

    Thread Starter Mat

    (@mat2010)

    Thank you ! 🙂

    Ok,

    Using 1.3.0, to list files that can be seen by any user, the custom loop needs to look like this :

    <?php if ( buddydrive_has_items( array( 'buddydrive_scope' => 'files', 'type' => buddydrive_get_file_post_type() ) ) ): ?>
    <?php while ( buddydrive_has_items() ) : buddydrive_the_item(); ?>
    <?php // custom code to display files ;?>
    <?php endwhile; ?>
    <?php endif; ?>

    the “files” buddydrive_scope will get all public and password protected files.

    In 1.3.1, it will be possible to get only public files using a custom loop starting this way
    <?php if ( buddydrive_has_items( array( 'buddydrive_scope' => 'public', 'type' => buddydrive_get_file_post_type() ) ) ): ?>

    see https://github.com/imath/buddydrive/issues/36

    Thanks for your suggestion.

    Thread Starter Mat

    (@mat2010)

    Thank you @imath ! I can’t wait to try the next update 🙂

    Hello and thank U, 2.0 pdate is great,

    reopening this topic because since this latest update, this loop doesn’t seem to work anymore ?

    Any help would be apprciated !

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Filtering 'buddydrive_has_items'’ is closed to new replies.