Put the two functions on same line, like this:
<?php the_author_posts_link(); ?> <?php the_time('g:i a'); ?>
If this doesn’t work, first get the values and then output them, like this:
<?php
$author_name = get_author();
$author_link = get_author_posts_url( get_the_author_meta( 'ID' ) );
$post_time = get_the_time('g:i a');
?>
<p>
<a href="https://wordpress.stackexchange.com/questions/166166/<?php echo $author_link; ?>" title="<?php echo $author_name; ?>"><?php echo $author_name; ?></a> <?php echo $post_time; ?>
</p>
Related Posts:
- Why use if function_exists?
- get php variable from functions php and echo it in theme template files [closed]
- Use AJAX in shortcode
- Include files in child theme functions file
- Remove Container Element From wp_nav_menu() Markup
- WordPress function like is_category for subcategory? is_subcategory?
- WordPress Theme Update Action?
- How to get woocommerce inventory status [closed]
- Using a private method as an action callback from within a class
- Auto close (hide) custom metabox / set default state
- Does WordPress Development Mode Exist (with not minified JS)?
- WP_Query in functions.php
- Implementing DNS Prefetching with WordPress
- wp_delete_user with username
- what is the meaning of settings_fields()
- Organize functions.php
- How to activate “Description” metabox for menu item programmatically?
- Change labels on ‘Nickname’ and ‘Biographical Info’ in user-edit.php
- Edit the_content function
- write in functions.php
- How to set child post categories to parent post categories when updating parent post?
- get excerpt without images
- display 100 products per page on product category page [closed]
- WooCommerce add_action hook results in 500 error
- Advice: Template structure – php blocks in sidebar or someting else?
- Help to resolve Syntax error, unexpected ‘endwhile’ (T_ENDWHILE) [closed]
- Checked() showing up twice in custom fields
- wp_get_post_terms() returns WP_Error in functions.php but in template it works
- Removing the first image in content
- Make menu structure match page heirarchy on page parent change
- Gravity Forms field entries into wp_query loop [closed]
- Global functions on WPMU
- Remove the deleted users avatar from list
- is_account_page() change to page slug
- Adding to fontawesome-webfont.woff2 to boost website speed
- How to enable template page only for a post id page
- Help with WP gallery function, wrap gallery in div
- set_post_thumbnail when user is not logged in
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- Adding an external HTML link to a post thumbnail
- Overwriting the menu break points of twentysixteen in child theme
- Is there a WP function to get taxonomy name from taxonomy_term_id?
- Passing User_Fields to Contact form 7 [duplicate]
- How can this crude function be improved?
- Help With Creating Shortcode
- How to override woocommerce.css?
- How to set default post editor based on role?
- Author Date Function not working as expected [duplicate]
- Add_filter when value is no variable?
- The Loop not looping?
- wp_star_rating() – Adding a 5 star rating system to theme
- How to hide image-url if no attachment?
- Hide thumbnail on search results when thumbnail not set – using Oxygen
- Use Composer Package inside class – Namespacing error
- How to properly refresh page after form action?
- Default Nav Highlight
- Update to functions.php not showing in dashboard
- Multiple navigation menu in same location
- Change WooCommerce add_to_cart Button Text?
- Function to pull data from user meta not working
- referencing the current user in a page i created in wordpress
- Counting posts and trigger it [closed]
- When are the user meta fields created in the database? Admin vs Woo API REST
- is_product_category(‘Services’) not working
- How to automatically add counted number to navigation menu items?
- Replace theme function
- How to access custom class methods from any include without using global
- Is it possible to use ‘wp_insert_post’ function within a for loop?
- save_post function keeps triggering: Warning: array_map(): Argument #2 should be an array… when restoring from trash
- More than one search results page template for two searches on site
- How do i create a search option for pdf’s only
- What is best practices to move the following code into a function?
- Correct way of Enqueue self hosted fonts in sass project
- Redirect after login to current URL
- Restrict certain roles registrations by domain
- Replacing term/taxonomy archive pages with search queries
- Return ACF Field value function
- Best way to add image to recent posts widget?
- Issues with add_query_arg() not passing a variable
- wp_enqueue_script only works outside of action
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Force changing the Site Title and add link
- create submenu page – error function not found or invalid function name
- Get Value of Custom Field
- How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]
- Undefined offset: 2
- Need a functions that adds (adm)/(mod) if current user is admin/moderator right after their username
- Sorting date results from a query
- Using is_plugin_active within functions.php
- Add title & subtitle to shortcodes
- Button generate a random URL [closed]
- How to Delete Posts by title?
- How do I add functionality to images?
- Display function from functions.php in tag.php
- AJAX values converted to PHP Variables?
- Custom Post Type Search
- function to show youtube videos within excerpt – if condition and apply_filters
- How to automatically load Google Fonts on pages only as they’re used?