
內容簡介
Custom Post Type Ajax Load More 是 WordPress 的靈活解決方案之一,它只會載入部分帖子,其餘帖子將使用無限滾動或更多載入功能載入,並且您可以快速創建漂亮的博客列表。
如果您想在單個頁面上列出大量帖子,那麼 Custom Post Type Ajax Load More 就是正確的選擇。
主要功能
✅ Custom Post Type Ajax Load More 使用 WordPress 標准查詢和許多參數(如帖子類型、帖子狀態、分類法和更多)。
✅ 設置安全級別,您可以選擇僅允許載入的帖子類型和帖子狀態。
✅ 您可以創建自己的模板以自定義列表行為並輕鬆重寫到您的佈景主題。
✅ 輕量級,更快的性能和強大的效能。
✅ 3 種內置模板佈局。
如何使用
使用輕量級 Custom Post Type Ajax Load More 很簡單,您只需要在任何地方放置簡碼即可。
簡碼:
[cpt_ajax_load_more post_type="post" template="default" posts_per_page="6"]
PHP 代碼:
<?php
$args = array(
'id' => 'blog-list',
'post_type' => 'post',
'post_staus' => 'publish',
'template' => 'default'
);
echo cpt_alm_render($args);
?>
擴展功能
開發人員可以使用 WordPress 標准鉤子和過濾器來擴展功能。
簡碼參數
過濾器
創建自定義模板
JavaScript 回調函數
演示和示例
簡單列表
網格視圖
卡片視圖
高級卡片視圖
無限滾動
文檔
您可以在blacktheme.net找到 Custom Post Type Ajax Load More 的文檔和更多詳細信息。
外掛標籤
開發者團隊
② 後台搜尋「WordPress Ajax Load More and Infinite Scroll」→ 直接安裝(推薦)
原文外掛簡介
Custom post type Ajax load more is the flexible solutions for WordPress to load only some of the posts and another posts will be load with infinite scroll or load more and you can create beautiful blog listing quickly.
If you are looking for large number of posts listing in single page then Custom post type Ajax load more is the right choice.
Key Features
✅ Custom post type Ajax load more is the using WordPress standard query with the many parameters like Post Type, Post Status, Category Taxonomies and more.
✅ Setup security level, you can select post type and post status that only allow to load.
✅ You can create own template to customized listing behavior and overwrite into your theme easily.
✅ Lightweight, Faster and powerful performance.
✅ 3 types of inbuilt template layouts.
How to Use
Lightweight Custom post type Ajax load is very simple way to use, you just put short-code anywhere.
Shortcode:
[cpt_ajax_load_more post_type="post" template="default" posts_per_page="6"]
PHP Code:
'blog-list',
'post_type' => 'post',
'post_staus' => 'publish',
'template' => 'default'
);
echo cpt_alm_render($args);
?>
Extend Functionalities
Developer can extend the functionalities using WordPress standard hooks and filters
Short code Parameters
Filters
Create Custom template
JavaScript callback
Demos and Examples
Simple List
Grid view
Card View
Advance Card view
Infinite Scrolling
Docs
You can find docs and more details about Custom post type Ajax load more on blacktheme.net
