STIX

X_Advanced/Miscellaneous

There are also some shortcodes for the advanced and for just general utility usage:

Code:

If you want to post some code it’s hard to do because…well…it tries to be run as code! This makes it easy to paste code to share on your site/blog.

<span><em>Some Code Here!</em></span>
<span><em>Some Code Here!</em></span>

Comment:

This will mean that anything inside this shortcode will NOT show in the page itself, it can just remain as a note for in the page editor.

Admin Note:

This will mean that anything inside this shortcode will only show on the page for people logged into the website as an admin (i.e. you).

Encoded Email:

Putting your email address on your webpage can be helpful. But it also makes it available to spammers scraping the web for email addresses. So use this shortcode to help protect your email but still have it show on the page.

&#60;script&#62;document.write(str_rot13('lbherznvy@nqqerff.pbz'));&#60;/script&#62;&#60;noscript&#62;youremail AT address DOT com&#60;/noscript&#62;

Encoded Email Link:

Same idea as the encoded_email shortcode above, but displays it as a clickable link rather than just text.

&#60;script&#62;document.write(str_rot13('lbherznvy@nqqerff.pbz'));&#60;/script&#62;&#60;noscript&#62;youremail AT address DOT com&#60;/noscript&#62;

Raw:

Want to make sure wordpress doesn’t try to autoformat anything? Use raw tags! Keep in mind some shortcodes utilize raw tags within themselves to make sure wp doesn’t try to autoformat certain things. So raw tags inside raw tags obviously would mean it wouldn’t work as intended…so don’t use raw tags within other shortcodes if you can help it!

[raw]<span><em>Don't auto format this, let the HTML render as I typed it!</em></span>

[/raw]

Custom Column:

The column widths we give you not enough? Need a bit more control? Use the custom column shortcode! It is used the exact same as other column shortcodes, but you include a „width“ attribute to define the pixel width of it.

[raw]
[/raw] Your column content here! [raw]
[/raw]

Code Tables:

Want to know how to do the slick code tables we use for our shortcode examples? Code_table shortcodes! For each line define a code_line and use blank_code_line to make blank line spaces.

[raw]
[h3]Title[/h3]
This is some text!
 
[h3]Another Title[/h3]
This is some more text!
[/raw]

looks like this:

Title

This is some text!
 

Another Title

This is some more text!