add_shortcode('userpro_author_link', 'wpse_152910');
function wpse_152910( $attr ){
if( ! is_singular() )
return '';
$post = get_post();
global $userpro;
$userpro->permalink( $post->post_author );
}
You will be using [userpro_author_link]
on your post content to display this.
Related Posts:
- Shortcode content output but not in correct place
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- How to manually fix the WordPress gallery code using PHP in functions.php?
- Shortcode putting html such as
- the_author_posts_link css class
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Shortcode created to check language not works
- Allow authors to post only in categories they create in WordPress
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Add/echo div with Analytics-Code to function in functions.php
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- How can I default to all WordPress roles when parameter is not included in shortcode?
- WordPress menu deletes when trying to add a hook
- Using PHP to toggle stylesheet and header image, set in cookie
- Recent post display using shortcode
- Nested shortCode functions in the functions.php file
- Making Quote Plugin more efficient
- is_page “range” for if statement?
- PHP code inside shortcodes
- Shortcode content filter?
- Trigger popup in a php if/else statement
- Plugin CSS not enqueing
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- How to output a PHP file values by shortcode?
- Showing content from one page on another
- How to style options page in dashboard?
- Pass php dynamic variable to shortcode
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- Redirect to another page using contact form 7? [closed]
- Shortcode with PHP issue “Undefined index”
- Shortcode from a function not working
- Display Data in Table from External Database in WP using Shortcodes
- Is it possible to return content, and then also continue to do other things?
- How to make container class in PHP
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Creating WordPress Shortcode with Variable
- Shortcode to find and replace URL
- calling a custom field value inside functions.php
- List all blogs, but exclude the main site
- Shortcode to embed Edit Account form not working
- Noindex Posts From Certain Authors In WordPress
- Shortcode for Listing Users from Meta Value?
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How to hide the author box of a specific user?
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- How to change the author box selection on a post to a custom taxonomy
- how to changes mobile menu toggle breakpoint in WordPress
- Updating Metadata with Shortcode
- Display logged in user name and lastname on page
- Create shortcode for metabox gallery
- Show all people who commented on all posts by an author
- Display Visual Composer shortcode if a post belongs in specific categories
- Why is the current page loaded in the pop-up window and not the specified one?
- PHP function for horizontal Woocommerce thumbnails and badges
- Block error message in foreach loop when looping through ACF field
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- How can I prevent a shortcode div from extending beyond its boundaries?
- PHP multiple forms, same page, isset($_POST[]) not working?
- Show sidebar only to author of post
- shortcodes, custom php and their errors
- Display a custom name when the user has no name settle in his account
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- Site title not showing. Please help me
- Offset with ajax load more posts duplicates
- Get posts by id using shortcode
- Shortcode’s output to use as other shortcode’s parameter
- Add class for the_post_thumbnail_caption()
- Open/closed function [closed]
- Need to Echo A Url path to show on a wordpress page
- Displaying POST content with HTML tags and all
- Wrapping shortcode content in a span or link
- Need help with PHP functions
- Highlight Single Page Ancestor
- Styling admin page rows in order of importance (checkboxes)
- Overwriting a Shortcode
- Shortcoding with Divs
- Cant get theme to change footer color through theme customizer
- How to add margin underneath woocommerce total price amount -> productpages
- Whats wrong with my code? Need To add String to shortcode? [closed]
- How do I get Roboto Google Font to display normal font-style? [closed]
- My title is showing after the shortcode
- Integrating CSS Into a WP Function Call [closed]
- A next page function with shortcode?
- Shortcode to include PHP file, pass various parameters to include?
- Load slideshow.css file only if Slideshow is checked / on
- Assign new post author IF another user in custom field on post transition
- Sorting Problem
- WP Custom tables query
- Display terms on product page with shotrcode
- why css file not link?how to create permalink?
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)