How to show the latest comments first in WordPress
Apr 20, 2025 am 07:21 AMDo you want to show the latest comments first in WordPress?
By default, WordPress first displays older comments. However, you may want to change this setting so that the latest comments appear first.
In this article, we will show you how to easily rearrange comments in WordPress and first show the latest comments.
Why show the latest comments first in WordPress
By default, WordPress displays comments in the order in which comments are posted, so the oldest comments always show first. This means that the first thing visitors see is the oldest comments from the post.
Comments can improve user engagement, but showing outdated comments first is not the best way to spark new conversations.
By showing the latest comments first, you can encourage visitors to join the discussion and keep the conversation going. This is a great way to get more comments on your WordPress blog.
Highlighting the latest reviews can also make your website look fresher, lively and attractive. This can increase WordPress’s comprehensive views and reduce bounce rates.
That being said, let's first look at how to easily display the latest reviews in WordPress. Just use the quick link below to jump to the method you want to use:
- Method 1: First display newer comments in WordPress settings (simple)
- Method 2: Manually set the order of WordPress comments displayed
Method 1: First display newer comments in WordPress settings (simple)
The easiest way to rearrange your comments is to go to Settings ? Discussions in your WordPress dashboard.
In another "Other Comment Settings" section, find "Comments should show as..."
The default is "Older Comments at the Top of Each Page", but you can open this drop-down list and select "Newer".
Once you have done this, just scroll to the bottom of the page and click Save Changes to store your settings.
Now, if you visit your WordPress blog, you will see the latest comments first.
Method 2: Manually set the order of WordPress comments displayed
The first method is the easiest, but in some cases the WordPress settings don't work.
For example, you might have created a custom WordPress theme, or you might be developing a multi-author WordPress blog but don't have access to WordPress settings.
In this case, you can first use the code to display the latest comments.
Typically, the tutorial will tell you to add custom code snippets to the theme's functions.php file. However, we do not recommend using this method, as a small error in the code can cause many common WordPress errors and even completely destroy your website.
This is why we recommend using WPCode. This is the easiest and safest way to add code snippets in WordPress without editing any core WordPress files.
The first thing you need to do is install and activate the free WPCode plugin on your website. For more details, see our step-by-step guide on how to install WordPress plug-ins.
Once activated, you need to go to the Code Snippet? Add snippet in the WordPress dashboard.
Here you will see all the different ready-made snippets that you can add to your website. These include snippets of code that allow you to completely disable comments and disable the WordPress admin bar.
Since we want to add our own code snippets, just hover over "Add your custom code" and click "Use code snippets".
First, just enter the title of the custom code snippet. This can be anything that can help you identify snippets of code in your WordPress dashboard.
After that, open the Code Type drop-down list and select PHP Fragment.
Now you can proceed to paste the following code snippet into the code editor:
When you are done, scroll to the top of the screen and click the Inactive toggle button to change it to Active.
Finally, click "Save Fragment".
To make the code snippet take effect on your website, go ahead and click the Inactive slider to make it Active.
Finally, click "Update".
Now, if you visit your WordPress site, you will see the latest reviews at the top of the comments section.
Note that this code will overwrite your WordPress settings. If you want to switch back to displaying the oldest comments first, you need to disable the code snippet.
Just go to Code Snippet ? Code Snippet . Here, find the comment clip and click its toggle button to change it from active (blue) to inactive (grey).
We hope this article helps you understand how to display the latest reviews in WordPress. You may also want to check out our guide on how to allow users to sign up on your WordPress website, or check out our expert selection of the best WordPress membership plugins.
The above is the detailed content of How to show the latest comments first 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)

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

Directory What is Bitcoin? How does Bitcoin work? Why is Bitcoin not scalable? What is BIP (Bitcoin Improvement Proposal)? What is Bitcoin Taproot Update? Pay to Taproot (P2TR): Benefits of Taproot: Space-saving privacy advantages Security upgrade conclusion: ?Bitcoin is the first digital currency that can send and receive funds without using a third party. Since Bitcoin is software, like any other software, it needs updates and bug fixes. Bitcoin Taproot is such an update that introduces new features to Bitcoin. Cryptocurrency is a hot topic now. People have been talking about it for years, but now with prices rising rapidly, suddenly everyone decides to join and invest in them. Message

Domestic purchase of Bitcoin must be carried out through compliance channels, such as Hong Kong licensed exchanges or international compliance platforms; 2. Complete real-name authentication after registration, submit ID documents and address proof and perform facial recognition; 3. Prepare legal currency and recharge it to the trading account through bank transfer or electronic payment; 4. Log in to the platform to select Bitcoin trading pairs, set limit orders or market orders to complete the transaction; 5. Pay attention to market fluctuations and platform security, enable dual certification and comply with domestic regulatory policies; overall, investors should operate cautiously under the premise of compliance and participate in Bitcoin investment rationally.

This article explores in-depth two main strategies for implementing call hold (Hold) and recovery (Un-hold) in Twilio voice calls. First of all, it is recommended to use the Twilio Conference feature to easily control the retention and recovery of calls by updating the resources of meeting participants, and to configure the retention of music. Second, for more complex independent call leg scenarios, the article explains how to manage call state through carefully designed TwiML streams (such as using, and) to avoid accidental disconnection of non-holding legs and enable call reconnection.
![[2025 Latest] Bitcoin real-time market APP rankings, these 5 are the most accurate and fastest!](https://img.php.cn/upload/article/000/000/083/6888925c6d544409.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
The five most popular Bitcoin market APPs in 2025 are: 1. Binance, whose data comes directly from the world's largest trading pool, updated in milliseconds, suitable for professional traders; 2. Ouyi (OKX), accurate market conditions and smooth APP experience, the first choice for mobile users; 3. Huobi (HTX), a veteran exchange, stable technology, reliable mainstream currency data; 4. Gate.io (Sesame Open Door), rich currency types, is a powerful tool for mining the early market of altcoins; 5. CoinMarketCap, a world-renowned data aggregation platform, integrates data from hundreds of exchanges, provides weighted average reference prices, authoritative and fair.

The Hong Kong government restarted the "Capital Investor Entry Plan", and for the first time included cryptocurrencies in the investment scope, clearly attracting high-net-worth individuals around the world with the investment threshold of HK$30 million; of which HK$3 million must be invested in the Innovation and Technology Investment Portfolio, and HK$27 million can be used to invest in stocks, bonds, funds, non-residential real estate or virtual assets; 1. Applicants can invest all HK$27 million in cryptocurrencies traded on platforms such as Ethereum and the Hong Kong Securities Regulatory Commission; 2. The typical combination is HK$27 million Ethereum plus HK$3 million Innovation and Technology Investment, meeting the application conditions; this move marks Hong Kong's active construction of Web3 and virtual asset centers to promote the digital economy and talent aggregation.

The core of using PHP to combine AI to achieve automatic digest is to call AI service APIs, such as OpenAI or cloud platform NLP services; 2. Specific steps include obtaining API keys, preparing plain text, sending POST requests with curl, analyzing JSON responses and displaying the digest; 3. The digest can efficiently filter information, improve readability, assist in content management and adapting to fragmented reading; 4. Selecting a model requires consideration of the abstract type (extracted or generated), cost, language support, document ease of use and data security; 5. Common challenges include rate limiting, network timeout, text length limit, cost out of control and quality fluctuations. The response strategy includes retry mechanism, asynchronous queue, block processing, cache results and optimization prompt words.
