truthlighthouse
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Video showing in FF but not IEscratch that. Solved it. I messed up the embed code. :-/
Forum: Plugins
In reply to: Plugin for forums that allow ads & pollsI should point out that if necessary, I can do without the polls. But an absolute must is to have it be able to allow me to add whatever I need to the sidebar and not allow users to login to the dashboard.
Forum: Plugins
In reply to: randome posts at homepagRandom Posts is a plugin that works that way. I have had trouble having it do exactly what I want but it does indeed randomize the posts. Another way is to go to index.php and find the line that
<?php query_posts("showposts=1); ?>
or something like that and change it to<?php query_posts("showposts=1&orderby=rand"); ?>
. All that needs to be added is&orderby=rand
. Again that does not always work but it worked on one of my blogs.Forum: Plugins
In reply to: Random posts in Gabfire’s free WordPress Magazine themeThanks so much for your help! I appreciate it. I apologize about the bump. I did not know about that rule.
As for the code you suggested, where exactly would I put that? My guess is I would replace the entire portion that pertains to the middle column in my index.php page. However, I then thought it could be that I need to replace only a portion of it. In fact, I was thinking that the part that starts with
<?php query_posts('cat=13,14,15,16,17,18,19,20,21,29,30,22,23,24,25,28,26,27&showposts=5'); ?>
and that ends with
<div class="details">
However, I am not certain so I was hoping you might be able to help a bit further. I was concerned about going in there and changing things too much before having a general idea.
Thanks again!
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] Cant shows videos on homepageawesome! That worked! You rock!
Thanks so much!
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] Cant shows videos on homepageI am trying to have youtube videos show up the home page of my wordpress website. I am using the Gabfire Magazine theme. I have installed the plugin Viper’s Video Quicktags. However before I installed that, I could put the embedded video into a post and it would not show up the home page but instead would show up when the user visited the actual post. So to attempt to rectify that, I installed the Viper Quicktags plugin. Now it has a parse error that shows up and that is on the home page and the actual post. I may not have installed it correctly. My header contained
<?php wp_head();?>
but my footer did not contain<?php wp_footer();?>
so I added it arbitrarily to a point in there. I think that might be where I messed up. Below is the footer code:<!-- /if you are going to place a google analytics or other track service snippet, pate it here --> <?php wp_footer();?> <div id="footer"> <a href="https://www.magazine-themes.com/">WP-Magazine</a> by <a href="https://www.gabfire.com/">Gabfire</a> Brought to you by <a href="https://www.playstation4communtiy.com">Playstation 4</a>, <a href="https://www.ps3-spiele-portal.de/">PS3</a> and <a href="https://www.ubiquityhosting.com">Linux Web Host</a> </div> </body></html>
Below is the header code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11"> <title> <?php bloginfo('name'); ?> <?php if(is_home()) { ?> - <?php bloginfo('description'); ?> <?php } ?> <?php if(is_single()) { ?> <?php } ?> <?php wp_title(); ?> <?php if(is_404()) { ?> - 404 Error! Page Not Found <?php } ?> <?php if(is_search()) { ?> - Search Results for: <?php echo wp_specialchars($s, 1); ?> <?php } ?> </title> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <style type="text/css" media="screen"> @import url( <?php bloginfo('stylesheet_url'); ?> ); </style> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/p7exp.js"></script> <!--[if lte IE 7]> <style>#menuwrapper, #p7menubar ul a {height: 1%;} a:active {width: auto;} </style> <![endif]--> <?php if(!is_home() ) { ?> <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('template_url'); ?>/print.css" /> <?php } ?> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_get_archives('type=monthly&format=link'); ?> <?php wp_head(); ?> </head> <body> <div id="wrapper"> <!-- Header --> <div id="header"> <!-- Logo --> <div id="headerleft"> <h1><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1> </div> <!-- Searchbox and date --> <div id="headerright"> <script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <!-- Header Navigation --> <div id="navigation"> <ul id="p7menubar"> <li<?php if(is_home() || is_404() || is_single() || is_category() || is_day() || is_month() || is_year() || is_search() ) { ?> class="current_page_item"<?php } ?>><a href="<?php bloginfo('home'); ?>">Home</a></li> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> <ul id="feeds"> <li><a href="feed:<?php bloginfo('rss2_url'); ?>">Entries <span class="rss">(RSS)</span></a></li> <li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comments <span class="rss">(RSS)</span></a></li> </ul> <div style="clear:both"></div> </div> </div> <!-- /Header -->
Below is the section of index.php that I need the video to show up on:
<!-- Middle Column --> <div id="midcolumn"> <h2>Latest News</h2> <!-- Loop for latest news --> <?php $oddentry = 'class="gray" '; ?> <?php query_posts('cat=1,26,35,15,23,27,24,25,13&showposts=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <img src="<?php echo get_post_meta($post->ID, "Center Thumbnail", true);?>" /> <div <?php echo $oddentry; ?>> <div class="midcolumnpost"> <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <?php the_excerpt_reloaded(30, '<img><a>', 'content', false, 'More...', true);?> <div class="details"> <?php the_time('F j, Y'); ?> | <?php comments_popup_link(__('Leave comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php echo get_permalink(); ?>" title="Read More">Read More</a> </div> </div> </div> <?php /* Changes every other post to a different class */ $oddentry = ( empty( $oddentry ) ) ? 'class="gray" ' : ''; ?> <!-- End of Loop for middle column -->
Essentially if you look at the home page of https://www.reelhits.com, the center column is where I want the video to show up. I just want the video and the post title.
Thanks for any help you can provide.