• Resolved cgtv

    (@cgtv)


    Hi There,
    we use metaslider plugin and thanks for that amazing plugin.
    we working on Android app for our website and we need to access the slide image and links ,…
    is there any way to access that assets on wp restful-api?
    thanks much

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @cgtv,

    We don’t have something built in for this but you could register your own route and do a custom query. Here’s the one we used in the code. You would just have to figure out what slideshow id you want to query. Both the slideshow and each slide are a custom post type.

    $args = array(
    	'force_no_custom_order' => true,
    	'orderby' => 'menu_order',
    	'order' => 'ASC',
    	'post_type' => array('attachment', 'ml-slide'),
    	'post_status' => array('inherit', 'publish'),
    	'lang' => '', // polylang, ingore language filter
    	'suppress_filters' => 1, // wpml, ignore language filter
    	'posts_per_page' => -1,
    	'tax_query' => array(
    		array(
    			'taxonomy' => 'ml-slider',
    			'field' => 'slug',
    			'terms' => $slideshow_id
    		)
    	)
    );

    Let me know if that helps.

    Hi @cgtv,

    I’m going to mark this as resolved as we didn’t hear back, but please feel free to comment or open a new issue if needed, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘slideshow feed for wordpress restful-api’ is closed to new replies.