• Resolved slimjim414

    (@slimjim414)


    Hi there! I’ve been through several plugins trying to find the one that fits my needs the best, and I’m thinking this one might be the one if I can get this one thing figured out.

    I’m creating a photography portfolio site, so each category (aka gallery) contains images. What I’d like to do is return all of the categories with their images in one call. Is this possible?

    When I make a request to “{{base_url}}/wp/v2/media”, I can see the id of the category associated with each image. Is it possible to return the slug of that category without making multiple calls? Or even something like this:

    [
      {
        ...other attributes
        'media_category': [
          {id: 9, title: 'Test', slug: 'test'},
        ]
      }
    ]

    If that were possible, then I could normalize all of my data as a sort of workaround if the first option isn’t available.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter slimjim414

    (@slimjim414)

    I just discovered that you can add a new Advanced Custom Field, tie it to a Field Type of Taxonomy, and choose Media Category as the Taxonomy, which returns what I posted above in the code block and more. That is SLICK!

    So my remaining question is whether there’s a media endpoint that returns all of the categories in an array, and the images in an array within each category.

    Hi,

    Before you put any more work into this or rely on it – it appears that this plugin has been abandoned by the author. It has not been updated in two years, support requests have not been answered in at least a year and some core functionality has stopped working.

    Thread Starter slimjim414

    (@slimjim414)

    Damn, you’re right!

    It’s odd though because their website looks to be still accepting purchases and whatnot.

    I think I’m still going to push on with this plugin for the time being as nothing else has come close to what I’ve been looking for.

    Thanks for the update!

    Yeah. Someone (for all we know, the author may have died) but someone/* is still taking people’s money for it. My guess is that refund requests are being met with silence. It’s unfortunate.

    It’s a shame, I checked with the WP forum mod that was deleting some of the posts here that included code to fix the current problem, and even though the free version of this plugin is GPL (it has to be some kind of open license to be published), it is NOT permitted by WP to fork the project and publish here. Obviously the GPL and other open source licenses allow this, but the WP folks do NOT.

    I think a solution for anyone wanting to revive this would be to build something similar (from scratch) and then make it compatible with existing EML installs (same format for options and meta info for images). Then you could a) publish it on the plugin directory here and b) users of EML could migrate without having to recategorize hundreds or thousands of images…

    Plugin Author webbistro

    (@webbistro)

    Hi guys!

    I am pretty alive!

    @slimjim414, using /wp/v2/media?_embed=1 should help with the initial question.

    @devaghost, refunds are and were available with the re-seller – Paddle.com
    If you contacted me about the refund and didn’t get a response please update your message. All new and updated tickets are reviewed in 24 hours.

    Best,
    -Nadia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Retrieve category with its images via REST API’ is closed to new replies.