How to set up the WordPress Popular Posts (WPP) popular posts display plugin

Hello. While WordPress's default environment doesn't allow displaying popular posts, you can easily showcase them using the WordPress Popular Posts (WPP) plugin. Displaying popular posts provides visitors with useful information.

This article will detail how to configure the WordPress Popular Posts (WPP) plugin and explain the additional settings (Miscellaneous) page using the widget. We'll examine what each setting means and which options to select.

WordPress Popular Posts 플러그인

🖼️ 1. Thumbnails (Thumbnail Settings)

This screen configures the thumbnails (images) used in the popular posts list. To access the settings screen, activate the WordPress Popular Posts plugin, then click Tools at the top to navigate to the settings page.

📌 Setting Options

Default thumbnail (기본 썸네일)

게시물에 썸네일이 없을 경우 표시할 기본 이미지입니다.

"Change thumbnail" 버튼: 직접 썸네일 이미지를 변경할 수 있음.

"Reset thumbnail" 버튼: 기본 설정으로 초기화.

Pick image from (썸네일 선택 기준)

인기 게시물 목록에서 어떤 이미지를 썸네일로 사용할지 지정합니다.

First image on post (게시물 내 첫 번째 이미지) → 현재 선택됨.

Featured image (대표 이미지) → 대표 이미지가 있을 경우 추천.

Thumbnail format (썸네일 포맷)

썸네일 이미지 형식을 설정합니다.

webp 선택 → 웹에서 최적화된 이미지 형식(빠른 로딩과 높은 압축률).

다른 옵션: JPEG, PNG 등.

Lazy load (지연 로딩)

Yes (사용) → 웹사이트 로딩 속도를 빠르게 하기 위해, 사용자가 페이지를 스크롤할 때 이미지가 로드됨.

No (사용 안 함) → 페이지가 로드될 때 모든 이미지를 한 번에 불러옴(속도 저하 가능성 있음).

Empty image cache (썸네일 캐시 삭제)

썸네일이 정상적으로 표시되지 않을 때 사용.

버튼을 누르면 WPP가 저장한 모든 썸네일 캐시가 삭제되고, 새롭게 생성됨.
  1. Default thumbnail
    • This is the default image displayed if a post lacks a thumbnail.
    • "Change thumbnail" button: Allows you to directly change the thumbnail image.
    • "Reset thumbnail" button: Resets to default settings.
  2. Pick image from
    • Specifies which image to use as the thumbnail from the popular posts list.
    • First image on post → Currently selected.
    • Featured image → Recommended if a featured image exists.
  3. Thumbnail format
    • Set the thumbnail image format.
    • Select webp → An image format optimized for the web (fast loading and high compression).
    • Other options: Avif, JPEG, PNG, etc.
  4. Lazy load
    • Yes → Images load as the user scrolls down the page to speed up website loading.
    • No (Disable) → Loads all images at once when the page loads (may slow down speed).
  5. Empty image cache
    • Use when thumbnails are not displaying properly.
    • Clicking this button deletes all thumbnail caches stored by WPP and regenerates them.

Recommended Settings

  • If no thumbnail exists, setting a default image is essential!
  • "Pick image from" → Featured image (Main image) recommended
  • For website speed, select Lazy Load = "Yes"
  • If issues occur, click the "Empty image cache" button

📊 2. Data (Data Settings)

This screen configures how popular post data is recorded and cached.

Log views from (조회수 기록 대상)

Everyone (모든 사용자) → 현재 설정됨.

로그인한 사용자만 기록할 수도 있음.

Log limit (로그 보관 기간)

조회수 데이터를 180일(6개월) 동안 저장.

오래된 데이터는 자동으로 삭제됨.

Load popular posts list via AJAX (AJAX로 인기 게시물 불러오기)

Disabled (비활성화)

AJAX를 사용하면 인기 게시물 목록을 동적으로 불러올 수 있지만, 캐싱 플러그인과 충돌할 가능성 있음.

Data Caching (데이터 캐싱)

Enable caching (캐싱 활성화) → 현재 설정됨.

캐시를 활성화하면 서버 부하를 줄이고 인기 게시물 목록을 빠르게 표시할 수 있음.

