Zyonix Related Posts

설명

Zyonix Related Posts automatically shows relevant posts to your readers at the end of any post or page — helping you reduce bounce rates and keep visitors engaged longer.

Key Features

  • Smart Matching — Find related posts by Category, Tag, Author, or any combination.
  • Grid & List Layouts — Choose the layout that fits your theme.
  • Post Meta — Optionally show publish date and estimated reading time.
  • Excerpt Support — Show a short excerpt beneath each related post title.
  • AJAX Load More — Let visitors load more related posts without a page reload.
  • Shortcode — Use [zyonrp_related_posts] anywhere in your content or widgets.
  • Widget Support — Drop the widget into any sidebar or footer area.
  • Order By — Sort by Latest, Most Commented, or Random.
  • Thumbnail Size — Choose from Thumbnail, Medium, Medium Large, or Large.
  • Open in New Tab — Optionally open all related post links in a new tab.
  • Auto-Append Toggle — Disable auto-appending to content and use the shortcode instead.
  • Multiple Post Types — Works with Posts, Pages, and any custom post type.
  • Fully Sanitized & Escaped — Built with WordPress security best practices throughout.

Shortcode Usage

Basic usage:
[zyonrp_related_posts]

With options:
[zyonrp_related_posts count=”3″ layout=”list” title=”You May Also Like”]

Requirements

  • WordPress 5.0+
  • PHP 7.4+

설치

  1. Upload the zyonix-related-posts folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings Related Posts to configure the plugin.
  4. That’s it! Related posts will now appear automatically after your post content.

FAQ

Related posts are not showing up. What should I do?

Go to Settings Related Posts and make sure:
1. The correct Post Types are checked under “Show On Post Types”.
2. At least one option is checked under “Matching Logic” (Category, Tag, or Author).
3. “Auto-append to Content” is enabled.

Can I show related posts manually instead of automatically?

Yes! Disable “Auto-append to Content” in the settings, then place the shortcode [zyonrp_related_posts] wherever you want them to appear.

Can I style the related posts section myself?

Yes. Add styles to your theme’s stylesheet targeting .zyonrp-related-posts.

Does it support custom post types?

Yes. All public post types are listed in the “Show On Post Types” setting so you can enable related posts for any of them.

What does the shortcode support?

[zyonrp_related_posts count=”5″ layout=”grid” title=”Related Posts”]

All three attributes are optional and fall back to your global settings.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Zyonix Related Posts”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Zyonix Related Posts”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.3

  • Critical fix: replaced get_the_excerpt() with direct post_excerpt/post_content reading to prevent the_content filter chain firing on every related post item — the root cause of page load blocking.
  • Fix: post meta cache re-enabled so has_post_thumbnail() and get_the_post_thumbnail() do not fire individual DB queries per post.
  • Fix: post_content_cache now built for both read_time and excerpt, not just read_time.

1.0.2

  • Performance fix: plugin no longer runs an unrestricted WP_Query when a post has no category/tag assigned, which caused slowdowns on large sites.
  • Performance fix: added update_post_meta_cache and update_post_term_cache=false to avoid unnecessary DB queries.
  • Performance fix: permalink now cached per post item instead of fetched twice.

1.0.1

  • Fixed Load More “has_more” logic that caused the button to never hide.
  • Security: validate post status and password protection in AJAX handler.
  • Performance: PHP shuffle pool fetch avoids ORDER BY RAND() full table scan.
  • Performance: post content cache avoids N+1 DB queries for read-time calculation.
  • Security: post types validated against registered public types on every request.

1.0.0

  • Initial release.
  • Grid and List layout options.
  • Excerpt, publish date, and estimated read time display options.
  • AJAX-powered “Load More” button.
  • Shortcode [zyonrp_related_posts] with count, layout, and title attributes.
  • WordPress Widget support.
  • Order By option (Latest, Most Commented, Random).
  • Thumbnail size selector.
  • Open links in new tab option.
  • Auto-append to content toggle.
  • Default options set on plugin activation.
  • Full input sanitization, validation, and escaping per WordPress coding standards.