Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nise opened this issue Sep 8, 2022 · 4 comments
Closed
Labels
enhancement New feature or request solved

Comments

@nise
Copy link

nise commented Sep 8, 2022

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?

@winkm89
Copy link
Owner

winkm89 commented Sep 9, 2022

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.

@nise
Copy link
Author

nise commented Sep 10, 2022

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

@fabricebg
Copy link
Contributor

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

@winkm89
Copy link
Owner

winkm89 commented Jun 21, 2023

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

@winkm89 winkm89 closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request solved
Projects
None yet
Development

No branches or pull requests

3 participants