admin管理员组文章数量:1336408
I'm trying to find some specific plugin for Accordion (FAQ), but to be in a form of Gutenberg Block. There is a group of "block enabled" plugins on /
There should be a simple way of achieving this task. I've done a lot of experimenting, but none of the results were satisfactory enough.
Using specialized sites
/;
Tried searching for
(?mi)(^\s*Plugin\s+Name:.+accordion.+$)
to achieve case-insensitive search foraccordion
in plugin name. But I can't search also for "blocks" plugins as there is impossible to achieve AND functionality :(; I tried to use their search-form, but the results are not better than on wordpress
lots of unmaintained or defunct sites:
- /,
- /,
- /,
- /
Using Google
I've had some results using Google queries like this one:
inurl:wordpress/plugins/browse/blocks/ accordion
... but that gave me only "list" and not "plugin" pages. Not satisfactory at all!
I still believe that it is somehow possible to get better results from Google
Experiment with Wordpress public API
I've found "some solution" via Wordpress API. Read my own answer...
I'm trying to find some specific plugin for Accordion (FAQ), but to be in a form of Gutenberg Block. There is a group of "block enabled" plugins on https://wordpress/plugins/browse/blocks/
There should be a simple way of achieving this task. I've done a lot of experimenting, but none of the results were satisfactory enough.
Using specialized sites
https://wpdirectory/;
Tried searching for
(?mi)(^\s*Plugin\s+Name:.+accordion.+$)
to achieve case-insensitive search foraccordion
in plugin name. But I can't search also for "blocks" plugins as there is impossible to achieve AND functionality :(https://wpcore/plugin-directory; I tried to use their search-form, but the results are not better than on wordpress
lots of unmaintained or defunct sites:
- https://addendio/,
- http://searchwpplugins/,
- http://www.wpmeta/,
- http://wpplugindirectory/
Using Google
I've had some results using Google queries like this one:
inurl:wordpress/plugins/browse/blocks/ accordion
... but that gave me only "list" and not "plugin" pages. Not satisfactory at all!
I still believe that it is somehow possible to get better results from Google
Experiment with Wordpress public API
I've found "some solution" via Wordpress API. Read my own answer...
Share Improve this question edited May 27, 2020 at 2:52 Michael Field asked May 27, 2020 at 2:44 Michael FieldMichael Field 1711 silver badge2 bronze badges 1- Is there a better way? There MUST be a better way! – Michael Field Commented May 27, 2020 at 4:01
2 Answers
Reset to default 0At first, extracting results into a file with:
# create a file needed
curl --globoff --silent "https://api.wordpress/plugins/info/1.2/?action=query_plugins&request[browse]=blocks&request[page]=1&request[per_page]=400" | jq ".plugins[] | { name: .name, url: \"https://wordpress/plugins/\\(.slug)/\", short: .short_description, description: .description }" > wp-block-plugins.json
curl --globoff --silent "https://api.wordpress/plugins/info/1.2/?action=query_plugins&request[browse]=blocks&request[page]=2&request[per_page]=400" | jq ".plugins[] | { name: .name, url: \"https://wordpress/plugins/\\(.slug)/\", short: .short_description, description: .description }" >> wp-block-plugins.json
Now, when I have file wp-block-plugins.json
, I can search for plugins I need:
# case in-sensitive search in description field for term 'accordion'
cat wp-block-plugins.json | jq '. | select(.description | test("\\baccordion\\b";"")) |{ name: .name, short: .short, url: .url }'
will get me desired results that look something like this, which is what I wanted in the first place:
...
{
"name": "Cosmic Blocks (40+) Content Editor Blocks Collection",
"short": "Blocks collection of 40+ customizable WordPress 5.0 gutenberg content blocks for the new content block…",
"url": "https://wordpress/plugins/cosmic-blocks/"
}
{
"name": "Hot Blocks",
"short": "A collection of several blocks for new WordPress editor (Gutenberg).",
"url": "https://wordpress/plugins/hot-blocks/"
}
...
I think I've found a proper site:
https://pluginsearch/
Search query that kinda works:
https://pluginsearch/gutenberg/?query=faq
Best solution so far!
本文标签: block editorBetter search on WordPressorg Plugins
版权声明:本文标题:block editor - Better search on WordPress.org Plugins? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742375883a2463151.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论