WordPress: Using Custom Field Value in Zotpress shortcode
I created a custom type called "Project". This custom type has a custom field called "Project Collection". "Project Collection" holds a Zotero Collection ID.
I created a custom template file called single-project.php. In this template file, I get the value of the "Project Collection" field and store it in a variable called "$zotcol". I am trying to use this variable in the zotpress shortcode within my single-project.php file.
However, whenever I use the zotpress shortcode within the single-project.php file, it is interpreted as text and the actual zotpress shortcode is displayed on my website instead of my citations.
I am at a loss as to what I should do. Any help is greatly appreciated! Thanks in advance!
I created a custom template file called single-project.php. In this template file, I get the value of the "Project Collection" field and store it in a variable called "$zotcol". I am trying to use this variable in the zotpress shortcode within my single-project.php file.
However, whenever I use the zotpress shortcode within the single-project.php file, it is interpreted as text and the actual zotpress shortcode is displayed on my website instead of my citations.
I am at a loss as to what I should do. Any help is greatly appreciated! Thanks in advance!
-
dstillmanThese forums are for Zotero—we don't have anything to do with Zotpress. You'll have to ask in the Zotpress forums.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.