I guess maybe wp_get_current_user();
is what your looking for.
Something like this…
<?php $current_user = wp_get_current_user(); ?>
<a href="http://mysite.com/mysite/page-<?php echo $current_user->ID; ?>">go this page</a>
http://codex.wordpress.org/Function_Reference/wp_get_current_user
—
Actually I just re-read the question and maybe your not after the current user? You might want to elaborate the question more so we know the aim better.
Related Posts:
- How to change the case of all post titles to “Title Case”
- Dynamically add id to heading tags
- Restrict users from editing post based on the age of the post
- $post object is null
- Function to show random posts from a category
- Can’t get full post title if there a spaces in title
- Get post meta retrieving wrong value
- Internal linking to posts permalink fail because of spaces and stripe at postname
- How to limit the number of results for all query_posts on mysite
- User driven content problems
- How can I create a menu items from meta box based on users input
- List direct children of page
- How *not* to show the last post on the latest posts list
- Display a custom field rating system in the front end
- How do I check if I linked to a post before I delete it?
- Portable Post Links
- WordPress: How to get the current logged in author page URL?
- Update all posts automatically when using post_meta
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- List only child categories a post is in, of a specific parent category
- Is it possible to add a first and latest posts link?
- Get current users post URL?
- How to change post status from publish to draft using hook in wordpress?
- Load post content into div with ajax
- Limit Authors to their Own Posts on front-end excluding admins
- wp_list_categories link to first post of category instead of calling taxonomy template
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- Limit function to specific post category
- if I create ‘front-page.php’, then how do I link to post index?
- how to set beforsend option in wordpress ajax methods
- Action hook for new pending posts?
- Ajax posts filter by date, comments, top views, top likes
- Direct link to “New post” in specific category?
- Prepend or add an Image to the content of a Post
- Why content_arr[‘extended’] removes paragraph tags?
- How should I add links to other pages/posts from my post?
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Most liked page not displaying posts
- Get post id in a function when edit/add a post
- Custom loop pagination links not working
- How to do set post permalinks using 6 digit random unique function?
- Display post x of y within category
- WordPress Automatic Filename Changer
- Redirect to another page using contact form 7? [closed]
- Display post category in foreach loop
- Adding bootstrap classes to video shortcodes
- Pagination on Custom Post
- How to add a class to edit_post_link?
- All Posts Linking to Author Posts directly
- Defined function isn’t showed on page
- WordPress 302 Redirect to Random Product/Post/Page
- How to generate/create link automatically on every word of post in wordpress
- How to use mysql LIKE with wpdb?
- Automatically Add Page Links to Nav Menu
- Getting Whitescreen when publishing a post [closed]
- Add code to a specific post’s content
- Template code to split a post and print a custom field?
- Related Posts: Changing Function For Posts Per Page
- Link to date_query results in WordPress
- Optimize CPT-function with a loop
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- How to add PHP code snippet to all Post pages?
- How to display only one category in a custom post type?
- Limiting the amount of posts retrieved by the loop
- Authors’ Links on Homepage Not Going to Author Post Pages
- Making a wordpress page print friendly
- Set Default Post as Parent Child (Nested) Relation
- Remove all external links from posts
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- How to Send Pingbacks for all Posts in WordPress?
- posts_per_page displays only 2 posts instead of 4 posts
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Function is printing twice – any suggestions?
- How to add a custom class attribute into code wrapper? [duplicate]
- I want to change the WordPress comments file
- Excluding tag Link from html tags in Post content
- Changing a users posts to drafts upon role change
- What is the proper way to call a function (from functions.php) on a link click?
- Post Category link is same with Page link
- Using Tag Groups: Displaying groups and adjacent tags of current post
- Show all posts from the tags without having to set all of them
- Trim excerpt to first paragraph
- Published custom posts missing
- How to add a class to links inside posts text
- How to edit label_submit styling?
- Featured Images link to post parent
- Insert wordpress tags below posts via functions.php
- External link not showing on post but showing on comment
- How to change link with broken link?
- How do we display a certain category type on a page while hiding all others?
- What function does the loop of displaying posts?
- WooCommerce: write featured image dimensions to custom fields in product’
- Automatically search and replace link in content (pages/posts)?
- transition_post_status hook, works – but not if the post is new
- How to remove category and other tags from posts page
- How to use shortcode to get the second to newest post?
- How to sort posts alphabetically based on a specific parent category