Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,872
- Creating & Extending
- 25,908
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
You don’t explain the context of usage – iow. where are you trying to show it.
bp_displayed_user_id() only works in the context of profile pages.
So if your shortcode is called in that context, you don’t need to set author parameter.
So you would call bp_displayed_user_id() in the function, not in the call.
Or you could try using dot notation, something like:
echo do_shortcode ( '[job-type author="'. bp_displayed_user_id() .'"]' );