teachPress 3.1.6
Main Page | Shortcode Reference
teachPress brings you some powerful shortcodes, which you can use in posts and pages. If you don’t know, how you can use shortcodes in WordPress, so please read this article before.
If you want to show an interactive list of publications with filters and a tag cloud in a post or page.
user
(integer) WordPress User-ID – The ID of the author its publications you want to show. Default is 0. (Show all publications of all authors)
type (optional)
(string) The publication types for publications you want to show. Default is all. (Show all publications)
exclude (optional)
(integer) One or more IDs of publications (separate by comma) you don't want to show.
order (optional)
(string) The order clause for publications. Default is date DESC. Possible values: bibtex, name, type, year.
Examples:
[tpcloud order="name ASC"]
[tpcloud order="type ASC, name ASC"]
headline (optional)
(integer) You can set the following options for the headlines within the publication list: For years (default) like 2011, 2010, 2009 is headline="1". For publication types like articles, books, inproceedings, set headline="2". If you don't want to show headlines, set headline="0" Please note, that if you set headline="2", the order parameter will be ignored.
minsize (optional)
(integer) Min. font size for the words in the tag cloud in px. Default is 11.
maxsize (optional)
(integer) Max. font size for the words in the tag cloud in px. Default is 35.
limit (optional)
(integer) Number of tags in the tag cloud. Default is 50.
image (optional)
(string) Set the image position: left, right or bottom. Default is none (No images displaying).
image_size (optinal)
(integer) Maximum size of an image in px. Default is 0. Use this only together with the „image“-parameter.
anchor (optional)
(integer) If you want to use HTML-Anchor for the Tag-Links (anchor = „1″) or not (anchor=“0″). Default is 1.
author_name (optional)
(string) Define the style of the author names. The possible styles are simple, old, last or initials. Default is last.
Examples: If you have the name: Ludwig C. van der Vaart
The output is the following:
simple --> Ludwig C. van der Vaart
old --> Vaart, Ludwig C. van der
last --> van der Vaart, Ludwig
initials --> van der Vaart, Ludwig C
editor_name (optional)
(string) Define the style of the editor names. The possible styles are simple, old, last or initials. Default is last. The usage is similar to author_name.
style (optional)
(string) Define the style of the publication list. The possible styles are std (4-line-style) or simple (1-line-style). Default is std. Please note that the styles are only basics, which you can adjust on your theme.
link_style (optional)
(string) The style of publication links. The possible styles are inline or images. Default is inline.
A publication list with images:
[tpcloud user="0" image="left" image_size="60"]
A list with an other author name style:
[tpcloud user="0" author_name="last"]
A list of a single author (WordPress user-ID: 15) with some changes on the tag cloud:
[tpcloud user="15" maxsize="40" minsize="10" limit="100"]
If you want to show a static list of publications without filters or a tag cloud in a post or page.
user
(integer) WordPress User-ID – The ID of the author its publications you want to show. Default is 0. (Show all publications of all authors)
tag (optional)
(integer) If you want to display only publications with a determined tag, so set with this parameter the tag-ID of this tag. Default is 0. (Show all publications)
type (optional)
(string) The publication types for publications you want to show. Default is all. (Show all publications)
exclude (optional)
(integer) One or more IDs of publications (separate by comma) you don't want to show.
year (optional)
(integer) If you want to display only publications of a determined year. Default is 0. (Show all publications)
order (optional)
(string) The order clause for publications. Default is date DESC. Possible values: bibtex, name, type, year.
Examples:
[tplist order="name ASC"]
[tplist order="type ASC, name ASC"]
headline (optional)
(integer) You can set the following options for the headlines within the publication list: For years (default) like 2011, 2010, 2009 is headline="1". For publication types like articles, books, inproceedings, set headline="2". If you don't want to show headlines, set headline="0" Please note, that if you set headline="2", the order parameter will be ignored.
image (optional)
(string) Set the image position: left, right or bottom. Default is none (No images displaying).
image_size (optinal)
(integer) Maximum size of an image in px. Default is 0. Use this only together with the „image“-parameter.
author_name (optional)
(string) Define the style of the author names. The possible styles are simple, old, last or initials. Default is last.
Examples: If you have the name: Ludwig C. van der Vaart
The output is the following:
simple --> Ludwig C. van der Vaart
old --> Vaart, Ludwig C. van der
last --> van der Vaart, Ludwig
initials --> van der Vaart, Ludwig C
editor_name (optional)
(string) Define the style of the editor names. The possible styles are simple, old, last or initials. Default is last. The usage is similar to author_name.
style (optional)
(string) Define the style of the publication list. The possible styles are std (4-line-style) or simple (1-line-style). Default is std. Please note that the styles are only basics, which you can adjust on your theme.
link_style (optional)
(string) The style of publication links. The possible styles are inline or images. Default is inline.
A normal list with images:
[tplist user="0" image="left" image_size="60"]
A normal list with publications of one author (WordPress user-ID: 15) from the year 2010:
[tplist user="15" headline="0" year="2010"]
A normal list grouped by publication types
[tplist headline="2"]
If you want to show a singe publication in a post or page.
id
(integer) The ID of the publication you want to show.
author_name (optional)
(string) Define the style of the author names. The possible styles are old, last or initials. Default is last.
Examples: If you have the name: Ludwig C. van der Vaart
The output is the following:
old --> Vaart, Ludwig C. van der
last --> van der Vaart, Ludwig
initials --> van der Vaart, Ludwig C
editor_name (optional)
(string) Define the style of the editor names. The possible styles are old, last or initials. Default is old. The usage is similar to author_name.
[tpsingle id="30"]
If you want to show some information of a course in a post or page.
id
(integer) the course ID
Displaying informations about the course with course_id = 15:
[tpdate id="15"]
Shows the enrollemt system in a post or page.
term (optional)
(string) The term you want to show. If it is not set, the plugins displays the courses of the current term.
[tpenrollments]
If you want to show a list of all courses of a semester.
headline (optional)
(integer) If you want to show the headline in the list (headline="1") or not (headline="0"). Default is 1.
image (optional)
(string) Set the image position: left, right or bottom. Default is none (No images displaying).
image_size (optinal)
(integer) Maximum size of an image in px. Default is 0. Use this only together with the „image“-parameter.
term (optional)
(string) The term you want to show. If it is not set, the plugins displays the courses of the current term.
text (optional)
(string) If you want to show a simple text or comment under the headline.
[tpcourselist]
If you want to show parts of a post only for registered course participants, which are logged in.
id
(integer) the Course-ID.
[tppost id="5"] This part of a text is only vissible for participants, which are registered for the course with the id=5[/tpplost]