In single.php i put this code, from this link (thank you Wyck) https://stackoverflow.com/questions/14277794/wordpress-3-5-own-gallery-with-included-images-doesnt-work
preg_match('/\/', $post_content, $ids);
$array_id = explode(",", $ids[1]);
print_r($array_id);
Now I can use gallery shortcode
Related Posts:
- Check if post/page has gallery?
- how to have the gallery shortcode output one single UL list instead of several DL?
- Automatically add this attribute to the gallery shortcode
- do_shortcode inside AJAX callback
- Custom Shortcode AJAX 400 Bad Request
- How can I run shortcode after click with ajax
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- WordPress gallery ‘post_gallery’ filter doesn’t work with feeds?
- conditional shortcode not working
- Remove width and height attributes from [gallery] output
- Ajax, filters and shortcodes
- Ajax not returning anything on form submit
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- How to use shortcodes on a widget sidebar when doing an ajax call?
- conditional shortcode not working
- Some doubts about gallery shortcode in WordPress
- Shortcodes not working in an AJAX call
- Should I cache default WordPress gallery shortcode output?
- Numbering Image List in Gallery
- Rewriting WordPress Gallery Shortcode with Bootstrap Carousel
- change wordpress gallery shortcode to slider
- Remove hyperlink on gallery shortcode
- Add custom setting that uses radio button to WP Gallery
- WordPress Gallery shortcode: Display one category ID only
- Check if post has gallery images/media
- Different uniqid when calld in wp_localize_script and shortcode
- How to Modify WordPress Default Image Gallery Shortcode
- Change WordPress Shortcode added in to post
- Gallery shortcode – change link file image size? (not using default fullsize image)
- How to add AJAX in a custom PHP function using Google sheets API
- AJAX and Shortcode with Parameters
- add action only if gallery shortcode attribute is equal to?
- Unable to the get the gallery inserted between shortcodes
- wp_editor in thickbox
- do_shortcode via ajax
- Adding shortcode field to edit gallery / Gallery Settings
- How to change the output of gallery shortcode
- Pass data back to TinyMCE from Thickbox
- Replacement for gallery_shortcode function not taking all attributes
- Getting error on submitting form using Ajax with shortcode
- Regenerating WordPress shortcodes based on value with AJAX
- Use Contact Form 7 with Ajax
- AJAX and do_shortcode
- How to Retrieve data of Gallery Shortcode and display it above a post
- How to copy [gallery] shortcode between posts using polylang [closed]
- Which file renders the “Edit Gallery” Settings page?
- How to display NextGEN gallery in templates?
- Use full size images in a specific gallery
- How to Enable embedding WordPress default gallery in comments?
- How to add new images to existing shortcode configuration?
- Gallery shortcode is empty but magically creates a gallery
- Remove a short code and update it’s content (AJAX)
- Can we add a single caption to the gallery shortcode?
- Cannot modify class property from shortcode handler function
- Use Shortcode on Custom Page
- Do embed shortcode on wordpress ajax request
- Ajax callback and shortcode functionality
- Automatically add class-attribute to gallery?
- Load next post by ID on a single page
- Replace custom gallery shortcode with default gallery shortcode
- WordPress Gallery with ID’s Shortcode not Working
- Access Shortcode in ajax code?
- Remove width and height attributes from [gallery] output
- load plugin with ajax [duplicate]
- Changing layout of defaul gallery output to masonry
- What makes a placeholder resizable in Tinymce?
- how to show last 5 images from the one post gallery
- Gallery Shortcode: using size=”full” doesn’t call the actual thumbnail image size
- Why is my ajax live search not working when i use a shortcode to call it?
- How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?
- Working with Shortcode, AJAX, Elementor
- Stray closing paragraph tag when using shortcodes
- Customizing gallery shortcode in 3.5
- The result of a shortcode appear BEFORE page content
- Getting the count of a shortcode that is nested
- Adding shortcode to the main menu
- Inserting PHP inside do_shortcode
- Display gallery on top before content
- Use shortcodes in custom metabox using wp_editor?
- How do I write this shortcode? [closed]
- Where to filter Shortcode string prior to execution
- Media added with shortcodes not “linked” with post
- Specifying a single file from multi-file GIST (wordpress.com) [closed]
- Shortcode default attributes over-riding non-default attributes
- Shortcode callback for add_action(‘wp_footer’)
- Gutenberg Shortcode Fail
- How can I collect and output all attributes of all executed ShortCodes?
- Basic custom Shortcode not working
- Add variable in between do_shortcode
- Using shortcodes in the Site Title
- Problem parsing long parameter in shortcode
- User name in referral URLs
- How I can add placeholder in shortcode
- I’m using rtMedia and Youzer. Can Shortcodes be used to display a video gallery?
- Help with a function to create a shortcode
- Term Description Echo or Return – display problems
- Shortcode with multiple paramaters
- Custom shortcode is not working inside tabs
- Shortcodes in Options Panel textareas
- Insert shortcode in widget area