novice21
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Include specific category children in index.php loopWhat other forum posts? All the one’s I’ve seen seem to want to hide a category completely, I looked again and nothing’s really getting me going except for Codex. I don’t want to hide anything, I simply want my posts on the main page to be grouped by category, they’re only three parent categories I want to display. I just need to temporarly hide cats for printing.
I’m sorta getting it done, but it’s weird because its NOT supposed to work the way I’ve done it according to codex? From what I understand you can’t duplicate a loop without resting the count using
<?php rewind_posts() ?>But its working for me, weird?I’d solve the whole thing if I could undo the value I set for query_posts. For example, if I wrote:
set query_posts('cat=-1');How would I undo this later? so its not looking at that value? what is the default value anyhow?
Is there ANY way to get
in_category('1') && in_category('2')to work? && means AND right? || means OR.Thanks.
Forum: Fixing WordPress
In reply to: Static Front Page -Problem Assigning TemplatesAny ideas?
Forum: Themes and Templates
In reply to: Duplicating the index display?Thanks alot for your reply, I’m getting alot of head way here and I’m finally getting it. I think. Now I only need to know how to call the archive.php page. I’m having a hard time doing that.
I was using a Page template, I didn’t know that the index.php code would actually work in the archive.php page. My only problem was that my theme was using it to display archives for dates and categories…I got around that by making a category.php and date.php page so it wont fall back on the archive.php template.
My only question now is, how do you call the archive.php file? I was getting it before when I clicked on category or date archives, but now I’m not sure how to call it with the index.php code in there.. http://www.myblog.com/archive.php or http://www.myblog.com/archive/ doesn’t seem to cut it..my menu should link to the page so what would the url be?
I really appreciate your help!!
Edit: oh, and is there ANY way to not have the word archive in the url? the menu link is called browse..so I would love for it to reflect that. If it cant be done then bummer, I’d just get around that by including a “You’re browsing the archives” or something on the page..
Forum: Themes and Templates
In reply to: Duplicating the index display?Thanks for the custom query string plugin, that’s really gonna come in useful!
I’m still trying to make the loop work, I’ve spent time reading through the articles but I cant get the following code to display anything in my template file, is there any reason why the following code would not work in a template file? It’s copied straight off the loop documentation page.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_excerpt(); ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>My header file is included as
<?php get_header(); ?>at the top of the page, my Page is a template, so it doesn’t need<?php define('WP_USE_THEMES', false); get_header(); ?>i tried that anyway… nothing works.The source code just shows a blank where the loop is…this is so frustrating..
Forum: Plugins
In reply to: Ultimate Tag Warrior 3. Installation ProblemAnyone? I cant figure this out. It should be a simple thing yeah?
Forum: Themes and Templates
In reply to: Custom Navigation Using ImagesHi!
Thanks for the reply, I tried to work that out but it really confused me, instead I came across the solution in this thread, and the implementation worked fine:
<?php $next_post = get_next_post(); $prev_post = get_previous_post(); ?> <a href="<?php echo get_permalink($prev_post->ID);?> "><img src="/images/nav_prev.jpg" title="<?php echo str_replace('"', '\'', $prev_post->post_title); ?>" /></a> <a href="<?php echo get_permalink($next_post->ID);?> "><img src="/images/nav_next.jpg" title="<?php echo str_replace('"', '\'', $next_post->post_title); ?>" /></a>Your reply though made me wonder if it were possible to write a second navigation system for categories so you can browse a certain category….how would you do that? Any idea?
I’m only a beginner in PHP, I get confused when I’m reading the wordpress.org documentation. Really appreciate your help!
Forum: Installing WordPress
In reply to: Integrating multiple installations?Thanks for the link! This is exactly what I was looking for.
Gonna test it out =)