Iframe a WordPress template

Well, it can’t and won’t work.

You should think how iframe really works. All it does is send a request to server with given URL (src parameter) and display response.

Why inserting <?php bloginfo('template_directory'); ?>/training-form.php as src wouldn’t work? Just go to this address and see, what you’ll get. Nothing or some trash. Why? Because this is what that single PHP file prints out.

Remember that you are accessing template file directly, so there are no WordPress global variables (no $wp_query, $wpdb and so on) and no WP functions available (i.e. calling esc_attr will cause PHP Fatal Error).

So you have to put a page url inside iframe. Also you can’t display only part of this page.

deneme bonusu veren sitelerbahis siteleripulibet girişdeneme bonusutürkçe altyazılı pornocanlı bahis casinocanlı bahis casino siteleriOnwin Güncel Girişholiganbetholiganbet girişholiganbet güncel girişnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnews