Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • I know Im 6 months late. But I am developing a blog myself and wated to add Ambrosite Next/Previous Post Link Plus to override the wp-pagenavi for my own simgle.php.

    I can tell you already that your code is wrong… if you downloaded the plugin then you you should have read the readme.txt.

    its suppossed to look like this:
    <?php next_post_link_plus('order_by=post_date&meta_key=&loop=0&thumb=0&max_length=0&in_same_cat=1&excats=&num_results=1&echo=1'); ?>

    but even there is something wrong with that code.. instead of using 0 use false and instead of using 1 use true.

    and these are the arrays to use btw:
    ` ‘order_by’ => ”,
    ‘order_2nd’ => ”,
    ‘meta_key’ => ”,
    ‘loop’ => ,
    ‘thumb’ => ,
    ‘max_length’ => ,
    ‘format’ => ”,
    ‘link’ => ”,
    ‘before’ => ”,
    ‘after’ => ”,
    ‘in_same_cat’ => false,
    ‘ex_cats’ => ”,
    ‘num_results’ => ,
    ‘echo’ =>

    Hope you got this!

    Thread Starter TotallyLost

    (@totallylost)

    Hi Alchymyth,
    THE CATEGORY CHANGES HAVE WORKED!!! I now have 3 different templates between 5 categories!

    But now I have run into a new problem… just about anything listed after <?php }?> does not list… I had to put both sidebars above the code to see it (which isnt a problem)… I listed the code underneath from my index.php

    Can you please have a look and tell me what Im doing wrong so that I can correct it and have my navigation and footer pop up??? I did alternate the coding around a lot after reading the Conditional tags but it doesnt work.

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div id="rightsidebar"></div>
    
     <div id="content">
    
      <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
    
        <?php if( in_category('sounds') ) { ?>
        <div id="musicsheet" <?php the_ID(); ?>>
          <div class="posttitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></div>
         <div class="infocenter">
          <div class="info3">Born On: <?php the_date('F jS, Y'); ?></div>
          <div class="center"><?php the_content(); ?></div>
         </div>
          <div class="like"><?php if(function_exists('wp_likes_render_post')) wp_likes_render_post();?></div>
        </div>
    
        <?php } elseif(in_category('random-moments') ) { ?>
        <div id="notebook" <?php the_ID(); ?>>
        <div class="notebookt"><div class="posttitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></div>
        <div class="info5"><small>Born On:</small> <?php the_date('F jS, Y'); ?> <small>Subject:</small> <?php the_category(', '); ?></div>
        </div>
        <div class="notebookm">
        <div class="write">
        <?php the_content(''); ?></div>
        </div>
        <div class="notebookb"><?php comments_popup_link('Comment', 'Comment (1)', 'Comments (%)', '', __('Off')); ?> * <?php if(function_exists('wp_likes_render_post')) wp_likes_render_post();?></div>
        </div>
    
        <?php } elseif(in_category('random-thoughts') ) { ?>
        <div id="notebook" <?php the_ID(); ?>>
        <div class="notebookt"><div class="posttitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></div>
        <div class="info5"><small>Born On:</small> <?php the_date('F jS, Y'); ?> <small>Subject:</small> <?php the_category(', '); ?></div>
        </div>
        <div class="notebookm">
        <div class="write">
        <?php the_content(''); ?></div>
        </div>
        <div class="notebookb"><?php comments_popup_link('Comment', 'Comment (1)', 'Comments (%)', '', __('Off')); ?> * <?php if(function_exists('wp_likes_render_post')) wp_likes_render_post();?></div>
        </div>
    
        <?php } elseif(in_category('ksywbc') ) { ?>
        <div id="notebook" <?php the_ID(); ?>>
        <div class="notebookt"><div class="posttitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></div>
        <div class="info5"><small>Born On:</small> <?php the_date('F jS, Y'); ?> <small>Subject:</small> <?php the_category(', '); ?></div>
        </div>
        <div class="notebookm">
        <div class="write">
        <?php the_content(''); ?></div>
        </div>
        <div class="notebookb"><?php comments_popup_link('Comment', 'Comment (1)', 'Comments (%)', '', __('Off')); ?> * <?php if(function_exists('wp_likes_render_post')) wp_likes_render_post();?></div>
        </div>
    
    	<?php } else { ?>
        <div id="post" <?php the_ID(); ?>>
        <div class="posttop"></div>
        <div class="postmiddle">
          <div class="posttitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></div>
          <div class="info"><small>Born On:</small> <?php the_date('F jS, Y'); ?></div>
          <div class="info2"><small>Subject:</small> <?php the_category(', '); ?></div>
          <?php the_content('Read More???'); ?>
         </div>
        <div class="postbottom"><?php comments_popup_link('Comment', 'Comment (1)', 'Comments (%)', '', __('Off')); ?> * <?php if(function_exists('wp_likes_render_post')) wp_likes_render_post();?></div>
       </div>
    
       <?php } ?>
    
        <?php endwhile ?>
       <div id="navigation">
        <div class="alignleft"></div>
        <div class="aligncenter"><?php if (function_exists("kira_pagination")) {
        pagination($additional_loop->max_num_pages);
    } ?></div>
        <div class="alignright"></div>
        </div>
    
        <?php endif ?>
     </div>
    
     <?php get_footer(); ?>
    Thread Starter TotallyLost

    (@totallylost)

    Im just going to latch on to you for a sec. ??

    This is after:

    <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>

    right?

    cause I tried this and it was giving me a syntax error.

    BTW Thank you for dealing with me.

    Thread Starter TotallyLost

    (@totallylost)

    I have no problem with the possiblities of CSS… I can do that all day.. and HTML… My problem is implementing these different styles within the PHP loop for wordpress.

    has to be in the same folder though… same rules apply

    Kruncher,

    If you plan on developing a theme for anyone to use, especially one which will support language translation… then yes it would be best to write a custom rtl.css for that as well.

    Instead of imputing style.css like here:

    <link href=”style.css” rel=”stylesheet” type=”text/css” />

    you would imput the rtl.css

Viewing 6 replies - 1 through 6 (of 6 total)