Completed

Include wordpress header/footer in custom php script

Hi, I want to integrate wordpress header/footer in a random php page. I have custom php pages which should look like the wordpress page they are running into.

I put the php pages ([login to view URL]: [login to view URL]) into the themes folder of my wordpress theme, then add

this code

<?php

define('WP_USE_THEMES', false);

$parse_uri = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);

require_once($parse_uri[0] . '[login to view URL]');

include(get_query_template('onepress'));

get_stylesheet_uri();

to my custom php page and can add header and footer with:

get_header();

get_footer();

Unfortunately this code is not working on the theme (onelove-child) - it produces a 404 error, so I am looking for a different solution.

Thanks for suggestions and advice.

BR, Stefan

Skills: PHP, WordPress, HTML, CSS, MySQL

See more: phpbb wordpress header footer, wordpress header footer, header footer design php web page, wordpress header footer include login php, wordpress header footer fix, custom php code wordpress column footer, wordpress header footer background, vbulletin custom php header footer, whmcs wordpress header footer, integrate custom header footer wordpress, php include header footer, how to include wordpress header footer in whmcs, wordpress custom php script, how to include header and footer in php, wordpress include custom php file, include wordpress header in non wordpress page, how to include wordpress functions in custom .php file, how to use wordpress function in custom php file, how to call wordpress functions in custom php script

About the Employer:
( 54 reviews ) Wien, Austria

Project ID: #30528456

Awarded to:

priortech

Hi Stefan, Yes, i am much able to include the HEADER/FOOTER in Custom PHP FIle. I am interested to go with this project as i have gone through with your requirement and completely understood and ready to start work More

€40 EUR in 1 day
(76 Reviews)
5.9

84 freelancers are bidding on average €140 for this job

sweta2317

hi; can you please share the page links where you like to apply header/footer? and also show me from which site you like to show header/footer. I am here and after discussion I can ask further questions with you. ca More

€140 EUR in 3 days
(1015 Reviews)
9.1
(1068 Reviews)
9.1
bestworkontime9

Hello there, I have gone through with your requirement and I can fix it perfection. Kindly check PMB Thanks Afsana

€140 EUR in 2 days
(604 Reviews)
8.5
(1220 Reviews)
8.6
(449 Reviews)
8.7
Risalat1

Hi Stefan, ready to work with you to make changes into your site, We are a small team of expert Wordpress designers and developers, Working on freelancer since 2009 and complete 600+ projects successfully, Please check More

€50 EUR in 1 day
(531 Reviews)
8.4
Friends4it

We have done 3000+ professional website designs. I am completely ready to discuss your project "Include wordpress header/footer in custom php script" Please have a quick look at some of our work. https://rainbowgraphi More

€220 EUR in 5 days
(492 Reviews)
8.2
webperfection123

Hi Stefan, I can Include wordpress header/footer in custom php script .I have read your job description and assure you that I am a perfect fit for the job.I am a senior  Designer & Developer having vast and proven ex More

€140 EUR in 1 day
(255 Reviews)
7.8
ykarora26

Hello sir, I already gone through the all information or description which is detailed by you. You are looking for Include wordpress header/footer in custom php script I have 8+ years of expertise in WordPress, PHP/ More

€100 EUR in 2 days
(327 Reviews)
7.8
gauravgargcs

Hello Stefan, I am an expert in WordPress and I can do any type of theme and plugin customization. I understand your requirement exactly what you are looking for, i can do it please come on chat so we can start this p More

€200 EUR in 7 days
(148 Reviews)
7.5
angelsofttech

Hello, I can setup header footer from WP in custom pages. I have more than 10 years of experience in Wordpress/Woocommerce and developed more than 300 custom plugins. I am expert in Worpdress/Woocommere customizat More

€100 EUR in 7 days
(190 Reviews)
7.4
technovicinity

Hi BR, Stefan, As a professional web developer, We can help you right now. We can help you to successfully integrate WordPress header/footer in a random php page. We are sure that we can finish your project success More

€200 EUR in 5 days
(117 Reviews)
7.8
Sunita0610

Hi! i can fix your php issue on wordpress. I have 6+ year of experience as a full stack developer, your satisfaction will be our first priority ! I have read your entire project requirements. I can create website wi More

€140 EUR in 7 days
(200 Reviews)
7.3
shayona163

hello i am expert in wordpress and woocommerce i have 8 year experience in this field you will satisfy with my work i can start work right now thanks

€50 EUR in 1 day
(276 Reviews)
7.2
ecommercejui

Hi, I am highly interested to fix the issue easily. I'm an experienced WordPress developer with the necessary skills for getting this job done. I can handle your project as you want. I am available to start immediately More

€50 EUR in 1 day
(158 Reviews)
7.4
archnasahi

>I can integrate wordpress header/footer WORDPRESS EXPERT HERE | RESPONSIVE | SEO FRIENDLY | I CAN START IMMEDIATELY ================================== Hello Stefan !! Hope you are doing absolutely fine !! DO NOT More

€200 EUR in 3 days
(182 Reviews)
7.3
smilemittal181

Hello Stefan, I can integrate wordpress header/footer in a random php page. I am a professional website developer. I have worked on WordPress, Woo-commerce, Laravel, Shopify, Joomla, HTML5, CSS3, Hosting, Twitter Boots More

€150 EUR in 3 days
(231 Reviews)
7.3
(203 Reviews)
7.2
Dekin3

Hello, Integrating header footer to php pages? Seems easy to me. Kindly provide me with more information, so that i can check, thanks

€50 EUR in 1 day
(489 Reviews)
7.1
submitbuzzz

WordPress/PHP Expert Hello, I can assist you in integrate wordpress header/footer in a random php page. Skills : WordPress, PHP, WooCommerce, Shopify, HTML5, CSS4, Bootstrap 4. Portfolio : https://www.freelancer.in/ More

€150 EUR in 2 days
(236 Reviews)
7.5