24lover
Forum Replies Created
-
Forum: Themes and Templates
In reply to: next page previous pagethanks for your reply
i tried your method and it came up with an error, but when i put the code just below the next/previous code it was ok. however it still doesn’t show up. Is this because i need to put a code into the particular pages i want to have next/previous links? Or is there something else additional i need to do after having that code in page.php
regards!Forum: Themes and Templates
In reply to: next page previous page<?php get_header(); ?> <div style="clear:both; margin:0px auto; width:728px;"> <script type="text/javascript"><!-- google_ad_client = "pub-1054015025474255"; /* 728x15, created 11/29/10 */ google_ad_slot = "7888810450"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> <!-- START: content --> <div id="content"> <?php if( is_page('encountering-conflict') || $post->post_parent == '194' || $post->post_parent == '215' ){ get_sidebar('enc'); } else if(is_page('blog')) { get_sidebar('blog'); } else{ get_sidebar('alt'); } ?> <!-- START: content-article --> <div id="content-article"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <h2><?php the_title(); ?></h2> <?php the_content(''); ?> <p><?php edit_post_link('↑ edit this page'); ?></p> </div> <?php endwhile; ?> <?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; ?> <!-- START: navigation --> <div class="navigation"> <div class="alignleft"><?php next_posts_link('← Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries →') ?></div> </div> <!-- END: navigation --> <?php else : ?> <div class="post"> <h2 class="center">Not Found</h2> <p class="center">Sorry, but we don't have this on our website yet!</p> </div> <?php endif; ?> </div> <div class="navigation"><p><?php posts_nav_link('∞','Go Forward In Time','Go Back in Time'); ?></p></div> <!-- END: content-article --> <?php get_sidebar(); ?> </div> <!-- END: content --> <?php get_footer(); ?>
thanks bronson!
Forum: Themes and Templates
In reply to: next page previous pageunfortunately that code doesn’t work ??
i’m trying to make it like sparknotes because my website is full of books ??
Forum: Themes and Templates
In reply to: next page previous pagebump?! can anyone help?
much appreciatedForum: Themes and Templates
In reply to: adsense and posts pagebump?
Forum: Themes and Templates
In reply to: unique sidebar helphi reuben,
i’m sorry but I did not mean actual post themselves. WordPress has front page and posts page….so I’m talking about the posts page that i need help with. It’s just like any other page, but for some reason my code won’t work?valandil,
thanks for your help. I tried using that code you provided however it did not work? what am i supposed to replace featured.php with? sorry if i’m slow, i’m a beginner.kind regards
Forum: Themes and Templates
In reply to: unique sidebar helpthanks reuben.
this is what i’ve tried in single.php, without success. can you help?
<?php if ( is_page('postspage')) { ?> <?php include(TEMPLATEPATH.'/sidebar-blog.php');?> <?php } else { ?> <?php include(TEMPLATEPATH.'/sidebar-blog.php');?> <?php } ?>
Forum: Themes and Templates
In reply to: unique sidebar helpWOW thank you so much reuben – it worked!
can i ask, how did my category pages change to the unique sidebar even though we didn’t put any ‘category code’?
and i have one more question: for the posts page….where do I put a code for this? I’ve tried is_page(‘postpage’) before but it didn’t work (unless i didn’t code it properly)?
please help!
thank you so muchForum: Themes and Templates
In reply to: unique sidebar for pagesI found this code on the internet which could work…..
<?php if (is_page('Page Name 1') || $post->post_parent == '##') { include (TEMPLATEPATH . '/right-1.php'); } elseif (is_page('Page Name 2') || $post->post_parent == '##') { include (TEMPLATEPATH . '/right-2.php'); } elseif (is_page('Page Name 3') || $post->post_parent == '##') { include (TEMPLATEPATH . '/right-3.php'); } elseif (is_page('Page Name 4') || $post->post_parent == '##') include (TEMPLATEPATH . '/right-4.php'); ?>
but not sure how i would code for my main sidebar. I understand how to do the unique sidebars with this code, but where would i put this part?
<?php } else { ?> <?php include(TEMPLATEPATH.'/sidebar-alt.php');?> <?php } ?>
sorry if this is confusing again! help would be much appreciated!
Forum: Themes and Templates
In reply to: unique sidebar for pageshey gisha james,
thanks for the reply, but unfortunately it didn’t work.i got this instead
Parse error: syntax error, unexpected T_ELSEIF
is there another way?
Forum: Themes and Templates
In reply to: templatepathhi everyone
thanks for your help but i found what i was looking for:
i used this code:<?php if ( is_page(‘whatever your page is called’) ) { ?>
<?php include(TEMPLATEPATH.’/sidebar-enc.php’);?>
<?php } else { ?>
<?php include(TEMPLATEPATH.’/sidebar-alt.php’);?>
<?php } ?>and it works wonderfully!
Forum: Themes and Templates
In reply to: templatepaththat’s going back to my question, i’ve tried that and it didn’t work unfortunately.
i believe it’s because i have two sidebars, one is called sidebar, the second called sidebar-alt.
if i use-
<?php $sidebar = get_post_meta($post->ID, “sidebar”, true);
get_sidebar($sidebar);
?>then it just replaces my sidebar, not sidebar-alt…..
Forum: Themes and Templates
In reply to: templatepathsidebar and enc for my replacement sidebar called sidebar-enc
Forum: Themes and Templates
In reply to: templatepathHi Joseph!
Thanks so much for replying.
Do you mean replace
<?php include(TEMPLATEPATH.”/sidebar-alt.php”);?>
with
<?php get_sidebar( ‘alt’ ); ?>
?Because i tried that and it didn’t work….and i’ve got the right custom value as well.
please help!Forum: Plugins
In reply to: [Like] Like plugin – like only particular pageshi everyone, i just changed applications to a more user friendly one – FB-Like Button
and it’s doing it’s job!