ailinalei
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesForum: Fixing WordPress
In reply to: Query Post for 2 Category Pageshmmm…this is the code in the archive.php file:
[Code moderated as per the Forum Rules. Please use the pastebin]
Not really sure why it won’t work.
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesI still get ‘page not found’ when clicking on elder entries for cat 11. :/
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesAwesome! Almost there…I think we’re just missing a little bit of coding for cat 11. When I clicked on older entries, I get the ‘page not found’.
Thank you!!!
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesYes, but I got parse error. I think we’re close but it’s alright, I think it isn’t fixable. Thank you thank you thank you though for taking your time in helping me! =)
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesI’ve tried using this code but doesn’t work in archive.php.
<?php if ( is_category('5') || $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args= array( 'cat' => 5, 'posts_per_page' => 3, 'paged' => $paged ); query_posts($args); } elseif ( is_category('11') || $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args= array( 'cat' => 11, 'posts_per_page' => 3, 'paged' => $paged ); query_posts($args); ?>Please let me know if there are codes similar to the one above. If not fixable, then I’ll just give up on it.
Thanks for helping! 🙂
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesI have 2 categories using the same archive.php file. What code is needed to add category 11?
Media page (category 11) currently has the same post as Events page (category 5):
Events: http://cakedla.com/wordpress/?cat=5
Media: http://cakedla.com/wordpress/?cat=11How to fix category 11 page?
Sorry, I’m still learning all this. Thanks for helping.
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesThis works great! Thank you esmi!
One more question. I’m working on 2 category pages and they’re both using the same archive.php template. How do I make an if function code to use category 11? (if category 5 and if category 11)
Thanks!!! Almost there!
Forum: Fixing WordPress
In reply to: Blog Template HelpNevermind! I finally figured out the css! Thank you so much!!! =)
Forum: Fixing WordPress
In reply to: Blog Template Helphi vtxyzzy!
It works great! thank you so much! i’m not a css expert and i tried to fix the previous/next navigation buttons since they are in a weird location right now. how would i fix that to make the navigations in the bottom? Thanks so much!!!
Forum: Themes and Templates
In reply to: next and previous posts links not workingi’ve been working to fix for days now. it’s in the query but just don’t have a clue what to fix. please help….
[code moderated]
Forum: Themes and Templates
In reply to: next and previous posts links not workinghelp please…thank you.
Forum: Themes and Templates
In reply to: next and previous posts links not workingI don’t understand. Sorry. So you’re saying page.php needs to be changed/updated? How? Do you think I should add the following codes to page.php? If so, where? I got these codes from loop.php. Please let me know if i’m on the right track or if there is something else I need to do. Thanks! =)
<?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>This is how my page.php looks like:
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the wordpress construct of pages * and that other 'pages' on your wordpress site will use a * different template. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?> <?php get_header(); ?> <div id="container"> <div id="content" role="main"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_front_page() ) { ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } ?> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-<?php the_ID(); ?> --> <?php comments_template( '', true ); ?> <?php endwhile; ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>Forum: Plugins
In reply to: [Plugin: Frontpage-Slideshow] Simple CSS Question Re Rounded CornersJeff! You are super awesome! Thank you so much for your help! =D I am so happy now! yay!
Forum: Themes and Templates
In reply to: Custom Front Page*** edit ***
I finally figured out #1. =) Deleted
<h1 class="entry-title"><?php the_title(); ?></h1>in custom page template. =)Going to work on #2 and #3 tonight…