最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

search - Very large list of options for BuddyPress profile fields

programmeradmin0浏览0评论

I’m making a site with BuddyPress xprofile fields which can have up to 40000 options. I already loaded the options into the db via csv file. Now the site loads very slowly and is basically unusable. Without the many field options, it loads fast. Once loaded, everything works fine, including the profile search. How can I prevent Buddypress from loading all options for a field by default?

I’m using select2 multiselect fields, which can load small chunks of data via AJAX/PHP. That works fine. But the slowing down occurs before initializing the select2 fields. BuddyPress is probably loading all available options by default.

WP, BP are at the newest versions. The problem persists with the twentynineteen theme (so it's not a theme problem). Currently, I'm using the free evolve theme.

I’m grateful for any hint!

I’m making a site with BuddyPress xprofile fields which can have up to 40000 options. I already loaded the options into the db via csv file. Now the site loads very slowly and is basically unusable. Without the many field options, it loads fast. Once loaded, everything works fine, including the profile search. How can I prevent Buddypress from loading all options for a field by default?

I’m using select2 multiselect fields, which can load small chunks of data via AJAX/PHP. That works fine. But the slowing down occurs before initializing the select2 fields. BuddyPress is probably loading all available options by default.

WP, BP are at the newest versions. The problem persists with the twentynineteen theme (so it's not a theme problem). Currently, I'm using the free evolve theme.

I’m grateful for any hint!

Share Improve this question asked Jul 3, 2019 at 14:30 PalaeocortexPalaeocortex 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I had the same issue and I did this and it worked: Add 3 options and go to your database. Search for any of those options, when you find them, go to the table it is in. You won't be able to see the options but just the field name. Export the table you found the options in, in CSV format. When you download the exported file, add your options to it and fill up the other columns in the same way that the other columns were filled for the other 3 options. Then import your file in the same place you exported the same file and voila, you're done :)

发布评论

评论列表(0)

  1. 暂无评论