Skip to content

Olapic/wp-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Olapic wp-plugin

Wordpress doesn't like external JS being injected in post content, so this plugin allows for Olapic code injection via shortcode.

Official Wordpress Plugin Page: http://wordpress.org/plugins/olapic-shortcode-widget

Usage

Using this plugin requires a simple two-step process:

  1. Download the plugin

  2. Install the plugin

    • Option A: Unzip the .zip file into the WordPress Plugin Directory
    • Option B: Upload the .zip file via the plugin upload page (http://yourdomain.com/wp-admin/plugin-install.php?tab=upload)
  3. Activate the plugin

  4. In the Wordpress post, use the shortcode:

    [olapic instance-id ="WIDGET_INSTANCE_ID" apikey="OLAPIC_API_KEY" tags="PRODUCT_ID"].

    See below for shortcode parameter details.

Shortcode Parameters

The shortcode takes in 4 parameters:

  • instance-id - required

    • You can find this value from the data-instance part of the original widget code.
  • apikey - required

    • You can find this value from the data-apikey part of the original widget code. ()
  • tags - optional

    • This serves as the dynamic identifier to pull content from a specific stream. Often, the value is the product identifier from your product feed.
  • mode - optional

    • Accepted parameter value: development
    • You can use this flag to serve all content from the sandbox environment.
    • Note that this parameter should not be utilized for production purposes.
  • lang - optional

    • The language code that you want the widget to be translated to. The naming convention for the language's name is based on the ISO-639 language code (e.g. pt for Portuguese) followed by the ISO-3166 country code (e.g. _PT for Portugal or _BR for Brazil), and corresponds with the language codes set in the "appearance" section of the Olapic platform.

About

WP plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages