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
- How do I get the author’s page url from their ID?
- WordPress Shortcode and Dynamic CSS
- Allow authors to post only in categories they create in WordPress
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- WordPress menu deletes when trying to add a hook
- Wrap each shortcode in array to div
- Using PHP to toggle stylesheet and header image, set in cookie
- Nested shortCode functions in the functions.php file
- Making Quote Plugin more efficient
- Placing raw HTML inside a WordPress shortcode
- is_page “range” for if statement?
- PHP code inside shortcodes
- Shortcode content filter?
- Plugin CSS not enqueing
- Showing content from one page on another
- How to style options page in dashboard?
- How to display posts by current user in a drop down
- Get value from shortcode to do something
- Custom shortcode outputs plain text instead of HTML at top of post
- 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
- responsive.css in the WordPress should be prioritized
- Redirect to another page using contact form 7? [closed]
- Shortcode with PHP issue “Undefined index”
- height should be set to auto to avoid pixelation in the post thumbnail function
- 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?
- ::before on open/close function [closed]
- 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
- Creating a mobile site by adding a new class to the body tag from functions.php
- calling a custom field value inside functions.php
- List all blogs, but exclude the main site
- Noindex Posts From Certain Authors In WordPress
- Shortcode for Listing Users from Meta Value?
- Cant display an image via PHP in wordpress
- 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
- AJAX function not working [closed]
- 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
- PHP function for horizontal Woocommerce thumbnails and badges
- How can I prevent a shortcode div from extending beyond its boundaries?
- Show sidebar only to author of post
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- wpdb->query returns different value to phpMyAdmin
- 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
- 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]
- Integrating CSS Into a WP Function Call [closed]
- A next page function with shortcode?
- Load slideshow.css file only if Slideshow is checked / on
- Sorting Problem
- WP Custom tables query
- Display terms on product page with shotrcode
- why css file not link?how to create permalink?
- How call WordPress shortcode inside function file
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- Calling a function via a shortcode in javascript
- Adding a css class to the gallery
- Strip and print only the numbers found in current’s post excerpt (even if they are without space)
- Woocomerce custom add to cart button edit functionality [closed]
- How can we upload custom page files?
- Hide or Show Read More Button by Content Area