WordPress.org

Ready to get started?Download WordPress

Forums

Integrate Personalised Pages (2 posts)

  1. bdiddymc
    Member
    Posted 5 years ago #

    Hello Folks,

    I am wanting to build a members area for my wordpress site. I do not understand the wordpress system enough to integrate it 100%, as it is only a small members set up to few a couple of pages - and I don't want members seeing the dashboard. (Also as I do not want to clog up the template menu with templates for single pages - that won't make sense for my client - I would prefer to avoid that technique)

    My thoughts are to set up wordpress so it's runs in a subfolder but accessed my the main domain address. Technique here

    Then I was going to set up a folder with my own pages, that I can have control over.

    So The files are set up:

    Domain
    -- WordPress
    ---- Wordpres Files
    -- Members
    ---- Login.php
    ---- Process.php
    ---- Register.php
    ---- Members_Content.php

    Now, following this method to integrate WordPress into a site. I am setting up the skeletons of my custom pages as

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', false);
    require('../wp/wp-blog-header.php');
    get_header();
    ?>
    
    <!-- MY CONTENT GOES IN HERE -->
    
    <?php get_sidebar() ?>
    <?php get_footer() ?>

    This seems to be pretty close to what I need. However, I have the following issues.

    • As it is outside of the WordPress Set Up, the page is being seen as an error page so the <title> is 'Page Not Found - Blog Title'
    • The breadcrumbs are showing 'Home > 404' - Guessing due to same issue as the title problem.

    Is there a way to set this info above the get_header();

    Or is there a method I am overlooking?

    Any help would be appreciated.

  2. bdiddymc
    Member
    Posted 5 years ago #

    Any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic