markp
Forum Replies Created
-
I’m afraid I don’t exactly know when it started. I would estimate that it was early 2012 – but I wouldn’t like to guarantee it.
I think that I need to trace where this pre-defined path is coming from in the system.
Forum: Networking WordPress
In reply to: Multisite wp-login.php has links to default siteThanks Ipstenu. That’s good news on the one hand, but bad news in that it looks like nothing is going to be done.
Cheers,
MarkForum: Alpha/Beta/RC
In reply to: Which PHP VersionPeter, you are a star! Thanks. I’ll get the updated plugin when it becomes available (although I feel quite comfortable that my server meets the new minimum requirements anyway!).
Forum: Alpha/Beta/RC
In reply to: Which PHP VersionWith Health Check 0.2 which I have just downloaded, I’m getting:
———————————-
Warning: Your server is running PHP version 5.2.4. WordPress 3.2 will require PHP version 5.2.4.Once your host has upgraded your server you can re-activate the plugin to check again.
———————————-Now that really doesn’t make sense!
phpinfo() gives me 5.2.4
Forum: Plugins
In reply to: WP Page as static home pageSorted – it was whitespace that I’d accidentally pasted in.
Gorgeous!
Thanks Ryan.
I’ve ditched my code and I’m now relying on your new plugin.Forum: Plugins
In reply to: WP Page as static home pageWell done rboren! I’ve just tried your plugin and it works great. Basically it is doing just what my mod to classes does, but in a more elegant manner.
However, I am getting:
Warning: Cannot add header information – headers already sent by…page2front.php:29)
in /home/…./wp-admin/admin.php on line 7
then lines 8, 9 and 10.
But *only* in the admin console.
Note, this is WP 1.5 build ‘wordpress-2005-01-17’Forum: Plugins
In reply to: WP Page as static home pageDONE IT!!
I’ve inserted the following code after line 187 in classes.php
if ( $this->is_home == true) {
$this->is_home = false;
$this->is_page = true;
$this->query_vars['page_id'] = 2;
}
where ‘2’ is the ID of the page (in wp.posts) that you want to show on the home page.
I don’t really know why this works. This is my first attempt at using objects in PHP.Forum: Plugins
In reply to: WP Page as static home pageI’ll be interested to see what you come up with.
I’m still trying to suss out this $wp_query object. It must default to certain values that must be able to be changed.
Forum: Plugins
In reply to: WP Page as static home pageYeah. I just tried taking out the post loop (from page.php) and saw that I ended up with just the last post.
So if home.php is included in the blog header where would it go? Surely I have to also take something out to prevent it getting a load of posts as well?
I also want the home page editable as a wp Page (by the way!) and to appear in the automatically generated list of Pages.
It appears that blog-header.php somehow sets up the $wp-query globally used object. It seems to me that if I can fill that object with the data I want (that will determine the page I want to show) then I will have acheived what I want to do. I’m just not experienced with php objects. 🙁
Forum: Plugins
In reply to: WP Page as static home pageHi,
I don’t really want to redirect a user when they arrive at the domain. I guess I could do a header redirect upon detection that there are no post or get variables.
So, not really what I’m looking for. It must be possible to do what I want to achieve.
Where is it set that a call for the index.php with no post or get variables gives the user a page full of posts? If I can change this code then I’m sorted.
Cheers,
Mark