Shortcodes are a feature of WordPress that allows a tag to be inserted into post content to embed some functionality in that content. The PharmacyWire WordPress plugin features several shortcodes that can be used as follows:
[PharmacyWire drug=”<product>” {filter=”brand|generic”}]
Embeds a list of products that match the <product> name, and any other products that have the same active ingredient. Each product package listed will have a ‘Buy’ link using the site theme to add the product to their cart.
Use the ‘filter’ keyword to limit the results to either brand or generic drugs only.
Example: [PharmacyWire drug=”zocor”]
[PharmacyWire ingredient=”<drugname>”]
Embeds a list of products that use the <drugname> ingredient in the drug composition. Each product package listed will have a ‘Buy’ link using the site theme to add the product to their cart if all products have identical ingredient compositions. If the drugs have different ingredient compositions, some of which use the specified <drugname>, then the drugs will be listed with links to the appropriate products.
Example: [PharmacyWire ingredient=”Irbesartan”]
[PharmacyWire condition=”<condition>” {related=”<drugname>” limit=”<number>”}]
Generates a list of links to all products that can be used to treat the <condition> specified.
Use the ‘related’ keyword to show all drugs of ‘condition’ that are related to the specified ‘drugname’. Provides the ability to link to other drugs of a similar type to the one being described on a specific page and ensure that the drug on the page is not included on the list. By adding ‘limit’, only the ‘number’ of drugs will be shown.
Example: [PharmacyWire condition=”cholesterol”]
[PharmacyWire search=”<search term>”]
Embeds the same search results that the PharmacyWire WordPress plugin would generate as if the use entered the specified <search term> in the plugin search engine. If the results match single results, product packages are shown. Otherwise product name links are shown instead.
Example: [PharmacyWire search=”sta”]


