retardedjimmy
Forum Replies Created
-
Forum: Plugins
In reply to: How to find the parent category on a single post pageBump
Forum: Fixing WordPress
In reply to: styling parent categories while displaying their childrenOk, got a solution… (searching for the answer is your friend, searching for the answer for three hours is your best friend ever)
It’s over on the Custom Category Template Page (all the way at the bottom under “Custom Category Template” code) lines 5 & 6. Heck, I’m so happy I’ll reprintthem here.
<?php $this_category = get_category($cat);?>
<?php if ($this_category->category_parent == 0) { ?>That tests the current category’s parent, which means you can apply any templating based on the category’s parent– ie all “Fruit” parented category pages can be blue, just like I need.
Forum: Fixing WordPress
In reply to: styling parent categories while displaying their childrenthis seems like exactly what I want…
https://www.ads-software.com/support/topic/35301
… but it’s not working.
Forum: Fixing WordPress
In reply to: styling parent categories while displaying their childrendoh… bump. I need some help on this one.
Forum: Fixing WordPress
In reply to: Single Post template shows other posts from same categoryThanks for the answer. I’m pretty sure Defamer is not a WP blog, I just think they have a nice style, and I’m trying to emulate it.
However, I do notice that you’re right. It’s only their front page that links to the category pages, and that way the latest post will be on top no matter what. Any permalinked post off the front page seems to just be a normal single post page. Their URL query is strange, but I guess that’s what they’re doing.
What I could do, then, is just make sure that any links off the home page (is_home()) go to category archives instead of single post archives. This seems unwieldy, as I’d have to make clear that links on the home page aren’t actually permalinks, they’re category links. Would give visitors more to read on single pages, but wouldn’t let them link offsite as easily…
Forum: Themes and Templates
In reply to: too many filesI’ve just read through this, which helps in creating a theme that’s a little more simple to work with than the default. Could be that Kubrick just is too complicated to dive in and work on code for.
Forum: Fixing WordPress
In reply to: diff style on latest post, diff layout for singleFound a solution, if not a very smooth or beautiful one…
Basically I usedif (!single)
,if ($p)
, `if ($m)’, and ‘if ($cat)’ a lot. There are crazy loops all over the page, and unfortunately everything gets loaded everytime index.php is loaded (a blog all in one page!), but I can do what I wanted, which is show different menus and different formatting depending on what page I’m on.
Maybe 1.3 will have a better method of linking to new templates. In the meantime, if anyone knows a better way, I’m all ears.Forum: Fixing WordPress
In reply to: diff style on latest post, diff layout for single1.2 mingus
Forum: Fixing WordPress
In reply to: Way to strip spaces & tabs prefixing all lines?I’m guessing this is because of
and
tags, which WP uses in abundance. Easiest way might be putting some extra css in your wp-layout.css:
ul, li {
line-style: none;
margin: 0;
padding: 0;
}
Scroll through the stylesheet, also, because there’s lots and lots of ul and li formatting in there. Delete what you don’t want (backup, of course, just to make sure), put in the code above, and cascading should take care of the rest.Forum: Fixing WordPress
In reply to: Link Problems…Did you check the addresses in General options to make sure there were no typos?
Forum: Fixing WordPress
In reply to: diff style on latest post, diff layout for singleOk thanks Beel (and moshu, i didn’t thank you before).
That works, kind of.
Once I got it, it worked out (theelse
has to be closed before theendforeach
of the loop, in case anyone else is trying it), but the problem now is that it changes the format of every first post, not just the ones on the homepage, but also the ones on the archives, even on the individual pages. I could probably work around it, but the front page is meant to be like a splash, with a bigger, brighter design then the rest.
Does anyone know if there are any global flags to test whether a page is an archive (monthly or cat), a single page or the basic homepage?$single
works, but is there a$home
or an$archive
?
Heh, thinking out loud, that means I’d have to put my$count
loop inside yet another$home
test loop. ?? good times.Forum: Fixing WordPress
In reply to: diff style on latest post, diff layout for singleNice. Here’s what the solution looks like. In index.php:
<div id="menu">
<?php if ($single) { ?>
blah blah blah menu for single page blah blah blah
<?php } ?>
<?php if (!$single) { ?>
blah blah blah menu for front page/archives
<?php } ?>
</div>
Thanks. Any ideas on #1 anyone?