teachPress icon indicating copy to clipboard operation
teachPress copied to clipboard

[tpcloud user=?] User id can be neitjer found in teachpress nor wordpress

Open nise opened this issue 3 years ago • 3 comments

Wordpress and teachpress makes it hard to identify one's own user id. However, if I want to restrict the publication to one user I need to know the user id, e.g. [tpcloud user=1]. Even on a freshly installed Wordpress user id 1 is not the admin who installed it.

So, how can I get to know my user id if I have no access to the code? Where exactly is the user id shown in teachpress?

nise avatar Sep 08 '22 22:09 nise

Hi, a quick fix is to install a plugin, which displays the user IDs in the WordPress' user section: https://wordpress.org/plugins/show-user-id/ But you're right, it's really not that easy to find.

winkm89 avatar Sep 09 '22 21:09 winkm89

You could provide the user id on the page of one's own publications.

nise avatar Sep 10 '22 08:09 nise

Or, the shortcode could accept a username as id, i.e. [tpcloud user=wordpress_user_name] .

fabricebg avatar Nov 10 '22 22:11 fabricebg

The shortcodes tpcloud, tpsearch, tplist accept also the user name since teachPress 9.0.0. This should help to solve the issue.

winkm89 avatar Jun 21 '23 18:06 winkm89