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
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- category_name not working (not showing up in sql query debug)
- How can I make my custom shortcode work in a Custom HTML Widget?
- How to Loop Plugin Option Field Set?
- Update Multiple Post Meta for the Same Post In One call?
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- How to fetch serialized data from wordpress options
- Admin-ajax.php appending a status code to ajax response
- How to remove an Ajax action
- Problem with WordPress Ajax form
- Getting media library popup in custom plugin admin page
- How to add pagination to wpbakery grid?
- Write to / remove from default .htaccess file from plugin?
- WordPress Ajax Callback
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- Programatically download a plugin
- Form isn’t inserting data into database with ajax plugin
- Error with Image Slide plug-in/ s3slider in WP
- How would I go about creating a user ranked post popularity page?
- WordPress ajax doesn’t display object method on jQuery .change() function
- jQuery for custom plugin not working with Divi theme
- Create a plugin from within WordPress
- Class variables not correct on page
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Call plugin with php function
- Why is my custom post type not being activated on plug-in activation?
- How do I add $_SESSION[”] to my wordpress page?
- output html on post or page from custom plugin [closed]
- Built a second plugin but it overwrote the first one
- Api external with wordpress
- Way to send multiple values for column to MySQL?
- Using meta_query in a WP_Query not working for numbers properly
- Calling a class method instantiated by ajax call in wordpress [closed]
- Conditional delete metadata does not works
- How can I adjust my function so the page editor still loads in the backend?
- Error datatable whit ajax
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Calling PHP function with AJAX
- Why is my shortcode not working?
- Rename a folder via HTML POST request
- working code, not working – Plugin Dev
- WordPress plugin blog creation
- implement checkbox or toggle switch in plugin code
- submit form data to wordpress existing database table using my plugin
- register_activation_hook doesn’t fire at all
- How can I insert a record into a custom table from my custom form in my custom admin page?
- display user input using ajax in wordpress
- Plugin Breaking WordPress Login
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Load my plugin before cache
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- How to fix ‘Call to undefined function do_settings()’ error?
- how to search through plugin in wordpress cimy-user-extra-fields?
- Displaying Category Feature image on loop
- getJSON response to PHP
- Accessing Correct Database to Create REST API Endpoint