cognitions
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: Child Theme Redeclared Functions do not behave as Codex saysAh.
That would make sense. I’ll test that.
Many thanks.Forum: Requests and Feedback
In reply to: Version 3.0 FeaturesThis seems a pivotal moment. The merge of wpmu and wp is absolutely right in my view. But if it is not given the space and time it needs, it could be disastrous.
I agree with the earlier poster that such a merger is sufficient for v3 with additions to follow.
Forum: Fixing WordPress
In reply to: How to get a serialized optionDiscovered it through trial and error>
$my_site_options = get_option('my_site'); echo( $my_site_options['option_name'] );
Hope that is useful for someone.
Forum: Fixing WordPress
In reply to: How to exclude a page from navigation by title or slugThank you!
For others seeking this solution (provided by MichaelH):-
The code for excluding pages when you know the Title but not the ID. The following is an example excluding three pages from the menu.
<?php $page1 = get_page_by_title ('About'); $page2 = get_page_by_title ('Services'); $page3 = get_page_by_title ('Privacy Policy'); wp_list_pages('exclude=' . $page1->ID . ',' . $page2->ID . ',' . $page3->ID); ?>
Forum: Fixing WordPress
In reply to: How to exclude a page from navigation by title or slugOK. I have got the values individually like this:
$page1 = get_page_by_title ('About'); $page2 = get_page_by_title ('Services'); $page2 = get_page_by_title ('Privacy');
and they all work. For example:
wp_list_pages('exclude='.$page1->ID); wp_list_pages('exclude='.$page2->ID); wp_list_pages('exclude='.$page3->ID);
But I cannot seem to combine them so that a single instance of wp_list_pages excludes all of them.
I know this is no where near right, but the result I am seeking is:
wp_list_pages('exclude='.$page1->ID, .$page2->ID, .$page3->ID);
Thanks for your help so far. Sorry not to have figured this.
Forum: Fixing WordPress
In reply to: How to exclude a page from navigation by title or slugThankyou. It works, but I forgot to mention that there is more than one page to exclude.
I have studied the codex to see how to put them in an array but no luck.
So far I have this:
$page = get_page_by_title (array( 'About'), ('Privacy'), ('Disclaimer') ));
But it only excludes the first page ‘About’.
Thank you.
Forum: Fixing WordPress
In reply to: preg_replace questionMany thanks! Perfect. Sorry for the delay in thanking. Gave up ??
Forum: Fixing WordPress
In reply to: preg_replace questionCannot exclude by Id because the page is created dynamically. The title is fixed but the name (slug) and id will vary.
Forum: Fixing WordPress
In reply to: How to do something once when theme is activatedThis now works perfectly.
Thank you so much for following this through!
Forum: Fixing WordPress
In reply to: How to do something once when theme is activatedI wanted to try everything with your code before replying.
Please forgive me if this is my fault…but:
No matter how I code it, the code seems not to distinguish between:
$check != “set”
and
$check = “set”
And it returns the same whether or not the theme_name_activation_check is in the options database table or not.
If I could get this solution to work it would be great.
Any comments would be appreciated.
Many thanks.
Forum: Plugins
In reply to: How to do wp_insert_post only onceOK. Good idea. Thanks for your time!
Forum: Fixing WordPress
In reply to: Options Table and SERIALIZED DATAOK will do.
Thank you for your response.
Forum: Fixing WordPress
In reply to: How to echo current tag slugThank you very much indeed! It works perfectly.