• Resolved samoreen

    (@samoreen)


    Hi,

    Is there any sample code showing how to retrieve the IDs of the images residing in a RML virtual folder ?

    Thanks in advance.

    Patrick

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Matthias Günter

    (@mguenter)

    Hey @samoreen !

    The simplest way would be to use the WP_Query with an additional parameter rml_folder:

    new WP_Query([
      'post_type' => 'attachment',
      'rml_folder' => 5 // your folder ID
    ]);

    Regards,
    Matthew ??

    Thread Starter samoreen

    (@samoreen)

    Thanks Matthew, I’ll give this a try.

    Patrick

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieving image IDs from a RML folder ?’ is closed to new replies.