beoba
Forum Replies Created
-
Okay, I got it, no idea why this works, but it does:
foreach(get_posts('showposts=5') as $post) { echo ' <a href="/#'.$post->ID.'">';the_title();echo '</a>'; }
For a while I was having problems with get_posts somehow overriding the main content Loop. For some reason, when I put “get_posts” directly into the foreach like that, it keeps the main content Loop’s data from being overridden.
Thanks for your support!
Found it! Turns out I was wrong about the existence of custom queries. This code is from the sidebar (used to list recent articles) is apparently no longer usable. As soon as I commented it out, things worked:
<? $temp_query = clone $wp_query; query_posts('showposts=5'); while (have_posts()): the_post(); echo ' <a href="/#';the_id();echo '">';the_title();echo '</a>'; endwhile; $wp_query = clone $temp_query; ?>
Now to figure out how to replace this.. I got it from here, and remember not finding anything else that worked at the time. Has 2.1 added a tag that lets you do this, or is it forever broken?
Yeah, that didn’t do it.
https://beoba.net/?page_id=198 – The title is “beoba.net >> Jabber File Sharing”, yet it still doesn’t load the correct content.
I just now switched the theme to Default, and that made things work correctly, so its starting to look like its a theme issue. Once my upcoming class is over, I’ll look at Default’s code to figure out what my theme should be doing differently. I’ll post here when I’ve (hopefully) figured out what it is.
I don’t think its a htaccess/mod_rewrite/permalink issue, as the HTML title of the page in both of those links is shown correctly. In other words, I’m pretty certain that WordPress knows what it’s supposed to be displaying, as the non-content blocks are correct, but it regardless refuses to show the correct content.
However, I’ll try switching to default permalinks real fast to 1) check if htaccess is updated correctly, and 2) see if that somehow magically fixes things.
Oh, and to rule out any possible additional variables, the only plugin I’m using is Kismet.
Forum: Requests and Feedback
In reply to: Easier upgradingTake a look at the bottom of Mark’s page:
I should mention that these files are unofficial. They were made on my own time, of my own volition, without any input from other WordPress developers and without any official sanction from Automattic inc.
Forum: Requests and Feedback
In reply to: Easier upgradingIn general, should a user be expected to trust unofficial sources for patches to their applications?
Forum: Requests and Feedback
In reply to: Easier upgradingYeah, it’d be nice if a 6-file update (2.0.6->2.0.7) didn’t require that I redownload the entire wordpress application and manually extract and replace those 6 files. Isn’t this what patches are for?
How about this: Each time there’s another update, post a .patch to update from the previous version to the new latest. Since you’ve started having updates every <1 month, this is likely the largest source of WP downloads anyway.
All other upgrades (anything greater than “n => n+1”) can use the full download.
Still acting the same for me, current contents of .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .+ /index.php
</IfModule>And the contents of /what’s .htaccess (though even if these were wrong, it would give a 500 error rather than WP’s current “takeover by default” action):
AuthUserFile /home/beoba/beoba.net/what/.htpasswd
AuthName “PASSWORDED”
AuthType Basic<Limit GET POST>
require valid-user
</Limit>Contents of /what’s .htpasswd:
what:W.Mas09m6gatg
Something weird is that if I remove/rename the .htaccess file, log in to /what, and then readd/rename it back, I am then able to view the folder (apparently being logged in makes it viewable despite .htaccess being there).
It most certainly is. Here are the (relevant) contents of the root directory for beoba.net:
-rw-rw-r– 1 beoba pg154859 235 2006-01-03 23:39 .htaccess
-rwxr-xr-x 1 beoba pg154859 99 2005-02-19 00:10 index.php
drwxrwxr-x 2 beoba pg154859 4096 2006-01-03 23:33 what
lrwxrwxrwx 1 beoba pg154859 3 2005-12-31 02:39 wp -> wp2
drwxr-xr-x 6 beoba pg154859 4096 2005-09-18 15:37 wp152
drwxr-xr-x 5 beoba pg154859 4096 2005-12-31 02:52 wp2index.php has an include for “./wp/wp-blog-header.php”
Forum: Fixing WordPress
In reply to: Move A Comment??
Forum: Fixing WordPress
In reply to: Move A CommentI have also encountered a need for the ability to move comments between pages/posts (I occasionally get questions on my site that are off-topic in their current location, and would be better placed elsewhere). Does anyone know of a plugin for this functionality, if it’s not already tucked away somewhere in 1.5?
Forum: Fixing WordPress
In reply to: Comments links aren’t links?Found it. Looks like it was a CSS bug. I narrowed it down to this particular item:
.commentshift {
position: relative;
top: -25px;
}Forum: Fixing WordPress
In reply to: Comments links aren’t links?Alrighty, just did that, it still appears to have the problem. (layout.tar.gz is now out of date in that respect)
I took out that @import line, as it appears to be redundant: There’s already an import for style.css in one of the <link> tags.