Refresh cache every (캐시 갱신 주기)

5시간마다 캐시 새로고침 → 현재 설정됨.

사이트 트래픽이 많다면 더 짧게(예: 1~2시간) 설정 가능.

Data Sampling (데이터 샘플링)

Enabled (샘플링 활성화)

모든 방문자를 기록하면 데이터베이스 부하가 심해질 수 있음. 샘플링을 통해 일부 방문자만 기록하여 최적화.

📌 Configuration Options

  1. Log views from
    • Everyone → Currently set.
    • You can also choose to log only logged-in users.
  2. Log limit (Log retention period)
    • View count data is stored for 180 days (6 months).
    • Older data is automatically deleted.
  3. Load popular posts list via AJAX
    • Disabled
    • Using AJAX allows dynamic loading of the popular posts list, but may conflict with caching plugins.
  4. Data Caching
    • Enable caching → Currently enabled.
    • Enabling caching reduces server load and allows the popular posts list to display quickly.
  5. Refresh cache every
    • Refresh cache every 5 hours → Currently set.
    • If site traffic is high, you can set it to a shorter interval (e.g., 1-2 hours).
  6. Data Sampling
    • Enabled
    • Recording every visitor can cause heavy database load. Sampling optimizes by recording only a portion of visitors.

Recommended setting

  • "Log views from" → Keep "Everyone"
  • "Log limit" → Exercise caution with database load when setting to 180 days or more
  • "Load via AJAX" → Keep Disabled if using a caching plugin
  • "Data Caching" → Keep Enabled (improves performance)
  • "Refresh cache every" → Recommended 3-6 hours (shorter intervals if real-time data is required)
  • "Data Sampling" → Recommended to Enable on high-traffic sites

⚙️ 3. Miscellaneous (Other Settings)

This screen configures how popular post lists are displayed and data deletion functionality.

📌 설정 옵션

Open links in (링크 열기 방식)

Current window (현재 창에서 열기)

클릭 시 기존 창에서 새 게시물로 이동.

New window (새 창에서 열기)로 변경 추천 → 방문자가 사이트를 이탈하지 않도록 유지.

Use plugin’s stylesheet (플러그인 스타일시트 사용)

Enabled (기본 스타일 적용)

WPP의 기본 CSS 스타일을 사용할지 결정.

만약 사이트 디자인과 다르게 보인다면 Disabled(사용 안 함)으로 변경하고 직접 CSS 적용 가능.

Enable experimental features (실험적 기능 활성화)

체크 해제됨(비활성화).

안정성을 위해 기본적으로 비활성화 추천!

📌 Settings Options

  1. Open links in
    • Current window (Open in current window)
    • Opens new posts in the current window when clicked.
    • Recommended to change to New window → Keeps visitors from leaving the site.
  2. Use plugin’s stylesheet
    • Enabled (Apply default styles)
    • Determines whether to use WPP's default CSS styles.
    • If it appears different from your site design, change to Disabled and apply CSS manually.
  3. Enable experimental features
    • Unchecked (disabled).
    • Recommended to keep disabled by default for stability!

🗑️ 4. Data Management (Clear Cache and Data)

Function to delete popular post data and cache.

📌 설정 옵션

Empty cache (캐시 지우기)

인기 게시물 캐시만 삭제.

인기 게시물 순위가 이상하게 표시될 때 사용.

Clear all data (모든 데이터 삭제)

조회수 및 인기 게시물 기록을 포함한 모든 데이터를 삭제.

완전 초기화할 때만 사용 (주의 필요).

✅ 추천 설정

"Empty cache" → 인기 게시물 순위가 이상할 때만 사용

"Clear all data" → 되돌릴 수 없으므로 신중하게 사용!

📌 Settings Options

  1. Empty cache
    • Deletes only the popular post cache.
    • Use when popular post rankings display abnormally.
  2. Clear all data
    • Deletes all data, including view counts and popular post history.
    • Use only for complete initialization (caution required).

Recommendation Settings

  • "Empty cache" → Use only when the popular post ranking appears abnormal
  • "Clear all data" → Use with extreme caution as this action cannot be undone!

🎯 Recommended Optimal Settings (Recommended Settings)

