taxpolicy
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Blank Page after Upgrade to 2.7@taxpolicy – it’s working now. After renaming index.php to something that wordpress couldn’t find, trying to access a permalink (which of course failed), putting [blog_root]index.php back, AND reloading the [blog_root], it displayed just fine. Had to be caching of some kind.
Forum: Fixing WordPress
In reply to: WordPress 2.7 upgrade and nothing happenedIt’s working now. After renaming index.php to something that wordpress couldn’t find, trying to access a permalink (which of course failed), putting [blog_root]index.php back, AND reloading the [blog_root], it displayed just fine. Had to be caching of some kind.
Forum: Installing WordPress
In reply to: WordPress 2.7 Blank Page Problem (Upgrade & Fresh Install)@taxpolicy – it’s working now. After renaming index.php to something that wordpress couldn’t find, trying to access a permalink (which of course failed), putting [blog_root]index.php back, AND reloading the [blog_root], it displayed just fine. Had to be caching of some kind.
Forum: Installing WordPress
In reply to: WordPress 2.7 Blank Page Problem (Upgrade & Fresh Install)@taxpolicy – it’s working now. After renaming index.php to something that wordpress couldn’t find, trying to access a permalink (which of course failed), putting [blog_root]index.php back, AND reloading the [blog_root], it displayed just fine. Had to be caching of some kind.
Forum: Installing WordPress
In reply to: Installed fine, dashboard area fine, home page is blank@taxpolicy – it’s working now. After renaming index.php to something that wordpress couldn’t find, trying to access a page (which of course failed), putting [blog_root]index.php back, AND reloading the [blog_root], it displayed just fine.
Forum: Fixing WordPress
In reply to: WordPress 2.7 upgrade and nothing happenedThe update ran successfully. This morning, I renamed [blog_root}index.php so wordpress couldn’t find it and uploaded an index.html that contained a redirect to one of the page permalinks. Everything broke, but after I put it back, I was able to get the default page from it’s permalink (though it took a really long to come up for the first time). Maybe caching something? Anyway, the [blog_root] is still blank – that’s the only thing not working. Everything else is fine, permalinks are all fine.
Forum: Installing WordPress
In reply to: WordPress 2.7 Blank Page Problem (Upgrade & Fresh Install)http://optimalPortfolio.net/TaxPolicy/
I tried one thing that helped a little. I renamed [blog_root]index.php to __index.php so wordpress wouldn’t be able to find it. Then I added a redirect index.html from [blog_root} to one of the pages. Everything broke, but after I put it back, wordpress loaded the default page from its permalink (though it spent a really long time bringing it up for the first time). Seems like some sort of caching effect.
Anyway, the [blog_root] still shows up blank.
Forum: Installing WordPress
In reply to: WordPress 2.7 Blank Page Problem (Upgrade & Fresh Install)After the 2.7 upgrade everything works great, except that the <blog_root> page is blank. When other URLs are loaded, everything is fine, except whichever page is configured as the default (the content displayed for the <blog_root> appears blank. I can switch the default pages around. Once a page is not the default, it loads fine and whatever the new default is goes blank. I tried without the plug-ins, with the default wordpress theme, verified that the permissions are okay, reinstalled the 2.7 update, injected code in <blog_root>/index.php …
ini_set(‘display_errors’,’1′);
ini_set(‘display_startup_errors’,’1′);
error_reporting(E_ALL);… to print any warnings, but I’m not getting any errors either. Nothing is broken except the [blog_root] and whatever page is defined to be the default content. I can switch the default content around – whatever was the default content displays fine from its permalink. The new default content shows a blank page from it’s permalink. The [blog_root] always shows blank, even if it’s configured to be the last ten posts. There’s no content missing. Any ideas?
Forum: Installing WordPress
In reply to: Blank Page after Upgrade to 2.7the usual…
require(‘./wp-blog-header.php’);
from <blog_root>/index.php is fine. If it wasn’t, all pages would be broken, not just the blog’s default page.
I tried the theme swap mentioned above, but the blog’s default page is blank in the wordpress default and several other themes.
I also injected code to get any errors that might be occurring, but I’m not getting any. Here’s the code (goes in <blog_root>/index.php…
ini_set(‘display_errors’,’1′);
ini_set(‘display_startup_errors’,’1′);
error_reporting(E_ALL);Anybody have any other ideas???
Forum: Fixing WordPress
In reply to: WordPress 2.7 upgrade and nothing happenedI did the 2.7 upgrade and everything works EXCEPT the blog’s home page – it’s a complete blank, whether you get there by entering the URL directly or via a link to it from any other page or post (which all work fine). What happened??? Any ideas how I can fix it?
Forum: Developing with WordPress
In reply to: Display Info if admin, otherwise hideI think it’s weird that ordinary users have access to Site Admin capabilities (at least within the Tiga theme), but your post above inspired me to fix that. Here’s my suggested change: in wp-includes\general-template.php, I modified the else clause in wp_register so that it returns an empty link if the user is logged in, but is not the site admin. If this is not a good thing to do, I hope you’ll tell me why.
admin of Tax Policy Blog @ OptimalPortfolio.net
----------------- a slightly modified wp_register() ------------------ function wp_register( $before = ' <li>', $after = '</li> ' ) { if ( ! is_user_logged_in() ) { # no one is logged in if ( get_option('users_can_register') ) $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after; else $link = ''; } else { # someone is logged in if ( current_user_can('level_10') ) $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after; else $link = ''; } echo apply_filters('register', $link); }Forum: Themes and Templates
In reply to: How to remove the <p>’s from the_content?Revje,
I think I know why WordPress wants (needs) <p> around the content… When you have multiple paragraphs in the post content, you need them delimited from each other. I posted code from index.php and style.css below… Probably need to get control of the spacing before and/or after the content in some other way – the question is how?
-Mike
————————————-
<div class=”post-author”>
<?php _e(‘By ‘); the_author(); ?>
</div><div class=”post-content”>
<?php the_content(__(‘Read the rest of this entry »’)); ?>
</div><div class=”post-metadata”>
<?php _e(‘Posted in ‘); the_category(‘, ‘); ?> |
<?php edit_post_link(__(‘Edit’),”,’ |‘); ?>
<?php comments_popup_link(__(‘No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?>
</div>
……………………………………………………………..
the CSS looks like:
.post-author {
font-size:8pt;
color:#003366;
background-color: #FFFFFF;
/* margin-bottom:3em; orig – removal has no effect */
margin-bottom:1em;
}
.post-content, .comment-content {
font-size:10pt;
color:#333333;
}
.post-metadata {
text-align:center; /* my addition – no effect */
font-size:8pt;
color:#003366;
background-color: #FFFFFF;
/* padding-left:3em; orig – removal has no effect*/
}
……………………………………………………………..
The resulting code looks like:<div class=”post-author”>By {username}</div>
<div class=”post-content”>
<p>post content paragraph1…</p>
<p>post content paragraph2…</p>
</div>
<div class=”post-metadata”>
Posted in …
</div>Forum: Themes and Templates
In reply to: How to remove the <p>’s from the_content?RoseCitySister,
I looked at the post content in HTML mode – it doesn’t have leading <p>’s or trailing </p>’s. They’re being injected by either WordPress or the Theme.
-Mike
[sig moderated. please don’t]Forum: Themes and Templates
In reply to: How to remove the <p>’s from the_content?I want to accomplish exactly the same thing. Have read through the_content() and the functions it calls, and anything they call, … and I can’t find the place where the <p>, </p> get injected. Looking forward to seeing a solution posted…
– Mike
[ admin for the tax policy blog on optimalportfolio.net ]