Two Questions: 1. I have read the manual page 46 again but

Two Questions:

1. I have read the manual page 46 again but still do not understand what I am doing and need assistance. Manual reads:

"Note: Only the most recent 50 pages show here. You can alter this by defining a
constant in your wp-config.php file. Please checkout the “Constants” are of this tutorial for what code to use."

My wp-config.php file makes no mention anywhere of "membership".

The file reads as follows:
* The base configurations of the WordPress.
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
* @package WordPress

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'onestoplearningcentercom');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

* Authentication Unique Keys and Salts.
* Change these to different unique phrases!
* You can generate these using the {@link secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
* @since 2.6.0
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');


* WordPress Database Table prefix.
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
$table_prefix = 'wp_';

* WordPress Localized Language, defaults to English.
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* to wp-content/languages and set WPLANG to 'de_DE' to enable German
* language support.
define('WPLANG', '');

* For developers: WordPress debugging mode.
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
There doesn't appear to be anything mention here with a number of "50" so I can edit it to read 200 as I will have that many pages or more before I am finished setting up the site.

Where and how do I change this situation?

2. I am trying to create differenmt menus for different levels of membership. For instance, "Visitors" should only be allowed to see a menu at the top of the site for "Home", "Sample Lesson", "Membership Options Page", "Posts", "Register|", and "Site Info". Free Members should have a menu that includes all of the above and also "Lessons" and other items. Paid Members should also have a menu that allows them to see each of the Free Members listings and then some more for their class.

How do I go about arranging this. I realize, at present there are only 50 pages showing, so if I can get that reset as in question 1 above (with the proper "Constants" it might become more apparent. At present I can not see all of the pages to select for each group as they seem to be listed alphabetically.1

I have read through the manuals (3 of them) at least 6 times each and still can't get it right. Your assistance is appreciated.


  • Elliott Bristow

    Hi @lastdrifter,

    The instructions are asking you to ADD a constant, rather than edit one. The 50 is a hard coded setting, but it can be overridden by adding a constant.

    When you look at your wp-config.php, each line starting "define(" is setting a constant. To set a new one you add a similar line with define('Contant_Name_Here', setting); so in this case:

    define( 'MEMBERSHIP_PAGE_COUNT' , 50 );
    changing the 50 to what you want it to be.

    Hopefully that should get you fixed up on that front.

    So with that clarified, lets move on to point 2...

    To protect pages and hide them from menus you need to set up negative rules for each access level to define which pages they CAN'T access, so for Visitors, you set a negative rule that limits access to all pages except the sample lesson etc. Then for the next level you use the rules to hide the pages that Paid Members pay for, then for Paid Members you just don't set any rule since they will get access by default.

    Hope that helps and doesn't just confuse you further!

  • lastdrifter

    Hello Again...

    I added the line you recommended above to WP-config.php at the end of the file.

    It looks like this:

    /** Membership change page count */
    define('MEMBERSHIP_PAGE_COUNT' ,250);

    Now when I type into the browser: "localhost/
    I get the following error:

    Parse error: syntax error, unexpected $end in C:\xampp\htdocs\\wp-config.php on line 98

    I also can not get to the site leaving off the /wp-admin at the end of the line - receiving the same error message.

    Not sure why, but not a coder or programmer.

    I have removed the code for access and things seem to have returned to normal. Could you please supply the actual code that should be inserted into this file so I can add it to the file and have access to see 250 pages for selection?


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.