Jump to content

joshuag

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

joshuag's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, My PHP skills are pretty much nil, but I'm a hardcore code monkey. One of my clients wordpress websites has an image slider with thumbnail navigation underneath. The navigation is only displaying 5 thumbnails even though I've fed the array 6 of them. Can you help me solve to display all 6 thumbnails? Here is where I've fed the array by post id : $featured_posts = new WP_Query(array('post_type' => 'page', 'post__in' => array(2,31,61,75,243,1124), 'orderby' => 'menu_order', 'order' => 'DESC')); Here is the loop that gets the data for the nav. if(!empty($instance['show_slider_nav'])) : $slider_nav .= '<li><a href="#" class="nav-thumb-wrapper">'.genesis_get_image(array('format'=>'html', 'size'=>'Slider Thumbnail', 'attr' => array('class' => 'nav-thumb-image'))).'</a></li>'; endif; The data is then output with a simple : echo '<div id="slider-nav">'; echo '<a class="nav-prev" href="#">Previous</a>'; echo '<a class="nav-next" href="#">Next</a>'; echo '<ul class="nav-thumbs">'; echo $slider_nav; echo '</ul></div>'; Do you need more information? Thank you for your help!
  2. Hey guys, I've got this website: http://twopersonhottubs.net/salt-water-hot-tubs As you can see, on this page there is a google adsense ad. I'd really like the top of this ad to be lined up with my content. When I look at it in firebug, there are white gaps both in the div container holding the ad, and in the content box around it. Does anyone know how to fix this?
  3. That did it! Thanks, you guys are saints! PROBLEM SOLVED!
  4. Still the same error. I added the } as you can see in the code below. <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> } <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?>
  5. I know I need to close something somewhere but I'm just a newb code monkey and can't figure it out! Anyone with a keen eye for code that could offer a solution? Heres my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php wp_title(' '); ?> <?php if(wp_title(' ', false)) { echo ' : '; } ?><?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!--[if IE]> <style type="text/css">@import url('<?php bloginfo('template_directory'); ?>/ie.css');</style> <![endif]--> <?php wp_head(); ?> <meta name="google-site-verification" content="nktAdcdWBddL6dSTKuWFzHHCk6rIX1vpIg4W4Ok68bI" /> </head> <body> <div id="wrapper"> <div id="header"> <img align = "left" src="http://thefulltank.com/wp-content/themes/sandfish_v2/images/logo.gif"> <img align = "left" src ="http://thefulltank.com/images/spacer.jpg"> <?php if (!(current_user_can('level_0'))){ ?> <h4>Member Sign In</h4> <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> <label for="log">User Name</label><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="10" /> <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label> <p><label for="pwd">Password </label><input type="password" name="pwd" id="pwd" size="10" /> <input type="submit" name="submit" value="Sign In!" class="button" /></p> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> </form> <a href="<?php echo get_option('home'); ?>/wp-register.php"><i>Register</i></a> <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword"> Recover password</a> <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.