Ohh the solution was that simple, I didn't realize that I can always use update_option, even if the option doesn't exists. I just rewrote my script and it works GREAT!.
Though I realize I may not have chosen the most efficient solution, since you mentioned arrays, I could have used arrays as well. What I rather did was I simply appended all the pages with a foreach loop and space between the page ID's to ONE option and then it will be inserted into the database like this.
64 57 16
And then I take those values with get_option in the header file and split them with the php explode function and then I implode them while separating them with a comma. The imploded string gets inserted into a variable, and that variable gets inserted into the "exclude" attribute of wp_list_pages.
To me, this is a very straight forward solution, it's not quite bad for the fact that I'm only programming since 4 month.
This way the user can:
- hide selected pages
- make selected pages visible again
- or reset everything (make every page visible)
The reason why I need this functionality is because I have blurbs on the front page, where the user can enter text like "about blog" or "about author", and those blurbs are entered by creating a page. The blurbs simply take the title and the plain text with get_the_content.
Since the pages will show in the navi bar, it's good to simply let the user tick them off.
I will look into those WP standard navigation menus, I never got seriously into them. After I explained everything, do you think I could have accomplished the same thing with that too?
Though I will leave everything as it is, because I need a unique functionality for my theme to have it accepted by market places. Besides this functionality I really don't have much more to offer, it's a quite simple though nice looking theme.
Thanks for your help.