get_the_content and the_author have to be in a loop so you would need to use other functions to get the content you need
global $wp_query;
$post = $wp_query->post;
$page_id = $post->ID; // page ID
$page_object = get_page( $page_id ); // page stuff
$author_id = $post->post_author; // author ID
$page_content = $page_object->post_content;
$author_name = get_the_author_meta( 'display_name', $author_id);
Related Posts:
- Split Content and Gallery
- How to get Author ID outside the loop
- How can i display the content in plaintext
- remove tags from the_content
- the_content and wp_link_pages
- Add Incrementing ID to each paragraph in the_content
- Use the_content outside the loop
- Display all authors and their only one latest post
- get_the_content not working in loop?
- the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”
- Content/Excerpt length control for a specific loop?
- Enable infinite scroll on single.php [closed]
- single page site with subpages
- Combining the_excerpt with the_content
- the_content() seems to block my ACF-code
- Removing the_content() from the page
- How to make post content from each post display within the same div
- Loop after page content
- Only display videos and images in the_content() within loop
- Styling text and images in the_content()
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- Display Authors in a grid loop
- On single.php, fetch 2 posts created after and 2 posts created before in relation to the actual post (using menu_order)
- Modified loop-single-forum.php to work inside of a sidebar Widget, not working on some site pages
- ACF custom field in [closed]
- How to hook into container
- Pagination on Single Post
- Get author_id in wordpress
- Single.php different behaviour from admin to non-admin
- Display Post Author Link above the loop
- Conditional: IF current user has NOT commented on current post (not including post author)
- How can I display other user avatars on an author profile page?
- How is WordPress changing the content markup?
- Integrating WordPress with Your Website
- Can’t grab author info outside of the loop
- Saving return value from the_author_posts_link()
- Display more than 10 posts on author.php file
- How to add a byline to all the pages?
- List ALL posts by author on author archive
- Insert content above an embedded video inside Wordress’ php the_content
- Split Content and Gallery
- Show other category posts in single.php
- the_content() keeps repeating itself
- Echo Most Recent Sticky Post in Loop?
- Making a specific page wordpress compatable that is not index
- how to use custom loop in the_content filter
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Have multiple loops on a page appear after/between page content
- Displaying posts limit: can’t get pagination to display [duplicate]
- Exclude Authors based off date of last post
- In Loop Output Place Custom Field Content In Between Paragraphs
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Single Loop With Dual Content Area
- Custom Post Type archive above Single Post in single.php (same author)
- How to add custom HTML markup and classes to the_content()?
- the_content() “crashes” for single pages
- Hide old posts each year
- How to fix pagination for custom loops?
- Jquery Slider for profile template
- Counting the posts of a custom WordPress loop (WP_Query)?
- if ( is_home() && ! is_front_page() )
- Get excerpt using get_the_excerpt outside a loop
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- Get post content from outside the loop
- Why should I put if(have_posts()), is while(have_posts()) not enough?
- Display featured products through custom loop in woocommerce on template page
- Redirect loop when trying to login to /wp-admin/ [duplicate]
- How to split a loop into multiple columns
- Is it necessary to reset the query after using get_posts()?
- Is there any difference between the_title() and echo get_the_title()?
- AJAX with loop filtering categories
- WordPress Internal @ Mentions
- Do I need to use The Loop on pages?
- Remove the Homepage Query
- the_title() shows title of the first post instead of the page title?
- How to force excerpts / teasers in the loop
- Retrieve each widget separately from a sidebar
- Why am I being limited to ten posts on a custom loop?
- Should I use loop in the single.php file?
- A search for ‘0’ returns results
- Why do themes rely on “The Loop”?
- How do I get the category URL from get_the_category?
- How to return loop contents
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Display Authors Comments on Profile Page
- Cleanest Way to Select Every Second Element in a Loop?
- How to show list of posts by author and category?
- Insert image or ad script after 3 posts using the loop
- Get date of last update outside of loop
- Pagination not working on home page
- Child Pages Loop
- How to place comments_template(); outside the loop?
- Multiple Loops Homepage?
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- how to upload image using wp_handle_upload
- Avoiding using a loop to access a single post
- How to add author details in the post sidebar?
- How to get the first image gallery of a product in woocommerce in a loop
- Get post by page name or slug
- save_post + insert_post = infinite loop