OptionRecommended SettingsDescription
Thumbnail SourceFeatured imageIf no featured image is available, use the first image in the post
Lazy LoadYesWebsite Speed Optimization
View Count Tracking TargetEveryoneRecord view counts for all visitors
Log Retention Period180 daysTo reduce database load, 90 to 180 days is recommended
AJAX usageDisabledPrevents conflicts when using caching plugins
Data CachingEnable cachingEnable caching for faster performance
Cache refresh interval3 to 6 hoursCan be adjusted to 1–3 hours if real-time data reflection is required
Link opening methodNew windowEncourages visitors to stay longer on the site
Plugin styleEnabledMaintain default style, apply custom CSS as needed
Clear cacheEmpty cacheUse when changes aren't reflected after settings are modified

How to Display WordPress Popular Posts (WPP) in the Sidebar 🔥

Using the WordPress Popular Posts (WPP) plugin allows you to display your most popular posts in the sidebar. Showing
popular posts in the sidebar helps visitors easily view other posts, increasing time spent on your pages.

Installation and Setup Method (How to Add a Widget)

  1. Go to the
    WordPress admin panel → Click the [Appearance] → [Widgets] menu
  2. Add the "WordPress Popular Posts" widget
    • Select the Sidebar area
    • Drag & drop the "WordPress Popular Posts" widget
    • Or click the "Add Widget" button to add
  3. Adjust widget settings
    • Title: Enter the title to display in the sidebar (e.g., "Popular Posts" or "Most Viewed Articles")
    • Sorting Criteria: Sort by Views or Comments
    • Period setting: Select the timeframe for calculating popular posts (e.g., Last 7 days, Last 30 days, etc.)
    • Number of posts to display: 5 to 10 recommended by default
    • Show Thumbnails: Choose whether to display thumbnails
    • Show post summary: Choose whether to display a portion of the post content
  4. Save and Confirm
    • After completing the settings, click the "Save" button
    • Visit the site to verify that popular posts are displayed correctly in the sidebar

🎯 Method 2: Using Shortcodes

If you cannot use widgets, you can use shortcodes to display popular posts in the sidebar.

📌 Shortcode Example

[wpp title="인기 게시물" limit=5 order_by="views" thumbnail_width=100 thumbnail_height=100 stats_views=1]

📌 Shortcode Attribute Description

  • title="인기 게시물" → Sidebar Title
  • limit=5 → Displays up to 5 posts
  • order_by="views" → Sort by views
  • thumbnail_width=100 thumbnail_height=100 → Adjust thumbnail size
  • stats_views=1 → Show/hide view count

How to apply shortcodes

  • [Appearance] → [Widgets] → Add a "Text" or "Custom HTML" widget
  • Enter the shortcode above and save

🎯 Method 3: Directly Insert into Theme Files (Using PHP Code)

If you want to add the code directly to your theme files (sidebar.php etc.), use the PHP code below.

📌 PHP Code Example

<?php
    if ( function_exists('wpp_get_mostpopular') ) {
        wpp_get_mostpopular(array(
            'limit' => 5,  // 인기 게시물 5개 표시
            'range' => 'weekly', // 최근 일주일 기준
            'thumbnail_width' => 100,
            'thumbnail_height' => 100,
            'order_by' => 'views', // 조회수 기준 정렬
            'stats_views' => 1, // 조회수 표시
        ));
    }
?>

📌 How to apply PHP code

  • Insert the above code into the sidebar.php or wherever you want it
  • Save the code and check your site

🎯 Recommended Optimal Settings

Setting OptionsRecommended ValuesDescription
TitlePopular PostsTitle to display in the sidebar
Number to Display5–10Too many may make the design look cluttered
Sorting criteriaViewsSort by most viewed posts
Period settingLast 7 daysTo reflect recent trends, we recommend 7 days or 30 days
Show thumbnailsUseCreate a more visually appealing list
Show viewsUseVisitors can see which posts are popular

Conclusion

  1. Easiest methodUse a widget
  2. Add to desired location on pageUse shortcode
  3. Directly modify theme filesInsert PHP code

Applying these methods will successfully display popular posts in your sidebar! 🚀 If you have
any further questions, feel free to ask. 😊

Leave a Comment

목차