How to link current logged-in user to their author page via URL (Beginner)

UPDATE As per the comment, here is the updated solution. Note: Before copy pasting, don’t forget to change somePrefix with any other prefix to avoid conflict with any other shortcodes. Step 1: Make sure you have this filter in functions.php (If not, copy paste it there) add_filter(‘wp_nav_menu_items’, ‘do_shortcode’); Step 2: Use this snippet to return … Read more

dynamic URL rewrite

You might use following in that case It’s okay to keep http://example.com/key_name/key_value simply by passing in your template using function add_query_arg( ‘key’, ‘value’, ‘http://example.com’ ); get_query_var(‘key_name’) to fetch the Value of Query parameters in your template file instead of using $_GET[‘key_name’] .