Ahmad, a shortcode needs to return the html, not echo it directly like a widget does. Shortcodes work because wordpress replaces the [shortcode] with the text returned by the shortcode function.
So change the code to something like:
$html="<h3>Tulisan terbaru website kebudayaan...</h3>".date('j F Y');
$blogs = get_last_updated();
$html .='<table class="widefat" cellspacing="0">';
foreach ($blogs AS $blog) {........
....
}
...
return ($html);
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Query Shortcode from a multisite to appear on a different site?
- How to add a shortcode button to the TinyMCE editor?
- WordPress sharding: which multi-DB plugin to use?
- how to include other plugins css files in a shortcode?
- What characters are allowed as a shortcode tag and how should they be sanitized?
- What is a Network Activated Plugin Exactly?
- Autogenerate wordpress shortcodes using array?
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- Getting Custom Post Type content from main-site of a Multisite
- Posts wont expire
- Shortcode under a Shortcode Multiple times Possible?
- Multisite functions to communicate with individual site functions
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- how to show database content in wordpress post
- wp_specialchars and wp_specialchars_decode in a shortcode plugin
- Display All Non-Used Plugins
- Having separate plugins and themes folder for multi-site setup
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Remove filter from WordPress Plugin
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Shortcode to generate and save password in a file
- Overriding Attributes values in Shortcode Plugins
- Network: retrieve a list of latest posts
- Demystifying and understanding shortcode nomenclature
- How to modify shortcode attributes with data from current post
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- How to add class in plugin only for network site?
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- How to write a plugin to add users to a mail list
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Plugin echos text from shortcode function in gutenberg page editor
- WordPress on AWS with ELB
- Adding Shortcode to Text Widget
- Media is not attached after import
- wordpress prevent multiple shortcodes
- get_post_title is not working on homepage
- How to create a custom shortcode based on the layout?
- Unable to add TAB character to post?
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Anyway to convert a plugin to become a shortcode?
- Multisite – maximum number of users with specific role
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- using do_shortcode
- Flipping Book PHP Code? Any experience?
- WordPress super admin login issue. (Automatically logout)
- shortcode – multiple instances of same parameter name in one shortcode instance
- Function call in wordpress short code handler fails
- Hosting multiple sites
- Is there any way to inject text onto pages?
- how to check if a shortcode is used more than one time in the same post
- Multisite Plugin – Access options (wp_options) on child sites
- grab or load text on demand
- How can I replace content on site generated from plugin without changing plugin
- Multisite Change from domain.com to sub.newdomain.com
- Managing and deleting transients with dynamically generated transient names
- how to display a template.php in a shortcode
- Thumbnail image doesn’t show up in Shortcode output
- list of custom post by custom field in frontend
- get_post_meta shortcode returns empty field
- Can I edit multiple sites with an online WordPress account?
- Shortcode do not return the right data in post
- Fatal error: require_once(): Failed opening required
- Why does my custom plugin only function correctly once per page?
- shortcodes not working [dt_carousel & [dt_fancy_image
- Creating one user access account for all the multiple sites
- How to pass multiple custom fields as shortcode’s parameters
- Do_shortcode before send email content
- how to add navigation icons in specific template?
- Get shortcode attribute for AJAX call
- How to use a shortcode of a plugin in another plugin php file
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- How to store multiple instances of the plugin’s options for various shortcodes
- Update javascript URL in header – Domain Mapping Plugin [closed]
- Modify Plugin shortcode function code
- How do plugin updates work?
- Automatization for automatization
- Is there going to an issue running different features of WP site in different subdomains?
- Allow user to input shortcode into wordpress widget
- Plugin on all site except primary one
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Integrating planning tools in wordpress
- Strip shortcode from excerpt [duplicate]
- Pulling sub-site content into specific pages
- Frontpage Admin Bar Disappeared
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- WordPress shortcode plugin not working
- WP Customer Reviews call short code on another page [closed]
- Shortcode returning specific content of a post
- turn off WooCommerce for a site in a multi site environment
- Subtract Using GravityWP Count Plugin
- qTranslate‑X is not translating all shortcodes
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Problem with a shortcode generating a error [closed]