Jump to content

Add WordPress Header in WHMCS Client Area


Craft

Recommended Posts

I would like to add WordPress Header in WHMCS Client Area, so I tried the following code at header.tpl but I receive error

{php}
	define('WP_USE_THEMES', false);
	require('MyDomainPath/wp-load.php');
	get_header();
{/php}

I think there is something missing..!

Link to comment
Share on other sites

On 12/20/2019 at 3:16 AM, bear said:

That doesn't help determine what went wrong. Perhaps you should temporarily (just long enough to get the result) enable error reporting and load the page?

I think there was something wrong at my path so I changed it with the full website URL, and I receive this page

clientarea.png

Edited by Craft
Link to comment
Share on other sites

I would like to add WordPress Header in WHMCS Client Area, so I tried the following code at header.tpl but I receive error

{php}
	define('WP_USE_THEMES', false);
	require('MyDomainPath/wp-load.php');
	get_header();
{/php}

Note: Smarty PHP Tags is enabled.

Any suggestions?

header.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated