[resolved] Get all Zotpress Item IDs from Collection (2 posts)

  1. tmeche87
    Posted 2 years ago #


    I am trying to do a loop and grab all of the Item ID from a collection in Zotpress. I reference the Collection ID using the Zotpress shortcode, but I"m not sure how to (if I am even able to) get the Item IDs of the publications within that collection.

    //stores Collection ID in the variable $zotcol
    <?php $zotcol=get_post_meta($post->ID, 'wpcf-collection-id', true); ?>

    I now have the Collection ID stored in the variable $zotcol.
    However, I need to get the Item IDs from each publication in that collection because I need to use each Item ID in a URL.

    Does anybody know how this can be done?

    Thanks for any and all help!

  2. tmeche87
    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic