Change Posts Per Page for Custom Post Types in WordPress

preview_player
Показать описание
WordPress has an option to change the number of posts per page for your blog archive. However, if you happen to have a custom post type and want to change the posts per page for that CPT, you will notice that there is no such option natively in WordPress settings and chances are your theme does not have it either.

Watch the video for the full instructions.

Web Design Case Study (the website I featured in this video)

Do You Need a Child Theme in WordPress?

TABLE OF CONTENTS
00:00 Intro
01:06 Posts per page for default post type
02:00 Why would you want it different for CPT
04:25 How to change posts per page for CPT

MUSIC
Danger Storm by Kevin MacLeod
Рекомендации по теме
Комментарии
Автор

Thanks sir for your sharing, I want to make the function for a custom taxonomy, is there a possibility for that?

MehdiArt