Adding Author URL to Nav Menu via Shortcode

I’m looking to add the Author URL to the Nav Menu via a shortcode.

Here’s the shortcode I registered:

add_shortcode( 'author_url', function() {     return get_author_posts_url( get_current_user_id() ); } ); 

After registering the shortcode, I tried using this plugin to add it to the nav menu: https://wordpress.org/plugins/shortcode-in-menus/

However, the shortcode output is https//mysite.local on my localhost

Notice how it’s lacking the ‘:’ after the https.

What’s going on, and how can I fix this?

Thanks!

Need to limit the previous/next post links to current author editing post

I installed a plugin to be able to display a previous post / next post option in the backend, in the post edit screen. However the code does this for all posts and we really would like to build in a restriction.

I would like to restrict the links to point only to the posts made by the logged in (current) user editing his/her own post at that moment.

The code I would like to alter is this (I already added a current user variable, in case I’d need it)

add_action('admin_print_footer_scripts','amm_edit_next_prev_post_button'); function amm_edit_next_prev_post_button(){     $  screen = get_current_screen();     //echo "<pre>";     //print_r($  screen);     $  supported_types = array('page', 'post');     if( strpos($  screen->parent_file, 'edit.php') !== FALSE && in_array($  screen->id, $  supported_types) && in_array($  screen->post_type, $  supported_types) && $  screen->action != 'add'){         //Prev-Next are arranged acc. to post table so switched next to prev and prev to next         $  next_post = get_previous_post();         $  previous_post = get_next_post();         $  current_user = wp_get_current_user();         ?>             <!--<style>body{background-color:red !important}</style>-->             <script>                 if(window.jQuery) {                     jQuery(document).ready(function($  ) {                         $  (window).load(function() {                              var is_next_post_available = '<?php echo ($  next_post->ID) ? true : false ?>';                             var is_prev_post_available = '<?php echo ($  previous_post->ID) ? true : false ?>'; 

I did some researching and fond this but would be hesitant if I can combine these two ? Modify previous and next post links to current Authors Other posts

Remove author for external link data

I’ve made a page for a client, but when I paste the homepage link into Discord, it shows the page info.

It shows the Page Title, the page author, the page title again, and then the excerpt. I’d rather scrub my name from ever showing up in any meta data on the page, but even looking through dev tools, and searching for any mention of my name, or the word author, I find zero results that would indicate discord should be even finding my personal name. Has anyone had any experience with this?

can’t see information on author page that don’t have posts

I have page for each author role, but if the author doesn’t have any posts I can’t get its variables, because the loop is empty. The page returns empty, no avatar, no author name and bio.

How do I get WordPress to pull out the author variable if there are no posts?

I’m using hello elementor theme and WP User Avatar plugin.

Automatically Switch between two AdSense accounts based on the author post

We are two managers for one website , each of us have an AdSense account

Can our ad code display in the articles we write, based on the author slug or id?

I tried to use this code in head section , but it did not work :

<?php if (is_author('author 1');) : ?> <script data-ad-client="ca-pub-ءءءءء1ءءءء" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>; <?php else : ?> <script data-ad-client="ca-pub-ءءءءء2ءءءء" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <?php endif; ?>

any ideas to switch automatically between the accounts, not as a revenue share.

change the dropdown content of author post meta in edit post – admin

I am trying to customize the author meta box in the post edit page, as you all know this dropdown is using to assign a post to a corresponding author.

I would like to change the dropdown content. Like currently, its showing display name(username). But i would like to show a user meta field rather than username. Is it possible?

So in the dropdown it will be like Display name(custom user meta field).

I have seen wp_dropdown_users, but no idea how to use it so that i can achieve.

How does a web browser obtain the public key of a certificate author?

As far as I know, when a web browser verifies the signature in a SSL certificate, it uses the public key of the certificate author (CA) which has signed the certificate. Does the web browser contacts the CA to obtain its public key? If so, how does it happen? Does the IP address of the CA is contained in the certificate?