You are just not using the right function. Try using this:
<iframe id="preview_frame" src="https://wordpress.stackexchange.com/questions/130860/<?php echo home_url(); ?>"></iframe>
Related Posts:
- How to pass JavaScript variable to PHP in wordpress widget?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Errors while using ajax from external wordpress page
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Why is my ajax call refreshing the page?
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- jQuery function didn’t work in my plugin
- Check if email address exists front end with AJAX in a plugin
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- WooCommerce get_price returning wrong price when used via ajax
- How to put JQuery/Ajax inside shortcode?
- Using a custom plugin to capture input data via Ajax and PHP
- Ajax contact form widget plugin data not insert in database
- Ajax call returning 0
- How to prevent plugins from loading jQuery
- Using color picker in plugin, does input attribute order matter?
- wordpress add_action() issue in ajax call
- Save user total active time after login in wordpress [closed]
- Asynchronous request in wordpress
- Ajax request sends url rather than data
- can’t unzip file
- wc_get_template_part doesnt display the content [duplicate]
- How do I reinit WordPress plugins dynamically using jS?
- WP Ajax DB issues
- update_post_meta is not working for me when I use e.preventDefault for update button
- How to use Datatable with Ajax when creating plugin on WordPress?
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Help with customising love it plugin (use within foreach)
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- WordPress ajax not working in registration
- AJAX doesn’t pass variables to the php function in the plugin
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- Help me with my first very basic plugin
- Load css classes after using ajax calls
- Jquery post responses 500 error after some time and lastly an 503 error
- Woocommerce attatch files and custom input meta to cart items and then to order
- Ajax response from Media Selection does not update ALL information more than once
- HELP: Integrating WP with raw PHP code once published button is hit
- Loading class files via autoload method
- How to remove an Ajax action
- WordPress plugin installation
- Get image URL from media library in input
- Problem with WordPress Ajax form
- Ajax with jQuery UI dialog not working
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Getting media library popup in custom plugin admin page
- Create or Update thousands of woocommerce products via PHP
- How to add pagination to wpbakery grid?
- send_headers don’t work on wordpress multisite
- jQuery Plugin to use WordPress functions in AJAX request
- Handling jQuery Component Collision
- how to include a simple jquery file into a wordpress plugin
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- $wpdb working with ajax but showing ajax error instead of success
- Escape when echoed
- Scope for PHP Variables Assigned in functions.php or a plugin
- Ajax gives 400 error
- Plugin exceeds memory limit
- Write to / remove from default .htaccess file from plugin?
- Update Option Error: Notice: Undefined index
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Pass a php string to a javascript variable
- WordPress Ajax Callback
- Plugin Development sqlite or WordPress’ database
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How to trigger $_GET request within admin plugin page?
- How to generate video out of images via WordPress plugin
- How can I get WordPress to save comments in markdown format?
- How to test nonce with AJAX – Plugin development
- How to ‘clone’ a wp plugin to make small changes
- Open Post Thumbnail in New Child Theme File in WordPress
- Shortcode button dosent work for all posts. Work for first post only
- Where should I save an API key of my user when installing my plugin?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Programatically download a plugin
- Redirecting to home page after login as custom role WordPress
- Add keywords meta to index.php page
- Custom form action to handle data inside a plugin
- Self deactivate plugins after an action occurs
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Simple ajax call not working in wordpress plugin
- Notepad sticky plugin
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WP Post Template – Templates in own folder
- Form isn’t inserting data into database with ajax plugin
- Avoid class name collision when using third party libraries in plugins?
- wordpress plugin is not activating from widget
- Best approach to fetch data from wp options to js file or php file
- Edit Yoast SEO breadcrumbs output [closed]
- Adding a slider captcha to the comment system
- AJAX search posts and pages
- Error with Image Slide plug-in/ s3slider in WP
- How would I go about creating a user ranked post popularity page?