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?
- Making a Template for a CPT created by a plugin
- There is any way to remove post-format filter? [closed]
- creating html reusable blocks via shortcodes
- Install (enable) plugins on multisite, on localhost
- add_shortcode is not working in plugin where others are working
- Single API call exposed via shortcode with params
- SEO Friendly URL on dynamic product page produced via shortcode
- WordPress multi domain – redirect
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working
- How can I copy all users to newly created site on a multisite network in WordPress?
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- WordPress wp-admin/network/plugin-install
- Insert content of a post into another
- Create a multisite network for an existing installation
- “Micro-Site” Options
- External Domain on WordPress Multisite
- accessing wp.media api from a tinymce plugin
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Creating shortcodes in plugin
- Visual Composer shortcode for child theme dir
- Configuring Propel to Work with Multisite
- get_post_title is not working on homepage
- Some code in shortcode function being ignored
- Setup page on first login on multisite
- Subdomains with almost the same content
- How to create a custom shortcode based on the layout?
- Uninstalling plugins across all sites
- Multiple domains issue
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Unable to add TAB character to post?
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- plugin shortcode output
- “Master” WordPress Multisite – Database Sync
- Will these plugins work with wp multisite?
- User Signup in Multisite – Need Plugin or Advice
- How to Create a shortcode to this php function
- Inject HTML meta tag inside wordpress tag using add_shortcode
- How do I apply style to each category of a list?
- Create shortcode to echo javascript
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- What is @Action in WordPress?
- Custom Shortcode Broken in WordPress 3.1
- Use $_GET inside a shortcode print empty Array
- Namespaced shortcode?
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Where are theme codes located for WordPress?
- Certain functions are undefined when called form mu-plugins
- Multisite for Multisite?
- My plugin won’t return anything [closed]
- Anyway to convert a plugin to become a shortcode?
- Render Modula Plugin Shortcode On Ajax Request
- Shortcode to update user meta
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Multisite – maximum number of users with specific role
- Create a single website with 3 theme options in wordpress
- Understanding State in WordPress Multisites
- How to have sample page for each new register users in a membership website
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- using do_shortcode
- Why am I unable to load scripts in head in plugin?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- plugin shortcode not working on ajax request call
- Displayed content disappears when adding attributes to shortcode
- Modify page title and subtitle with a plugin
- One sub site is slow while all others load fine, same theme & plugins [closed]
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- Where to find the code used to render a page that has a shortcode and a template defined?
- Shortcode not working after move wordpress website files
- Shortcode not getting replaced
- How to activate a plugin on the activation of a theme?
- Add Shortcode tag in Widget/Sidebar
- Flipping Book PHP Code? Any experience?
- WPTouch – how to remove shortcodes or make shortcodes function
- convert more tag to shortcode
- Shortcode does not expand in Facebook like
- How to display terms and conditions in post area?
- Plugin that provides the [edit] shortcode?
- How to see which sites use my installed plugins (wordpress multisite)
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- Custom shortcode for displaying user based on a role parameter
- WordPress Plugin Insert Html Code with Shortcode
- Return multiple values in a shortcode attribute
- IF condition based on wp_remote_get output
- shortcode not return any thing in Gutnburg
- Shortcode Attributes to Return different $_POST
- How to change shortcode’s default theme?
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Is there a way to convert shortcodes to html content?
- WordPress super admin login issue. (Automatically logout)
- Shortcode not working – quotes seems strange
- Get all the URLs of the pages that uses a specific shortcode
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]