syncbox
Forum Replies Created
-
Forum: Plugins
In reply to: Need Plugin IdeasI’d love to see code or a plugin to create a dropdown menu of post titles for the CURRENT category page – not have to specify the category id, but “get” it when the page loads and only show post titles for that category or sub-categories
Forum: Fixing WordPress
In reply to: is_home does not functiondo you have a home.php file in your theme directory?
Forum: Plugins
In reply to: Getting the ID of a category pageIs
$this_cat = get_query_var('cat');
all you need? for example, if I want to show a dropdown archive menu, I could use this:
<?php dropdown_cats(); ?>could you somehow combine both to get a dropdown archive menu of JUST the current category? as:
<?php dropdown_cats($this_cat); ?>
?? just tried it, but I guess not. Or I don’t know how to put it together. It seems the dropdown_cats just does one thing… hmmm, how to build a dropdown menu or even a list of JUST the titles from the current category?
Forum: Fixing WordPress
In reply to: Multiple post listing of posts in a single categoryuh, the cat=9 refers to the category id, not the number of posts, just fyi.
Forum: Fixing WordPress
In reply to: How create a Page that will call up all posts in a category?you could make category specific files, as in copying index.php and saving as category-1.php (for whatever id number the category is)
or, just use the index and archive files – this is what they do anyway, if you have a link in your navs that take you to a category:
href=”/categoryname”
To have a sticky “top” post, you could use the category_description() before the start of the loop
<div id="intro"><?php echo category_description(); ?></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Then add #intro to your style.css sheet and style its appearance.
HTH
Forum: Plugins
In reply to: Index Page As Categorycopy your index.php page and name it home.php
then, use this:
just before the loop:
<?php
if (is_home()) {
query_posts("cat=1&order=ASC");
}
?>
settting the id number to the id of the news category and ASC or DESC (or you can remove the order=ASC part, but it seems appropriate to have the latest news FIRST)
that should do it. The key is to make home.php so that it becomes the auto loading page (like an index page) but then the query filters the posts.
HTH
Forum: Fixing WordPress
In reply to: How do I list contents of one category?but, can you do this dynamically? one script to get the titles of posts from the CURRENT category?
I’d like a drop down menu, but a list would be better than nothing. It’s the CURRENT cat that I don’t see how to do… I don’t want to have to have a separate set up for each category (and hard-code in the id of the category) but nothing I’ve seen others post seems to work.
TIA
Forum: Fixing WordPress
In reply to: linking to a categorydid you try just using /categoryname
href=”/espial”
??
that’s what I am using and it is working just fine
Forum: Themes and Templates
In reply to: Get the current pages Category idIf you want to have different layouts per category, create a file named category-1.php (where the category id=1, etc), then, query for that category just before the loop:
<?php
query_posts("cat=13&order=ASC");
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
does that help?
Forum: Fixing WordPress
In reply to: yet another post about the same image problemAre you adding the image via clicking on the actual image in Browse All Images field? It took me forever to figure out that the text displayed there was an actual set of buttons that toggled different results on clicking the first two shown:
Using Thumbnail (- Using Original)
Not Linked (- Linked to Image)
Send to Editor
Delete
Close OptionsCould that be it?
Forum: Fixing WordPress
In reply to: Monthly archives for one categorywell it must not be simple? Because no one ever answers this question.
It seems a logical thing to do, imo, so I wonder why it wasn’t incorporated into the parameters the tag could use.
But then, I also wonder why the admin>manage posts page can’t search posts by category. When I try putting in the name of a category to get to just those posts, I get nothing.
Forum: Fixing WordPress
In reply to: make link to comment author open in new window?OK, now I understand. So, if I needed to only show the link IF the author has a url, then what? This is working (thanks!)
" target="_new"><?php comment_author(); ?>
but if the author hasn’t supplied a url, you get url is not valid and cannot be loaded alert message…
Forum: Fixing WordPress
In reply to: Monthly archives for one categoryyeah, I am waiting for the answer to this one, too! Why isn’t there a way to filter for current category then display archive list or menu (better) that offers archive months but ONLY for that category?
Forum: Fixing WordPress
In reply to: Can home.php display category_description()?nah, I had a query in there. Funny, I am able to see the category description everywhere else it appears, just not home.
I have a home.php file and a home (cat=1) category. Could this be a problem? it’s driving me batty!
Forum: Fixing WordPress
In reply to: home page and category descriptionyes, there is a query,
<?php
if (is_home()) {
query_posts(“cat=1&order=ASC”);
}
?>…guess that isn’t it?