Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dFactory

    (@dfactory)

    The easiest way would be to call da_get_download_attachments() function and then output the result.

    Something like:

    <?php
    $attachments = da_get_download_attachments( $post->ID );
    
    if ( $attachments ) {
    	printf( __( '%d attachments', 'textdomain' ), count( $attachments ) );
    } else {
    	echo __( 'No attachments', 'textdomain' );
    }
    ?>
    Thread Starter tzivaeris

    (@tzivaeris)

    Wow that did the trick ??
    Thank you for this great plugin and your excellent support

    I highly reccomend this plugin for all web developers out there

    Keep the good work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Number of attachments in the excerpt’ is closed to new replies.