Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    for hardcoded filtering, you can use:
    [tplist user="x"] or [tpcloud id="x"]
    The “x” you must replace with the WordPress User-ID of the author.

    Thread Starter fatfreddy

    (@fatfreddy)

    well, the thing is: i am the only user managing the website (i.e. the admin). its a rather static site, individual members of my workgroup don’t have an account. therefor, all publications will be linked to the admin account and i can’t filter on this basis (or did i miss something?).

    what i’m looking for is a way to build a central publication repository, managed by me, and something that would allow me to output a filtered tplist. say, somewhere on my site i would like to show the publications of john doe: [tplist filter_author=”doe”] would result in a tplist of publications where the author fields contains the string “doe”. similar filters could exist for publication year or type. just like in the selection boxes of tpcloud. if the whole thing would be realized with a regexp filter (preg_match?), the possibilities would be endless ?? just fantasizing ….

    Ok, direct filtering about the author field is not possible with the plugin, but you can use tags instead.

    For example:
    If you have publications by an author called “john doe”, you can set for each of this publications a tag called “doe”.
    Now with the ID of the tag, in this example 42, you can use tplist to generate a list of this author:
    [tplist tag="42"]

    It’s surely not the prettiest way, but it could be work.

    Thread Starter fatfreddy

    (@fatfreddy)

    yeah, that’s the only solution i could think of as well. not very convenient, especially when handling a lot of publications. but i’ll look into it and report back… thanks for the quick replies!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: teachPress] filter tplist by author(s)’ is closed to new replies.