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 for accordion 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 for accordion 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
Add a comment  | 

2 Answers 2

Reset to default 0

At 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