deko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to notify reader of additional posts?I think I’ve seen that bit of code in there somewhere. But doesn’t that just go to the next post, as opposed to filling the page with the next/previous 5 posts?
That’s the behavior I’m looking for: where the user can page through x number posts at a time – where x is the number set in Options.
Getting the ‘display posts’ number from options and the total number of posts in the category is easy enough – but how to keep track of where you are? Do I need view state for this? How will my code know whether posts 5 thru 10 or posts 11 thru 16 are currently displayed in the page?
Forum: Requests and Feedback
In reply to: More comments in code – esp. stylesheets – please!I’m wrestling with my CSS at the moment and was wondering what the heck that line was for. From what you’ve said, it sounds like a legacy CSS hack.
Forum: Requests and Feedback
In reply to: More comments in code – esp. stylesheets – please!Yes, but why should it have no display?
How is it being used?
What is it accomplishing?
Is this an IE workaround?
In what situation is it useful?
As for the core code, I’m getting familiar with it at this point. There’s a lot of flotsam in there.
my version is 2.0.deko
Forum: Requests and Feedback
In reply to: More comments in code – esp. stylesheets – please!And I’m still wondering what
hr { display: none; }is all about.
Anyone?
Forum: Requests and Feedback
In reply to: More comments in code – esp. stylesheets – please!Just a Regular Guy, actually. As for those who are blissfully ignorant of the code, they’ll never see the comments anyway so it’s all the same for them.
Sure, there’s some good docs here (I’ve contributed myself) but nothing beats well-commented code.
It’s really not too much to ask.
Forum: Plugins
In reply to: get_the_category() not in the loopHi and thanks for the reply.
I’m dynamically creating a navbar – in header.php.
I ended up going right to the database:
$sql = "select cat_id, cat_name from wp_categories where category_count > 0";and iterating over the results.
So far it’s working nicely…
Forum: Plugins
In reply to: How to exclude categories from loop?Hey, I think I figured it out:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (!in_category(1)) { continue; } ?>any comments/feedback appreciated…
Forum: Plugins
In reply to: How to avoid IE headache in #page div?Is a repeated image the only way to go here to avoid an IE headache?
yes.
Forum: Your WordPress
In reply to: SoccerLens Redesign – Requesting FeedbackLooks good, professional. You might add some margin on the bottom of the page.
A couple of questions:
1. What cross-browser problems are you addressing with that javascript?
2. In your stylesheet, you specify:
font-size: 100%; /* Resets 1em to 10px */Is that comment accurate?
Also (I may be exposing my ignorance here), why do you have:
html, body{
...
}rather than
body{
...
}Is this an XHTML thing?
Forum: Plugins
In reply to: How to use categories in a CMS kind of way?One way to do it is to click on a category link from the Manage admin page. This will sort posts by that category. Then you can identify the cat ID from your browser’s address bar and create your link like this:
<a href="http://www.whatever.com/?cat=5">Product Reviews</a>If I get ambitious, I will use the
list_cats()function to automatically create the links in my header bar.Forum: Plugins
In reply to: How to use categories in a CMS kind of way?10-4. Thanks for you help!
Forum: Plugins
In reply to: How to use categories in a CMS kind of way?I tried this:
<a href="http://www.mysite.com/category/Product Reviews">Product Reviews</a>but I get thrown in the 404 bucket.
The composition of the link would lead me to belive there should be a ‘category’ directory in my site’s root… there is not…
Forum: Plugins
In reply to: How to use categories in a CMS kind of way?So, in the simplest of terms, how do I show only the posts in a particular category?
Secondly, how do I put that functionality behind a link in my header?
Forum: Plugins
In reply to: How to use categories in a CMS kind of way?Thanks for the tip. Actually, I want to hard-code my categories in a nav bar (there are only four or five).
It’s a very basic theme. No sidebar, no footer.
So the appearance of the page stays pretty much the same, just the posts change as the user selects a category from the nav bar (header).
Forum: Plugins
In reply to: WordPress – with no theme?So don’t run wordpress naked…
Fair enough. I should be able to hack the default theme and get what I’m looking for.