WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tmeche87
    Member
    Posted 12 months ago #

    Hey!

    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
    Member
    Posted 11 months ago #

    Fixed!

Reply

You must log in to post.

About this Topic