WordPress Get Header and Footer using in Admin Area

A very simple experiment… add_action(‘admin_init’,’get_header’); add_action(‘admin_init’,’get_footer’); … will demonstrate that the get_header() and get_footer() functions work on the back end as well as the front, though you will need to adjust for numerous markup problems and other issues. Honestly, you question seems to be “how do I get the site header and footer and use … Read more

Show Header When Not In Iframe

I solved this by adding the header php code, and the setting it with display none as below: #main-header { display:none; } Then using JQuery I added the following: <script> if(self==window.top) { $( “header#main-header” ).css( “display”, “inherit” ); $( “div#mce_height” ).css( “margin-top”, “100px” ); } </script> This detects if it is in an iframe, and … Read more

How can I prevent the Search Results Page from changing title?

You can replace: <h1 class=”site-title”><?php echo get_the_title($post->ID); ?></h1> With: <h1 class=”site-title”><?php _e( ‘Search results for’, ‘theme-textdomain’ ).’: ‘ . get_search_query(); ?></h1> But obviously only in search pages. I suggest to move the <h1> element to each template you may need instead of include it in the general header.php template. It is up to you but … Read more

WordPress Install – “end of script output before headers” when running simple php script

Don’t know exactly what you are trying to accomplish using custom script.You can do this effectively in WP way using either shortcodes,page templates,plugin. Well if you don’t want to do it that way and want to just place scripts in the active theme base directory.One way i suggest: Let’s say we have two php files … Read more

Insert Plugin on a custom page

do_shortcode Is a function which executes shortcodes in WordPress In your case you should use it in your header.php file as the following: <?php echo do_shortcode(‘[huge_it_gallery id=”4″]’); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)