asechrest
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Internet Explorer not displaying correctlyJust from counting the tags in your source code, I think there’s a couple of unclosed
<p>tags and maybe an<li>tag or two.Here’s how I validate my site (part 2 is linked at the end of the post), though ironically it’s currently slightly out of validation due to some plugins.
Forum: Everything else WordPress
In reply to: Internet Explorer not displaying correctlyYou have a number of errors. You probably want to start by cleaning those up, and then we’ll go from there. Many layout issues can be cleared up this way.
Forum: Fixing WordPress
In reply to: Previous/Next Post in Category?That’s an interesting issue, then. I’m trying to brainstorm a solution.
If you sent moto posts from the moto page to a different page template than moto posts from the homepage, you’d have duplicate content issues.
You could try to determine the referring page and base conditional previous/next post links off of that or something.
Maybe someone else has an idea/solution. Having trouble getting my brain to function this morning.
Forum: Plugins
In reply to: H1 Blog Title HAck If Statemtn confusionPerhaps try is_front_page().
Forum: Fixing WordPress
In reply to: Custom Search PageI’ve never used it, but this plugin seems promising.
Forum: Fixing WordPress
In reply to: Previous/Next Post in Category?I think I see what you’re saying.
You have a homepage that displays all your posts except those in moto cat. Then you’ve set up a separate page that lists only posts in category motorcycle.
And what you want is for the previous/next post links to cycle through all post on the homepage, and only motorcycle posts on the motorcycle page. Right?
The problem with how you’ve implemented it is that with your current setup, no matter where a post is clicked on, it uses the
single.phptemplate.What you could do to obtain this functionality is use conditional checks for your previous/next post link code. Something like the following:
<?php if (in_category('motoID')){ ?> <div class="alignleft"><?php previous_post_link('« %link','%title',TRUE,'') ?></div> <div class="alignright"><?php next_post_link('%link »','%title',TRUE,'') ?></div> <?php } else { ?> <div class="alignleft"><?php previous_post_link('« %link','%title','','motoID') ?></div> <div class="alignright"><?php next_post_link('%link »','%title','','motoID') ?></div> <?php } ?>Replace
motoIDwith the motorcycle category ID. Code is untested but should work. What this does is if it’s in the moto category, it restricts the previous/next post links to the moto category. For any other category, it allows free navigation through the posts BUT excludes the moto category.Hopefully that gets you what you want. There’s a possibility that what you really want is for the previous/next post links to be restricted to the moto category only when a moto post is accessed through the moto-specific page you made, but NOT when a moto post is accessed from the homepage. If this is the case, the issue is a bit more difficult to resolve.
Forum: Plugins
In reply to: Is there a plugin put <!–more–> after a number of words in post automatic ?Linked to a plugin in your other thread.
Forum: Fixing WordPress
In reply to: How to put <!–more–> after a number of words in post automatic ?This plugin does it automatically.
Forum: Fixing WordPress
In reply to: Detect if user is logged in; Optionally display sidebar’s contentMight check out Widget Logic and the is_user_logged_in() conditional.
Though I’m honestly not sure if the plugin and that conditional work together.
Probably want to ask at the MU forums, though you may get someone who can answer here.
Forum: Fixing WordPress
In reply to: Previous/Next Post in Category?I think you’ll find the answer here.
in_same_cat argument should be set to TRUE.
Forum: Plugins
In reply to: Wanted: Sitemap PluginSearch here for “sitemap.” There are a couple of options, not sure if they’ll offer the exact format you want.
Forum: Fixing WordPress
In reply to: Side Bar at bottom of pageHmm. Maybe, because I don’t even see a sidebar.
Generally, if the issue occured immediately after you published a post, you’ll want to check that post for errors.
Did you forget to close a tag? Did you insert a pic/video that might potentially be too wide for your content div? If you unpublish or remove the content from the post, does it fix the problem?
If you determine it’s not a single post causing the problem, then you generally look elsewhere in your code for unclosed tags, etc. It helps to validate your site (part 1 and 2), too. Even if fixing the validation errors doesn’t fix the problem (which it may), you’ve at least ruled out some issues.
And if all of that doesn’t fix it, you can try manually adjusting your div widths. Using Firefox with an addon that let’s you edit CSS in real time helps with this.
Forum: Fixing WordPress
In reply to: Automatically adding text to comment after comment is submittedNice. I’m totally snagging that function. Right now I’ve just been testing on my live site. Horrible idea, I know, but I haven’t set anything up locally yet.
If I’m able to make this into a little practice plugin I’ll give it to you guys for testing/tearing apart. 🙂
Forum: Fixing WordPress
In reply to: Automatically adding text to comment after comment is submittedAhhh, I see. I never even considered not putting it in the theme’s functions.php file. I forgot I could have also just stuck the code in the comment loop.
That’s what I get for jumping into WordPress coding at the filter level. Now I can’t do anything but write filters. 😉
By the way thanks for the help on this, it’s been a pretty good learning experience. I’ll have to finish the code up this weekend to make it a working filter.