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
- Accessing post->ID outside of the loop for listing child pages
- how to set beforsend option in wordpress ajax methods
- Action hook for new pending posts?
- Uppercase first sentence in every post
- Add icon/badge next to posttitle of specific category
- Query all posts of a custom taxonomy term
- 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
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- Why content_arr[‘extended’] removes paragraph tags?
- Removing rel=”nofollow” from links posted in Post Content
- Delete post by giving its link
- Display post category in foreach loop with category link
- How should I add links to other pages/posts from my post?
- WordPress Custom Fields (Checkboxes with multiple values)
- Load post attached images on a single page site with fancybox
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Most liked page not displaying posts
- How to make number of blog posts a custom field?
- Exclude category from
- Get post id in a function when edit/add a post
- Setting posts_per_page for taxonomy term template
- Change post order random through out the entire WordPress
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- How to display the link (title) and thumbnail post?
- Force the “Choose from the most used tags” meta box section to always be expanded
- Show the content that is after the excerpt using child theme
- Custom loop pagination links not working
- How to allow users to post only in certain category and hide elements from edit page?
- How to Next and Prevous Navigation Buttons on the end of the page with custom image Using Wp Post Navigation Plugin
- How to do set post permalinks using 6 digit random unique function?
- Can’t get buddypress notifications in front-end; why do I get this error?
- How do I display some posts fully on the homepage, and some as an excerpt only?
- get_adjacent_post by language
- How to handle broken links created by permalink/slug changes?
- Send post id through ajax and get the post content back
- Creating a post from data returned from HTML form
- Is it possible to paste a link without tags and make it directly a link in a post?
- Display post x of y within category
- Force authors to Preview a post before publishing
- WordPress Automatic Filename Changer
- List authors with the last post title and order by last post date
- Redirect to another page using contact form 7? [closed]
- Display post category in foreach loop
- Order posts alphabetically: how to set order=asc in mysql query?
- Which PHP page is the Default Posts Page
- Page template is accessing the incorrect posts?
- Make Current/Active Page Number a Link (WP_LINK_PAGES)
- Change all author links in Blog roll
- Function works everywhere, how to keep it to execute when creating a new post
- disable Tab post on nav-menus page (Admin)
- Adding bootstrap classes to video shortcodes
- Pagination on Custom Post
- How to add a class to edit_post_link?
- Every second post different class in blog view
- Format latest/newest post differently
- is_page Funtion for Posts ?
- Post type no single page
- The_excerpt() doesn’t parse – how to change that?
- All Posts Linking to Author Posts directly
- How can I remove the first two words and shorten get_the_title()
- How to only publish posts with image in it
- Isn’t the way posts are displayed very unefficient?
- Add custom text automatically on each post
- How to check in functions.php if there is data in a WP_Query?
- restrict incrementation of post vies count when refreshing the page
- 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?
- Reading settings in the home page precisely home.php
- get post id from wp_insert_post for get_template_part
- Automatically Add Page Links to Nav Menu
- Getting Whitescreen when publishing a post [closed]
- Using system date format
- Get post by tag
- Add code to a specific post’s content
- Related Posts function not working
- the_content() Not Grabbing All Content
- How to make Link to go on the first post
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- 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