benjy
Forum Replies Created
-
Forum: Installing WordPress
In reply to: wp-admin points to old domainTry deleting your cookies. Or, at least the ones related to WP.
Forum: Fixing WordPress
In reply to: Permalinks all go to the same postOK…so any thoughts on how I can fix it? See https://footballoutsiders.com/info.php for more server info.
Forum: Fixing WordPress
In reply to: Permalinks all go to the same postI had it working in 1.5.2 just fine on the old host, and just copied all the WP files directly over
Forum: Themes and Templates
In reply to: Styling comments for registered authorsbump…me too! Anyone?
Forum: Fixing WordPress
In reply to: migrating to a new serverI’m working with Pixellated on the site that’s the subject of our angst. Entering a login/pass in wp-login.php results in a refresh of wp-login.php and a clearing of the login and password fields, regardless of whether the password is correct or not. No other message. Nada. We didn’t change any of the settings (other than moving to a new server), so mee-sa confus-sed.
Forum: Your WordPress
In reply to: FootballOutsiders :: newly WordPressified!Thanks!
Hmmm…lessee…off the top of my head:
:: Adhesive for sticky posts
:: comment-plugger for “last posted by…’
:: linkPost for the Extra Points page (post titles link outside site)
:: recently-commented for 5 Most Recently Commented Extra Points box on the left of the Extra Points page (actually, I use customizable-post-listings for this)
:: cg-samecat for 5 Most Recent Ramblings box on the left of all Ramblings pages
I think that’s it. Maybe.Forum: Plugins
In reply to: Adhesive: A new sticky WP pluginwell, I did that, and I don’t get class=”adhesive_post” to show up anywhere. Check out https://www.footballoutsiders.com to see what I’m talking about. The top post on the list (2001 DVOA Ratings & Commentary) has been stickified. When I view source, there’s no class=”adhesive_post”. I’ve probably messed with the code in the Loop such that whatever tag the class was supposed to go into is not there anymore….and that’s why I asked the question.
Forum: Plugins
In reply to: Adhesive: A new sticky WP pluginhowdy…where exactly is the class=”adhesive_post” inserted? I’ve modified my Loop script a bunch, which is likely why I don’t see the class anywhere, but if I can know where it’s *supposed* to go, maybe I can figure something out. Thanks!
Forum: Fixing WordPress
In reply to: change category not working completelyAlrighty….got it!
I created a new function based on the_category_ID(), but that now calls post2cat instead of wp_posts:
function the_category_ID2($echo = true) {
$categories = get_the_category();
foreach ($categories as $category) {
if ($echo)
echo $category->category_id;
else
return $category->category_id;
}
}
Thanks, TechGnome, for your help…Forum: Fixing WordPress
In reply to: change category not working completelyHmmm…well, looking in template-functions-category.php, the code for the_category_ID is:
function the_category_ID($echo = true) {
global $post;
if ($echo)
echo $post->post_category;
else
return $post->post_category;
}
while the code for the_category seems to call get_the_category() which pulls from post2cat. I’m guessing that $post -> post_category is pulling from wp_posts….right?Forum: Fixing WordPress
In reply to: change category not working completelyI’m using 1.2. I’d have no problem using just the post2cat table only, but then I’d have to get the_category_ID to pull from it instead of wp_posts…and I’m not terribly sure how to do that.
Forum: Fixing WordPress
In reply to: change category not working completelyI’m actually having the same issue, only kinda backwards. Updating categories in the admin changes them in wp_post2cat but not wp_posts. But I’m ending up with the same issues — having to go into the DB and make the category changes manually. In https://www.footballoutsiders.com the post listings (under “Recent Ramblings”) have this problem. I’ve changed some of them manually, but left some so I can know if I fixed it. The first Confessions of a Football Junkie post (currently the 3rd on the list) has cat=1 for the title link & comments link, but cat=6 (the correct one) for the category link (“Confessions”).
The category link uses the_category(“, “) to generate the text and the link, while the title and comments link uses the_category_ID() to get the link. Apparently, the_category() pulls from wp_post2cat, while the_category_ID() pulls from wp_posts. Meanwhile, changing the category in the admin seems to affect only wp_post2cat.
Hmmmm…
Can anyone tell me why this is? And can anyone suggest a way to make the_category_ID pull from wp_post2cat…or at least have the admin push category changes to both tables??Forum: Your WordPress
In reply to: FootballOutsiders :: newly WordPressified!https://www.lesterchan.net/portfolio/programming.php
Slightly modified for each section (index, ramblings, articles)Forum: Plugins
In reply to: CG-PowerPack 1.0FC1Yay!! Thanks!! Now the cg_samecat plugin shows posts of multiple categories. To see it in action, go to FootballOutsiders.com and look at the Most Recent Ramblings box in the left column.
-benjyForum: Plugins
In reply to: Anyone need more info on query-counts?I know this was posted 9 months ago, but it definitely applies to me. My site — footballoutsiders.com — is using up boatloads of server CPU…they actually shut it down for a bit while we sorted things out. It’s been getting 3000+ visits/day since I redesigned it and started to use WP for content mgmt. I know there HAS to be quite a few ways to optimize this. Anyone care to help?
Dave, you can see your plugin in use ??
Thanks,
benjy