Which profile plugin you are using?
You can change user in to="{user}" to set user nicename there.
Thread Starter
gorvie
(@gorvie)
Im not using profile plugin. It just called a “author” page, etc.
I tried putting “user_nicename” and all the other recommended shortcodes, but it still wont pull users name when sending message, its just blank. Only happens on authors profile page.
Example of part of author php if it helps:
global $user_ID;
global $paged;
$author = get_user_by( ‘slug’, get_query_var( ‘author_name’ ) );
$user_ID = $author->ID;
$user_info = get_userdata($user_ID);
get_header();
betube_breadcrumbs();
global $redux_demo;
$contact_email = get_the_author_meta( ‘user_email’, $user_ID );
Any idea? Also i noticed the button doesnt even look the same/ say the same thing as the single post page (where its working)
Thanks
Did you tried settings to="{current-author}"?
Also set single quote(') around shortcode as you are using double quote(") in both around the shortcode and args.
Thread Starter
gorvie
(@gorvie)
Yea i tried that and all other recommend short codes but not working.
Button looks like this: (‘”send’);
Thread Starter
gorvie
(@gorvie)
<?php echo do_shortcode(‘(‘[fep_shortcode_message_to class = “um-pro-btn um-button” to=”{current-author}” text=”send message” subject=”Sending a message”]’);’); ?>
Thread Starter
gorvie
(@gorvie)
<span><?php echo do_shortcode(‘[fep_shortcode_message_to class=“um-pro-btn um-button” to=”{current-author}” text=”send message” subject=”Sending a message”]’); ?></span>
BUTTON TEXT “SEND
MESSAGE TITLE “SENDING
its not working right..
Thread Starter
gorvie
(@gorvie)
i got the button to show correctly by cleaning up the code..
<h4><?php echo do_shortcode(“[fep_shortcode_message_to class = “um-pro-btn um-button” to=”{user}”]”); ?></span>
now it says contact.. but still doesnt pick up the user, only first post it finds on author page for title.
Use following code
<?php echo do_shortcode( '[fep_shortcode_message_to to="{current-author}" subject="Sending a message" text="Send Message"]' ); ?>
Thread Starter
gorvie
(@gorvie)
Worked!! Thank you so much.
Hi, i have the same trouble
How can ia add the code <?php echo do_shortcode( ‘[fep_shortcode_message_to to=”{current-author}” subject=”Sending a message” text=”Send Message”]’ ); ?>
How can i add this??
By a shortcode? One Html? One Link?
Explain please how can i where i can appear a message boton
If you have an example what you do it really thanks!