Use the same gallery shortcode generated in the visual editor, then add an attribute to note carousel. That way you piggyback on all the functionality with very little extra effort required.
See this answer for how to approach this by replacing the default gallery shortcode.
Related Posts:
- Display all posts from specific categories on a page
- How to display posts on a static page? (like search loop)
- How to use extract shortcode in loop?
- How to get posts published between a date and today?
- Get first post from wp_query
- get comments and get posts in loop
- Why do I need to use The Loop on pages (inside page.php etc)?
- Display All Sticky Post Before Regular Post
- Can’t show comments count per post outside loop
- Specific loop in Shortcode
- Repost post on specific date every year
- Alternate custom content in the loop
- Search widget breaks when using multiple loops?
- Auto Refresh Post List after X seconds
- Display posts with comments closed, with pagination?
- Submitting POST data to a custom page template triggers a 404, why?
- While in “the loop”, detect if a post is the most recent
- Contact form 7 post loop [closed]
- Creating a Page of Posts
- Dynamically generate child-URLs for posts or custom posts
- If Specific Post, Link Elsewhere
- How to filter posts that belong to a specific category only if that is the only category
- Most recent post from another database
- page.php showing loop of posts and not page content
- Child_of not displaying all children posts.. via get_posts
- WordPress Loop – Next 3 Posts
- More then one menu items are assigned with “current-menu-item” class
- Pulling in post category and children within category
- Trying to use AngularJS with WordPress without any API
- Pagination with an array of post objects?
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- posts_per_page option limits the number of Gallery items
- plugin to post from admin to flickr [closed]
- How to exclude visited posts from loop
- wp_query random post
- How do I stop the loop from repeating in my category template?
- How many posts does the loop return?
- Display Posts on Custom Page
- Possible to alternate between two loops
- Get Value of Post before
- add to end of post in the loop with plugin
- posts not showing on index.php
- Page template is accessing the incorrect posts?
- Second get_permalink inside loop points to wrong URL
- Custom taxonomy archive page problem
- Use Click Image to Play Youtube Video in a WordPress Loop
- The_excerpt() doesn’t parse – how to change that?
- Trying to edit archive.php to only show post extract, with featured image
- Add custom text automatically on each post
- Extracting relevant tags associated with that particular single post only
- Why this function doesn’t works without the_post?
- Display current post position in Elementor Posts widget
- Custom Articles page only showing a limited number of posts per page
- Show posts by quarter
- Some doubts about how the loop work (trying debugging it)
- If custom field is empty, use one from a previous post
- Cant’ Grab WordPress Built-in Posts Through Loop
- Get post category as a separate string and url
- Pagination for normal (standard) posts on a page with a custom loop?
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- How to separate each individual blog post?
- WordPress single.php different layouts projects / posts
- How to show full post on home page
- ACF flexible content block not showing on live site (works locally)
- Current post categories and subcatecories outside of the loop
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- “read more” redirects to the wrong page
- How to show post views shortcode data for each post on Posts List Page?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Count singular post views automatically
- Loop and output 4 rows of posts on home page
- Custom post Query and WordPress Post Query Clash
- How to show category image if no featured image is set?
- Get post id outside loop : Notice: Trying to get property of non-object
- Retrieve posts inside foundation tabs and tab-content split by 3 per row
- Loop through all posts showing duplicates
- Post being duplicated with foreach loop
- Alternative content between posts no repetition
- Custom post type – Loop out in random order but same 15 to appear first… still random
- WordPress infinite post cycle
- WordPress Request Post All Post ID in a Loop? [closed]
- List Authors For Current Category
- WordPress loop uses unmodified posts array, why?
- Post Format problem
- Skip posts, but keep posts per page
- index.php is only displaying current month’s posts?
- Loop doesn’t display posts. It displays a link to the home page instead
- Grab next post title in archive page
- Getting posts from multiple users?
- Show post if in category
- WP Gallery Image Page Issue When 2 galleries share one image
- Adding a category at even positions on main loop with modified pagination
- Displaying categories items among posts
- The loop: more posts than I want to fit on one page
- Page (template) with only news of the type “gallery”
- Index.php is ordering posts strangely
- Show all posts in category
- First post in loop displays twice
- What function does the loop of displaying posts?
- Is there a way to change the default post template selection for a specific category?