WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Include link for Bibtex citation in zotpress shortcode (3 posts)

  1. tmeche87
    Member
    Posted 1 year ago #

    Hey!

    I am using the zotpress shortcode within a template file to display citations within a collection as well as a download link for the publication. The shortcode looks like this:

    <?php echo do_shortcode( '[zotpress collection="JUUEUA7U" download="yes"]' ); ?>

    However, I also need to include a link to download a bibtex citation. The code I was using to get the bibtex citation looks like this:

    <a class="zp-CiteRIS" title="Cite in Bibtex Format" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://api.zotero.org']);" href='<?php echo https://api.zotero.org/groups/136048/items/itemid ?>'>(Bibtex)</a>

    "itemid" is the zotero item ID of the publication.
    However, this does not work because the zotpress shortcode displays all of the publications within the collection and the (Bibtex) link only displays itself after all of the publications have been listed. I need to reference each item ID within a collection and have a link for each publication which gives a Bibtex citation download.

    Does anyone know if this is possible?

    Thanks for any and all help!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Please post on the plugin's sub-forum:

    http://wordpress.org/support/plugin/zotpress

  3. tmeche87
    Member
    Posted 1 year ago #

    Darn it!

    Once again, I apologize!

    I'm still somewhat of a noob :(

    It's people like me that make your job difficult.

    I'll try to be more aware of what I am doing!

    Sorry!

Topic Closed

This topic has been closed to new replies.

About this Topic