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.
id
(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 type for publications you want to show. Default is all. (Show all publications)
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"]
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) Set, 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 old.
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 old. 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 simple. Please note that the styles are only basics, which you can adjust on your theme.
A publication list with images:
[tpcloud id="0" image="left" image_size="60"]
A list with an other author name style:
[tpcloud id="0" author_name="last"]
A list of a single author (WordPress user-ID: 15) with some changes on the tag cloud:
[tpcloud id="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)
year (optional)
(integer) If you want to display only publications of a determined year. Default is 0. (Show all publications)
type (optional)
(string) The publication type for publications you want to show. Default is all. (Show all publications)
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) If you want to show headlines 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.
author_name (optional)
(string) Define the style of the author names. The possible styles are simple, old, last or initials. Default is old.
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 old. 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 simple. Please note that the styles are only basics, which you can adjust on your theme.
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"]
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 old.
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 the course_id = 15:
[tpdate id="15"]
Shows the enrollemt system in a post or page.
[tpenrollments]
If you want to show a list of all courses of a semester.
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.
[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]