Table of Contents
Why show the latest comments first in WordPress
Method 1: First display newer comments in WordPress settings (simple)
Method 2: Manually set the order of WordPress comments displayed
Home CMS Tutorial WordPress How to show the latest comments first in WordPress

How to show the latest comments first in WordPress

Apr 20, 2025 am 07:21 AM
wordpress member arrangement Why 2025

Do 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.

How to show the latest comments first in WordPress

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.

How to show the latest comments first in WordPress

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.

How to show the latest comments first in WordPress

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".

How to show the latest comments first in WordPress

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.

How to show the latest comments first in WordPress

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".

How to show the latest comments first in WordPress

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.

How to show the latest comments first in WordPress

Now you can proceed to paste the following code snippet into the code editor:

How to show the latest comments first in WordPress

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".

How to show the latest comments first in WordPress

To make the code snippet take effect on your website, go ahead and click the Inactive slider to make it Active.

Finally, click "Update".

How to show the latest comments first in WordPress

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).

How to show the latest comments first in WordPress

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

WorldCoin (WLD) price forecast 2025-2031: Will WLD reach USD 4 by 2031? WorldCoin (WLD) price forecast 2025-2031: Will WLD reach USD 4 by 2031? Apr 21, 2025 pm 02:42 PM

WorldCoin (WLD) stands out in the cryptocurrency market with its unique biometric verification and privacy protection mechanisms, attracting the attention of many investors. WLD has performed outstandingly among altcoins with its innovative technologies, especially in combination with OpenAI artificial intelligence technology. But how will the digital assets behave in the next few years? Let's predict the future price of WLD together. The 2025 WLD price forecast is expected to achieve significant growth in WLD in 2025. Market analysis shows that the average WLD price may reach $1.31, with a maximum of $1.36. However, in a bear market, the price may fall to around $0.55. This growth expectation is mainly due to WorldCoin2.

Litecoin (LTC) price drops sharply to $65 Litecoin (LTC) price drops sharply to $65 Apr 21, 2025 pm 06:15 PM

Litecoin (LTC) price plummeted to $65 in early April, down nearly 7.5% in a week, echoing the plunge in the wider cryptocurrency market. The market crash caused billions of dollars to evaporate market value, Bitcoin (BTC) fell below $75,000, and altcoins generally fell. Macro factors such as rising U.S. Treasury yields and expected interest rates appear to intensify risk aversion in global markets. In addition, the large outflow of funds from Bitcoin spot ETFs further hits the confidence of retail investors and institutional investors. Against this backdrop, Litecoin is once again facing its long-term resistance level - the 200-week exponential moving average (EMA). The EMA had suppressed LTC prices in July 2023, when the price was close to $88. Historically, LTC and the

Ranking of legal platform apps for virtual currency trading Ranking of legal platform apps for virtual currency trading Apr 21, 2025 am 09:27 AM

This article lists the ranking of APPs for legal platforms for virtual currency transactions, emphasizing that compliance is an important consideration for choosing a platform. The article recommends platforms such as Coinbase, Gemini, and Kraken, and reminds investors to study regulatory information and pay attention to security records when making choices. At the same time, the article emphasizes that virtual currency transactions are high-risk and investments should be cautious.

The latest updates to the oldest virtual currency rankings The latest updates to the oldest virtual currency rankings Apr 22, 2025 am 07:18 AM

The ranking of virtual currencies’ “oldest” is as follows: 1. Bitcoin (BTC), issued on January 3, 2009, is the first decentralized digital currency. 2. Litecoin (LTC), released on October 7, 2011, is known as the "lightweight version of Bitcoin". 3. Ripple (XRP), issued in 2011, is designed for cross-border payments. 4. Dogecoin (DOGE), issued on December 6, 2013, is a "meme coin" based on the Litecoin code. 5. Ethereum (ETH), released on July 30, 2015, is the first platform to support smart contracts. 6. Tether (USDT), issued in 2014, is the first stablecoin to be anchored to the US dollar 1:1. 7. ADA,

What does cross-chain transaction mean? What are the cross-chain transactions? What does cross-chain transaction mean? What are the cross-chain transactions? Apr 21, 2025 pm 11:39 PM

Exchanges that support cross-chain transactions: 1. Binance, 2. Uniswap, 3. SushiSwap, 4. Curve Finance, 5. Thorchain, 6. 1inch Exchange, 7. DLN Trade, these platforms support multi-chain asset transactions through various technologies.

Bitcoin market trend chart in the past decade (analysis of Bitcoin price historical trends from 2014 to 2025) Bitcoin market trend chart in the past decade (analysis of Bitcoin price historical trends from 2014 to 2025) Apr 21, 2025 pm 07:30 PM

Bitcoin price has experienced multiple cycles of fluctuations and growth. 1. From 2013 to 2014, the price soared from less than $10 to $1,150, and then plummeted to $200. 2. From 2015 to 2016, prices stabilized and rebounded, and infrastructure improvements enhanced market confidence. 3. From 2017 to 2018, the price plummeted to US$3,000 after exceeding US$20,000, and the tightening of China's regulatory policies caused an impact. 4. From 2019 to 2021, the price rebounded to more than US$10,000, and exceeded US$60,000 in 2021, and institutional investors entered the market to drive the rise. 5. From 2022 to 2024, the price rebounded to $50,000 after the market correction, and the launch of US ETFs brought new funds. 6. At the beginning of 2025, the price is around 1

How to win KERNEL airdrop rewards on Binance Full process strategy How to win KERNEL airdrop rewards on Binance Full process strategy Apr 21, 2025 pm 01:03 PM

In the bustling world of cryptocurrencies, new opportunities always emerge. At present, KernelDAO (KERNEL) airdrop activity is attracting much attention and attracting the attention of many investors. So, what is the origin of this project? What benefits can BNB Holder get from it? Don't worry, the following will reveal it one by one for you.

Rexas Finance (RXS) can surpass Solana (Sol), Cardano (ADA), XRP and Dogecoin (Doge) in 2025 Rexas Finance (RXS) can surpass Solana (Sol), Cardano (ADA), XRP and Dogecoin (Doge) in 2025 Apr 21, 2025 pm 02:30 PM

In the volatile cryptocurrency market, investors are looking for alternatives that go beyond popular currencies. Although well-known cryptocurrencies such as Solana (SOL), Cardano (ADA), XRP and Dogecoin (DOGE) also face challenges such as market sentiment, regulatory uncertainty and scalability. However, a new emerging project, RexasFinance (RXS), is emerging. It does not rely on celebrity effects or hype, but focuses on combining real-world assets (RWA) with blockchain technology to provide investors with an innovative way to invest. This strategy makes it hoped to be one of the most successful projects of 2025. RexasFi

See all articles