Figured it out.
Embed shortcode stores the oemebd data as post meta using md5 hash.
wp-includes/class-wp-embed.php
// Check for a cached result (stored in the post meta)
$key_suffix = md5( $url . serialize( $attr ) );
$cachekey = '_oembed_' . $key_suffix;
$cachekey_time="_oembed_time_" . $key_suffix;
And has a cache mechanism to fetch new data only after a day.
I deleted the post meta and then it started working.
Related Posts:
- Get first video from the post (both embed and video shortcodes)
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- How to apply an ID to Shortcode Embedded iframe
- Responsive Embeds using default embed shortcode
- Auto embeds don’t work for attachment descriptions
- TED talks shortcode not working
- Video embeds work in backend, but are not parsed in frontend
- Shortcode to Gutenberg-block: additional text on front-end and conditional display
- How to save a shortcode in a Gutenberg custom block?
- Disable oEmbed for a Single Shortcode or at Least All Internal Links
- gutenberg widget outputting paragraph marks
- Gist shortcode is not working
- is_admin() returns false in save_post hook with Gutenberg editor
- Embedding Instagram via shortcode doesn’t work as advertised in official docs
- Wrap shortcode inside custom block
- How to create a shortcode for embedding pdf in iframe?
- Responsive embed for the video shortcode
- Hook WP_Embed run_shortcode
- How to register a embed handler as a fallback to a oEmbed handler?
- Detecting embeded video format
- Gutenberg Block with Select from JSON-File
- add action only if gallery shortcode attribute is equal to?
- Specifying a single file from multi-file GIST (wordpress.com) [closed]
- Gutenberg Shortcode Fail
- Gutenberg Shortcode Chooser Block
- Is there any way to set the Featured image in wordpress post editor, using a Getty images embed code
- Gutenberg Shortcode will turn html to html entity
- Gutenberg running code only available in front end within shortcode
- How to modify the HTML output of Gutenberg block? (Youtube)
- Shortcode, vs blocks, vs templates – what would you do for choosing or creating custom post data in editor?
- How to use code in an editor block?
- How to Enable embedding WordPress default gallery in comments?
- Do embed shortcode on wordpress ajax request
- Inserting a variable into a shortcode inside php
- How to stop unwanted splits in excerpts when using shortcodes for sliders or players
- Can’t get default values to work with custom shortcode
- Display a block conditionally based on user input button
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- Gallery shortcode menu order fix no longer working on WordPress 4.0
- Can a shortcode function this way
- Get all Youtube video’s from posts and embed them on a different page
- Dynamically create shortcodes using add_shortcode and a callback
- Passing attributes to shortcode dynamically
- Stop parsing shortcodes
- Meta tags in shortcode
- Shortcode not working on static front page
- Compatibility of MathJax extension and JetPack [closed]
- How to add class or id to shortcode HTML elements?
- Change WordPress Shortcode added in to post
- Changing the title tag from a shortcode
- WordPress wpautop/shortcode generating invalid markup
- While loop shortcode problem
- Remove ‘p’ tags around shortcodes and ‘img’
- Execute Closing Shortcode After the_content
- Forcing max-width for image captions
- WordPress Short code with additional parameter
- Creating a short code with php inside
- Is it possible to modify the header with a content shortcode?
- this simple shortcode doesn’t generate Collapse as supposed
- Shortcode outputting at top of content
- Will a shortcode placed inside a paragraph tag still be valid?
- WordPress get_media_embedded
- How do I define and register a shortcode function in a namespaced functions.php file?
- Change user meta value with shortcode
- Implementing a URL Shortener
- WordPress User ID as Shortcode
- Clean way of using ob_start() and ob_end_clean() in wordpress
- Theme Convert PHP code to shortcode
- find shortcode inside content of post
- WordPress Short code for List style
- Adding a cover image to video shortcode
- Show content if user left comment / non-logged visitors?
- How to insert current user ID/entry ID into a shortcode?
- Need help with creating a simple shortcode
- Using a WP shortcode in Homepage
- i want to show a modal when user lands on home page very first time
- Block editor: Sandbox iframe shows outdated HTML
- Logout user if click on a custom page link
- Shortcode Attribute not defined
- Second attribute of shortcode is not changing why?
- Is Post-Author-Id shortocde
- Load next post by ID on a single page
- Add catagory attribute to custom shortcode
- Class variables in shortcodes
- Remove width and height attributes from [gallery] output
- Shortcode for sectors
- How to not show shortcode contents if cart is empty?
- Help with Shortcode Functionality
- Shortcode Site include in a other
- How do write this type shortcode? [closed]
- Show realtime Amazon price without API using shortcode
- Completely disable oEmbed and auto-embed on frontend and post editor?
- Identifying first and last instance of shortcode in post
- Executing a shortcode at the top of PAGE template?
- Custom shortcode with < in content