Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter ailinalei

    (@ailinalei)

    i wish it did.

    http://cakedla.com/wordpress/?cat=11&paged=2 page not found.

    Thread Starter ailinalei

    (@ailinalei)

    hmmm…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.

    Thread Starter ailinalei

    (@ailinalei)

    I still get ‘page not found’ when clicking on elder entries for cat 11. :/

    Thread Starter ailinalei

    (@ailinalei)

    Awesome! 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!!!

    Thread Starter ailinalei

    (@ailinalei)

    Yes, 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! =)

    Thread Starter ailinalei

    (@ailinalei)

    I’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! 🙂

    Thread Starter ailinalei

    (@ailinalei)

    I 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=11

    How to fix category 11 page?

    Sorry, I’m still learning all this. Thanks for helping.

    Thread Starter ailinalei

    (@ailinalei)

    This 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 Help
    Thread Starter ailinalei

    (@ailinalei)

    Nevermind! I finally figured out the css! Thank you so much!!! =)

    Forum: Fixing WordPress
    In reply to: Blog Template Help
    Thread Starter ailinalei

    (@ailinalei)

    hi 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!!!

    Thread Starter ailinalei

    (@ailinalei)

    i’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]

    Thread Starter ailinalei

    (@ailinalei)

    help please…thank you.

    Thread Starter ailinalei

    (@ailinalei)

    I 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">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</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">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    					<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</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(); ?>
    Thread Starter ailinalei

    (@ailinalei)

    Jeff! You are super awesome! Thank you so much for your help! =D I am so happy now! yay!

    Thread Starter ailinalei

    (@ailinalei)

    *** 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…

Viewing 15 replies - 1 through 15 (of 22 total)