Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter tom5436

    (@tom5436)

    figured it out if anyone else has the same issue. wp-wiki doesnt run right with role scoper and similar plugins

    Thread Starter tom5436

    (@tom5436)

    anyone?

    It explains how on the plugins site

    Forum: Fixing WordPress
    In reply to: query_posts
    Thread Starter tom5436

    (@tom5436)

    ya I end the loops before starting the next one. Here are the loops

    <?php query_posts('r_sortby=highest_rated');?>
    <?php $recent = new WP_Query("showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <img src="<?php echo get_post_meta($post->ID, "thumbnail", true);?>" width="70">
    					<?php the_excerpt();?>
    <a href="<?php the_permalink()?>">Read More</a><div style="clear:both;"></div>
    					<?php endwhile; ?>
    <?php query_posts('r_sortby=highest_rated');?>
                                  <?php $recent = new WP_Query("cat=13&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    					<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    <object width="300" height="246"><param name="movie" value="https://www.youtube.com/v/xLf_kvfguzE&hl=en&fs=1&rel=0&border=1"></param><param name="allowFullScreen" value="true"></param><embed src="<?php echo get_post_meta($post->ID, "Url", true);?>" type="application/x-shockwave-flash" allowfullscreen="true" width="300" height="246"></embed></object>
    <?php the_excerpt();?>
    <a href="<?php the_permalink()?>">Read More</a><div style="clear:both;"></div>
    					<?php endwhile; ?>
    query_posts('r_sortby=highest_rated');?>
                                  <?php $recent = new WP_Query("cat=34&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    					<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php echo get_post_meta($post->ID, "Hero_Name", true);?></a></b>
    <img src="<?php echo get_post_meta($post->ID, "thumbnail", true);?>" width="70">
    					<?php the_excerpt();?>
    <a href="<?php the_permalink()?>">Read More</a><div style="clear:both;"></div>
    					<?php endwhile; ?>
    <h2>Recent Posts</h2>
    <?php query_posts('orderby=date');?>
                           <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="recentpost"><hr width="600">
                            <img src="thumbnails/<?php echo get_post_meta($post->ID, "Thumbnail", true);?>">
                            <div class="leftrecent">
                            <h3><?php the_title();?></h3>
                            <?php the_excerpt();?><a href="<?php the_permalink()?>">Read More...</a>
                                  </div>
                            <div class="rightrecent">
                                  <span>Published: </span><?php the_time('F jS, Y') ?>
                                  <span>Author: </span><?php the_author() ?>
                                  <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
                                  <?php if(function_exists('the_views')) { the_views(); } ?>
                                  <span>Category: </span><?php the_category(', ');?>
                                  </div>
                            </div>
                            <?php endwhile; ?>
                            <?php endif; ?>

    Forum: Fixing WordPress
    In reply to: query_posts
    Thread Starter tom5436

    (@tom5436)

    I have a featured story which I have a query post on it to show the highest rated post. And I also have recent posts at the bottom of the home page which I use a query post to order by date. My featured story’s query is messing with my recent post and ordering it by highest rated

    Forum: Themes and Templates
    In reply to: template tags?
    Thread Starter tom5436

    (@tom5436)

    Warning: Cannot modify header information - headers already sent by (output started at /home/champoli/public_html/sitedev/wp-content/themes/revolution_news-21/page_stories.php:7) in /home/champoli/public_html/sitedev/wp-content/plugins/sidebarLogin.php on line 12

    Ok so I got the pages working some what now I get this error?

    Forum: Themes and Templates
    In reply to: template tags?
    Thread Starter tom5436

    (@tom5436)

    Thanks Handysolo that article had what i needed

    Forum: Themes and Templates
    In reply to: template tags?
    Thread Starter tom5436

    (@tom5436)

    hard code what?

    Thread Starter tom5436

    (@tom5436)

    I changed it to that code and still its not showing ?

    Or you could both use random posts plugin.

    haha very good idea hotkee thanks

    I am looking to do the same thing with a video. I was thinking use the php rand function to create a random number that would then go into the wp_query(“cat=2&post=RANDOM NUMBER HERE“); but I’m not an expert at all.

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