Exchange Product Types: Memberships

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
====Restrictions====
+
===Restrictions===
  
====Shortcodes====
+
===Shortcodes===
  
 
Adding the shortcode [it-exchange-membership-included-content] to the extended description of a product allows you to list the content included with a membership.  There are different arguments that you can add to your shortcode.
 
Adding the shortcode [it-exchange-membership-included-content] to the extended description of a product allows you to list the content included with a membership.  There are different arguments that you can add to your shortcode.
  
*product_id - This is the current product id.  '''Note''':  We do not recommend changing this.   
+
*'''product_id''' - This is the current product id.  '''Note''':  We do not recommend changing this.   
*before - In the "before" argument, you can add HTML that you'd like to have show before each content item listed.
+
*'''before''' - In the "before" argument, you can add HTML that you'd like to have show before each content item listed.  '''Note''':  "Before" argument must be added when using the Text view in the Extended Description.
*after - In the "after" argument, you can add HTML that you'd like to have show after each content item listed.
+
*'''after''' - In the "after" argument, you can add HTML that you'd like to have show after each content item listed.  '''Note''':  "After" argument must be added when using the Text view in the Extended Description.
*title - The "title" argument allows you to display a title before the list of content.
+
*'''title''' - The "title" argument allows you to display a title before the list of content.
*toggle - This option allows you to make grouped content (ex:  items within a specified category) to be toggled instead of all items listed.
+
*'''toggle''' - This option allows you to make grouped content (ex:  items within a specified category) to be toggled instead of all items listed.
*posts_per_grouping - This allows you to limit the number of items shown for each taxonomy included in a membership.
+
*'''posts_per_grouping''' - This allows you to limit the number of items shown for each taxonomy included in a membership.
 +
 
 +
<br />
 +
 
 +
====Shortcode Examples====
 +
 
 +
<br />
 +
 
 +
"'''Before'''" Shortcode:
 +
 
 +
<code><nowiki>[it-exchange-membership-included-content before='<h4>"Before" Code</h4>']</nowiki></code>
 +
 
 +
<br />
 +
 
 +
[[File:BeforeCode.png|BeforeCode.png|link=]]
 +
 
 +
<br />
 +
 
 +
"'''After'''" Shortcode:
 +
 
 +
<code><nowiki>[it-exchange-membership-included-content after='<h4>"After" Code</h4>']</nowiki></code>
 +
 
 +
<br />
 +
 
 +
[[File:AfterCode.png|AfterCode.png|link=]]
 +
 
 +
<br />
 +
 
 +
"'''Title'''" Shortcode:
 +
 
 +
<code>[it-exchange-membership-included-content title='Membership Content']</code>
 +
 
 +
<br />
 +
 
 +
[[File:ShortcodeTitle.png|ShortcodeTitle.png|link=]]
 +
 
 +
<br />

Revision as of 13:49, October 8, 2013

Restrictions

Shortcodes

Adding the shortcode [it-exchange-membership-included-content] to the extended description of a product allows you to list the content included with a membership. There are different arguments that you can add to your shortcode.

  • product_id - This is the current product id. Note: We do not recommend changing this.
  • before - In the "before" argument, you can add HTML that you'd like to have show before each content item listed. Note: "Before" argument must be added when using the Text view in the Extended Description.
  • after - In the "after" argument, you can add HTML that you'd like to have show after each content item listed. Note: "After" argument must be added when using the Text view in the Extended Description.
  • title - The "title" argument allows you to display a title before the list of content.
  • toggle - This option allows you to make grouped content (ex: items within a specified category) to be toggled instead of all items listed.
  • posts_per_grouping - This allows you to limit the number of items shown for each taxonomy included in a membership.


Shortcode Examples


"Before" Shortcode:

[it-exchange-membership-included-content before='<h4>"Before" Code</h4>']


BeforeCode.png


"After" Shortcode:

[it-exchange-membership-included-content after='<h4>"After" Code</h4>']


AfterCode.png


"Title" Shortcode:

[it-exchange-membership-included-content title='Membership Content']


ShortcodeTitle.png


Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox