After analyzing nextgen core files I have found solution to my problem. I hope it will be useful for somebody.
global $nggdb;
$get_gall_id = get_post_meta($post_id, 'galerijos_id', true);
$gall_ids = $nggdb->get_ids_from_gallery($get_gall_id);
$images = $nggdb->get_gallery($get_gall_id);
foreach ( $gall_ids as $gall_id ) {
echo $images[$gall_id]->imageURL .'<br>';
}
Related Posts:
- Is it possible to create a post from an NextGen Gallery image?
- Using a custom field inside a shortocde
- Output Custom Field value to shortcode
- Running a Gallery Shortcode in a Custom Fields Widget
- How to enable custom fields for pages (if not a bad practice)?
- Best way to programmatically remove a category/term from a post
- display specific custom fields
- Add new “Insert Into Post” button with another function
- Custom per-page sidebar widgets .. possible?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- How to add new custom page or post blocks?
- Transients vs CRON +Custom Fields: Caching Data Per Post
- How to update serialized data in the user meta data
- Unable to save datetime custom meta field using update_post_meta() function
- Guest Author – How can I use custom fields to create guest author link?
- Best way to allow manageable social media URLS?
- enabling custom fields in admin?
- Adding a custom field or metabox to the post-thumbnail widget?
- Using WP Query to search by multiple meta fields
- Get aggregate list of all custom fields for entire blog
- Sort by posts that have a featured image?
- WP_Query display next custom post from today’s date
- Can ordering post list by meta_value cause performance issue?
- How to Identify the Source of a Custom Field?
- Meta_query and numeric comparison [closed]
- Title and post URL based on custom fields?
- Custom User Profile Fields
- Custom Fields with get_post()
- wp_editor not saving data, and text area showing html tags
- Get specific custom field keys from a post and put into an array
- Importing from XML is ignoring serialized custom field
- How to check for specific meta box value on front end and output accordingly
- Loop to display random posts only if a custom field matches category
- WP Query Returning All Posts
- WordPress User Profile Upload – If page is saved file reset
- How to add field above password section in profile page
- How can I store a file in the database in the same way WordPress and ACF do?
- Select multiple options in WordPress custom meta filed
- Custom Field Create Bulk via SQL Query
- Get content from pages with same meta_key from Database
- How to add an extra field in a post and show it on the template
- Exclude images uploaded via meta boxes from WordPress gallery
- Front-end editing with custom fields?
- If meta key exists in get posts function otherwise create it
- How do i save and retrieve custom attachment meta?
- Show values of dynamically created custom meta keys
- List taxonomy term “Last Name” + “First Name” (taxonomy custom field) in a post loop
- Filter by custom field (meta_key) using JSON API
- Bulk append custom field to post content
- More efficient to add content to custom fields or the content area?
- Migrating old posts to new wp, how to extrapolate infos from the post body to custom fields?
- Custom field query without duplicates results
- Vimeo thumbnails
- querying a custom field
- meta_value and meta_key filtering returning no posts [closed]
- Woocommerce Retrieving custom field value from orders
- If one meta key value is empty, try to get another meta key, and if both meta keys are empty show something else?
- Save attachment ID instead of URL in custom field
- Displaying a custom field containing a list creates unwanted markup
- Output custom field as ul list
- How to change permalink on headlines in rss feeds?
- Multiple Custom Field Query
- How to order posts by number of Vimeo Likes
- Displaying a video on the homepage via a custom field inside a php widget
- Custom Field is getting the value of another page/post instead of the current one?
- Custom Field Date Problem
- Approach to creating a site with this structure
- how to create meta key name in wp_usermeta table in database
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- get_field values for each post on home page using wp_add_inline_style
- how to turn a link field into a button or link text
- Dynamically populate query source in Elementor post widget
- Why does my numeric meta query work only on one meta key and not the other?
- Is there a way to determine which user changed a custom field (and when)?
- Metabox/Custom fields are not saving input data
- Show image depending on the number in the custom fields
- Show echo ready in single.php
- Save, update, get and sanitize post meta as HTML not plain
- author global display format
- Order categories by sum of custom fields
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- Saved Post Meta Array Returns as String
- Term specific featured post on taxonomy archive pages
- Thirtieth century date for a post
- Saving metadata of related post on save_post
- Custom field in external Javascript
- Custom field value link title
- How to Order Posts by Custom Fields?
- Analyze uploaded images to get colour values
- Turn Current Date in Custom Field Ouput Green or Red
- added a meta box to post however when saving menu while debug on throws a warning
- How can i get the actor birthday by date?
- Post rating using Custom Field
- Inserting custom fields into new-post.php without using the Custom Fields Template plugin?
- Make Custom Fields Public in JSON – API
- Advanced Custom Fields for Header that are Editable from a Page [closed]
- Shortcode not picking up custom field
- Order by a meta field in query loop
- Truncating characters in Advanced Custom Fields works some places but not others?
- How to add an ACF only for parent term?