<?php
$currentUser = get_current_user_id(); //get currently logged user ID
$user = get_user_by( 'id', $currentUser ); // Get the user Object by id
$userUrl = get_bloginfo('home').'/author/'.$user->user_login; //Formulate the outout
echo $userUrl; //echo the output
?>
Related Posts:
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Javascript / PHP – closing the loop
- Pass media upload value to input field
- wpdb::prepare was called incorrectly
- How to insert PHP code in a WordPress Post
- Creating wordpress user registration form
- Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file
- my function doesn’t return my post from today
- Using wp_localize_script to store the template url into a variable to use in JS
- Ajax form submit within a Post Metabox
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Slide in Panel WordPress Post
- Multiple choice in a custom taxonomy
- Upload Image in a WordPress page using PHP
- Using shipped version of jquery
- Bridging TinyMCE js and WordPress PHP?
- Trying to implement Ajax comments in WordPress, getting WP error
- class click counter save number
- Get stock by custom meta field on all Woocommerce variable products
- My form action url is being prepended with a directory that does not exists
- Ajax – Call to undefined function get_option()
- WordPress 3.2 query_posts and pagination, permalinks issue
- only show container with next/prev links if they exist?
- Populate dropdown with Child Pages based on Parent Page chosen
- JS file work only in index page
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Integrating PHP into Javascript to display map markers with Google API – problem with wp_localize
- Long running queries
- AJAX success response is not working but it’s saving my changes
- Post repeating with infinite scroll
- register_taxonomy() take much queries
- User register hook is not working in woocomerce register form
- Add Codepen animation as Preloader to WordPress
- add onchange to select in a wp form
- load ajax using admin-ajax.php
- How to send form data from WordPress (Meta Box) to an OData service?
- WordPress query undefined offset in loop
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Issue with custom loop in Archive page
- Parse error: syntax error, unexpected ‘}’ [closed]
- Why does my user not get added to the database on custom registration?
- How to get thumbnail with pure PHP in a WordPress database?
- Make a page (url) not cacheable [closed]
- mySQL queries are executed twice on wordpress website
- Display latest post from WordPress Featured Category that is also in X,Y,or Z categories
- Load Javascript for a widget WordPress
- How can I modify this code to make the search box include tags and meta
- duplicate posts with ajax load more wordpress
- How to populate a Gutenberg select field SelectControl with option value from PHP array
- Send an e-mail on address with the link with disliked post
- How to extend SelectControl with data from my theme
- $_POST returning empty values
- Show next image in array if page is revisited by same logged user
- How to send custom form submissions to WordPress Database?
- Fetch Data from an external MSSQL Database in a Managed WP hosting
- Using Google Analytics in an enqueued JS file
- How do I disable cache for a certain page?
- How To Get HTML Eelement From Another Page
- Conditional Banners
- Update $wpdb query with AJAX
- $.ajax results in 403 forbidden
- AJAX to add to cart multiple products woocommerce
- Filter portforlio with librairie isotop
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- custom search query database in child theme
- Using transients to store form notifications
- admin-ajax.php 400 bad request – whats wrong with my code?
- WordPress load javascript file if something… (after the page is loaded)
- Serve cookie free URLs in WordPress without using a CDN
- wordpress form action page not found
- How to query a staging database?
- How to make a parent page for author.php?
- Force ‘permanent’ post cache of shortcode results
- Form direction to .php on localhost
- Include a custom field in mysql query
- Form not working as it should in WordPress, but in a normal HTML site it does
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- Ajax call URL 404’ing when pushed to staging server
- Update only some custom user fields
- Dynamic form variables for post meta
- Headers for Contact Form are wrong
- The search engine of my website finds only posts and not pages, how can I solve this problem?
- Hide empty categories from get_categories
- HOW TO Insert Existing PHP Code to WOrdPress
- Where to put include php file?
- Require Credits Footer
- Adding jquery using php function
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- notify users when changed database
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- Putting form result in my database
- How can i add a script with parameters?
- How to allow searching a custom meta key in admin list table?
- How can I process a form submission from an HTTP POST request?