Jump to content

biggupp

New Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

biggupp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://www.ahy4life.com/resources.php In the middle right column in the Promotions section, the 'Continue reading ->' link is linked to the wrong page. How can I correct this? TIA ' <div id="globalcontent"> <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=8'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2 style="color:#FFFFFF; background:url(http://ahy4life.com/images/right_top_header.jpg) no-repeat left top;"><center><a href="promos.php"><?php the_title(); ?></a></center></h2> <div> <style type="text/css"> div a{ color:#FFFFFF; } </style> <?php the_excerpt(); ?> <?php endwhile; ?> </div> </div> <div><img src="images/right_top_footer.jpg" alt="" /></div> <div style="background-color: #FFF;"></div> '
  2. http://www.ahy4life.com/update_20121008/promos.php right column, center section How do I mod/replace the code below to pull an excerpt from a specific category so that the title populates the top and the excerpt populates the bottom as in <http://www.ahy4life.com/events.php>? " <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=8'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2><center><?php the_title(); ?></center></h2> <?php the_excerpt(); ?> <?php endwhile; ?> "
  3. Most recent code: ' <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=5'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2><center><a href="<?php the_permalink() ?>"><?php the_title(); ?></center></a></h2> <?php the_content(); ?> <?php endwhile; ?> ' Error reporting, which I did enable, does not show anything. Category ID = 5 does exist in the sql table.
  4. Sorry. Doesn't seem to work. Opening the page reveals nothing being posted to the targeted area, Where I added "Post for new_event ID=5 to appear here."
  5. OK, I am trying to set up query using the code below for <http://www.ahy4life.com/update_20121008/events.php> for the category 'new_event' cat=5, but still not working. ' <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=5'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2><center><a href="<?php the_permalink() ?>"><?php the_title(); ?></center></a></h2> <?php the_content(); ?> <?php endwhile; ?> '
  6. This is a humble request for help, as I am stumped. http://www.ahy4life.com/update_20121008/ The above is a testing site. I need to add additional categories but cannot seem to fathom precisely the proper code for a specific section on each page. An rtfm has been unsuccessful. I tried using query, also without success. For example, if I wish to display the title and then the content from a post from 'events', which is ID=4, in the code below: ' <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><center><?php the_title(); ?></center></h2> <!-- Display the Post's Content in a div box. --> <?php the_content(); ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> ' what is the proper code?
  7. Hmmm...Thanks. How then might I call a specific flickr 'set' ?
  8. This is the error: Warning: Invalid argument supplied for foreach() in /home1/ahyfouli/public_html/test2/press.php on line 359 The CSS I use for this is: #gallery { position: relative; float: left; width: 600px; padding: 0px 15px 10px 15px; } .photos { position: relative; float: left; display: block; padding-bottom: 10px; } .photosets { clear: both; padding-top: 1px; } .photosets h2 { color: #000; }
  9. http://ahy4life.com/test2/press.php I am following the tutorial below: http://www.adambate.com/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/ I am encountering errors when I introduce the code below. Not sure what is causing it. The flickr photo set is named 'AHY' . php and js <CODE> <script type="text/javascript" src="photos/lightbox2.05/js/prototype.js"></script> <script type="text/javascript" src="photos/lightbox2.05/js/scriptaculous.js?load=effects,builder"></ script> <script type="text/javascript" src="photos/lightbox2.05/js/lightbox.js"></script> <?php require_once("photos/phpFlickr-3.1/phpFlickr.php"); $f = new phpFlickr("b16911dd0ec59f16ed66e80711edbdaf"); // API $user = "ahy4l@yahoo.com"; $ph_sets = $f->photosets_getList($user); ?> </CODE> <CODE> <!-- Photo Gallery --> <div id="gallery"> <?php foreach ($ph_sets['AHY'] as $ph_set): ?> <div class="photosets"> <p><h2><?php print $ph_set['title']; ?></h2></p> <?php $photoset_id = $ph_set['id']; $photos = $f->photosets_getPhotos($photoset_id); foreach ($photos['AHY']['photo'] as $photo): ?> <div class="photos"> <a rel="lightbox[]" href="<?= $f->buildPhotoURL($photo, 'medium') ?>" title="<?= $photo['title'] ?>"> <img src="<?= $f->buildPhotoURL($photo, 'square') ?>" alt="<?= $photo['title'] ?>" title="<?= $photo['title'] ?>" /> </a> </div> <?php endforeach; ?> </div> <?php endforeach; ?> </div> The CSS I use for this is: #gallery { position: relative; float: left; width: 600px; padding: 0px 15px 10px 15px; } .photos { position: relative; float: left; display: block; padding-bottom: 10px; } .photosets { clear: both; padding-top: 1px; } .photosets h2 { color: #000; } </CODE>
×
×
  • 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.