How to rewrite guest author name using custom fields in WordPress
Apr 20, 2025 am 07:00 AMDo you want to rewrite your guest author's name using a custom field in WordPress?
If you accept guest posts on your WordPress blog, you may not want to create a new user account for every guest author on your website.
In this article, we will show you how to easily rewrite guest authors in WordPress using custom fields without creating user accounts.
Method 1. Add guest author information using WordPress plugin
For this method, we will use the WordPress plugin. Using plugins can make the process easier, and we recommend it to all users.
First, you need to install and activate the Guest Author plugin. For more details, see our step-by-step guide on how to install WordPress plug-ins.
Once activated, you need to edit the blog post you want to pay tribute to the guest author.
On the editing screen, you will notice a new tab labeled "Author" under the Posts panel on the right.
From here, switch to the Visitors tab and enter the visitor author information, such as the author name, website, biographical description, and images.
After that, you can save or post a post and preview it in your browser. This is how it looks on our demo website.
Method 2. Add a guest author in WordPress using custom fields
This method requires you to add some code to your WordPress theme file. If you haven't done this before, check out our guide on how to add custom code snippets in WordPress.
We will use a WordPress feature called Custom Fields. Custom fields allow you to add custom metadata to content, which you can then display in a WordPress theme by adding some code.
To learn more about custom fields, you may want to check out our article on WordPress Beginner Custom Fields.
In this tutorial, we first save the guest author name as a custom field in WordPress. After that, we will use the code snippet to replace the author name with the guest author name that can be used as custom metadata.
First, you need to edit the blog post where you want to display the guest author's name.
On the editing screen, click the three-dot menu in the upper right corner of the screen and select Preferences.
This will pop up the Block Editor settings popup.
From here, you need to switch to the Panel tab and open the Custom Fields option.
You can now close the Preferences pop-up.
After that, you will notice a new custom field box below the editor.
Now you need to click the "Enter New" link to create a custom field for the guest author name.
First enter "guest-author" as the name of the custom field. Then in the Value field, just enter the guest author's name.
Continue and click the "Add Custom Field" button to save.
After that, don't forget to update or save your blog post.
Now that we have saved the guest author information as a custom field, the next step is to display it on your website.
To do this, you need to copy and paste the following code into the functions.php file of the theme or into the site-specific plugin.
We hope this article helps you easily rewrite the author's name and replace it with the guest author's name in WordPress. You may also want to check out other WordPress tips, tips, and tips, or check out our guide on using user-generated content to grow your WordPress blog.
The above is the detailed content of How to rewrite guest author name using custom fields in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

As a PayFi token, is Remittix (RTX) ready to shake the Cardano ecosystem and challenge the core position of ADA? Let's take a deeper analysis of key trends and forward-looking insights that are reshaping the DeFi landscape. Entering 2025, the Cardano ecosystem has shown vigorous vitality, but an emerging force, Remittix (RTX), has risen strongly on the PayFi track, which may pose a substantial threat to ADA's dominance. Is a drama about a counterattack in market value about to happen? Cardano's steady path forward Cardano has long established its benchmark image of green blockchain, and has developed steadily based on the energy-saving proof of stake (PoS) mechanism and its increasingly enhanced scalability. Hydra

The MBG token launched by MultiBank Group is attracting widespread attention. With its efficient pre-sale performance and successful launch, it has successfully opened up the barriers between traditional finance and blockchain technology. MBG tokens have become a hot topic in the financial circle. After all sold out in just a few minutes during the pre-sale stage, the token officially entered the market for circulation on July 22, 2025. This action not only has great significance to the MultiBank Group, but also brings new imagination space to the entire crypto ecosystem. Next, let’s take a look at what’s special about MBG. Why does MBG attract attention? It is not an ordinary crypto asset, but a digital voucher that anchors real value. Relying on MultiBank Group Daily Gundam

Against the backdrop of continued inflationary pressure, finding investment targets with long-term anti-inflation has become the focus of New York investors. Although core inflation is still above the Fed's 2% target (2.9% in June 2025), "dividend aristocrats" - those high-quality companies that have increased their dividends for many years - are becoming a stable anchor in asset allocation. This article will focus on three high-dividend targets that perform soundly: Amko, Global Tobacco and RealtyIncome, and explore how they can achieve sustained growth in complex environments. AmcorPLC (AMCR): The hidden champion of the consumer packaging track, headquartered in Switzerland, AmcorPLC is the world's leading provider of consumer packaging solutions, currently providing 5.38% of the total

The core idea of PHP combining AI for video content analysis is to let PHP serve as the backend "glue", first upload video to cloud storage, and then call AI services (such as Google CloudVideoAI, etc.) for asynchronous analysis; 2. PHP parses the JSON results, extract people, objects, scenes, voice and other information to generate intelligent tags and store them in the database; 3. The advantage is to use PHP's mature web ecosystem to quickly integrate AI capabilities, which is suitable for projects with existing PHP systems to efficiently implement; 4. Common challenges include large file processing (directly transmitted to cloud storage with pre-signed URLs), asynchronous tasks (introducing message queues), cost control (on-demand analysis, budget monitoring) and result optimization (label standardization); 5. Smart tags significantly improve visual

Dogecoin is ushering in a strong rebound, ending the four-year sluggish market. Is this a brief rise, or is it a sign that DOGE is about to open a long-term upward channel? Dogecoin rebounded strongly, and the haze of the bear market dissipated? The Meme Coin King returns to the center of the stage! Dogecoin has been strong recently, far exceeding market expectations. After a long period of silence, its price successfully broke through the important mark of $0.27, implying that the four-year bear market cycle may have come to an end. The end of the bear market signal shows that July has been the weakest month for Dogecoin in the past few years, but this year has been very different. The gains have exceeded 65% this month, marking the strongest July performance in the token's history. This trend also makes positive growth in the third quarter, breaking the third quarter for four consecutive years since 2021.

Bitcoin (BTC): The basis of every cryptocurrency portfolio. Bitcoin is often known as "digital gold" as the earliest and most widely known cryptocurrency. Entering 2025, its market performance once again amazed the world, with prices breaking through the $123,000 mark, setting a new record of historical highs. With a fixed supply cap of 21 million coins, a decentralized architecture and a powerful cybersecurity mechanism, Bitcoin has become a popular store of value in the digital age. Institutional interest in crypto assets continues to heat up, and more and more companies and even national entities are beginning to include Bitcoin in their asset allocation. The official approval of spot Bitcoin ETF further lowered the entry threshold for ordinary investors and injected a lot of liquidity and confidence into the market. The reason why Bitcoin is always prosperous

The real use of battle royale in the dual currency system has not yet happened. Conclusion In August 2023, the MakerDAO ecological lending protocol Spark gave an annualized return of $DAI8%. Then Sun Chi entered in batches, investing a total of 230,000 $stETH, accounting for more than 15% of Spark's deposits, forcing MakerDAO to make an emergency proposal to lower the interest rate to 5%. MakerDAO's original intention was to "subsidize" the usage rate of $DAI, almost becoming Justin Sun's Solo Yield. July 2025, Ethe

What is Treehouse(TREE)? How does Treehouse (TREE) work? Treehouse Products tETHDOR - Decentralized Quotation Rate GoNuts Points System Treehouse Highlights TREE Tokens and Token Economics Overview of the Third Quarter of 2025 Roadmap Development Team, Investors and Partners Treehouse Founding Team Investment Fund Partner Summary As DeFi continues to expand, the demand for fixed income products is growing, and its role is similar to the role of bonds in traditional financial markets. However, building on blockchain
