Beste SD'ers,
Ben sinds vanmiddag begonnen met het opzetten van een Wordpress website, dit verloopt allemaal goed tot ik tegen twee twee problemen aanloop.
Mijn website, http://tinyurl.com/yfgrzoe , laat het "Featured Article" en "Random Posts" plaatje niet zien.
Terwijl de bij de posts het plaatje wel te zien is!
Code van Featured Article:
Code van Random Posts:Code:<!--Begin Feautred Section--> <div id="featured-div"> <!--Begin Feautred Article--> <div id="feautred-article"> <?php $my_query = new WP_Query('category_name=Featured Articles&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="thumbnail-div-featured"><a href="<?php the_permalink() ?>"> <img height="175px" width="175px" style="border: none;" alt="featured article" src="<?php echo get_post_meta($post->ID, "Featured", true); ?>" /></a> </div> <div class="featured-content"> <span class="titles-featured"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span> <?php the_content_limit(300, ""); ?> <div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></div> </div> <?php endwhile; ?> </div> <!--Begin Feautred Article-->
Code:<!--Begin Random Articles--> <script type="text/javascript" > $(function() { $("#scrollable").scrollable({horizontal:true,size: 4}); }); </script> <div id="scrollable"> <span class="blue-titles">random posts</span> <div class="navi"></div> <a class="prev"></a> <div class="items"> <?php $my_query = new WP_Query('orderby=rand&showposts=10'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" style="background-image: url(<?php echo get_post_meta($post->ID, "Random", true); ?>);"></a> <?php endwhile; ?> </div> <a class="next"></a> <div style="clear: both;"></div> </div> <img src="<?php bloginfo('template_directory'); ?>/images/rounded-bottom.gif" alt="bottom" style="float: left;" /> <!--End Random Articles-->
- Wordpress code
-
13-03-2010, 18:23 #1
- Berichten
- 1.174
- Lid sinds
- 16 Jaar
Wordpress code
-
13-03-2010, 18:28 #2
- Berichten
- 419
- Lid sinds
- 16 Jaar
Plaatje wordt niet geladen. <imgheight="175px" width="175px" style="border: none;" alt="featured article" src="" /></a>
Maak je gebruik van een plug in? Zo ja welke.
<img height="175px" width="175px" style="border: none;" alt="featured article" src="<?php echo get_post_meta($post->ID, "Featured", true); ?>" /></a>
Ik denk dat wat onderstreept is, niet de juiste code is om een plaatje te laden wat bij dat artikel hoort.Laatst aangepast door R. Janssen : 13-03-2010 om 18:34
-
13-03-2010, 20:13 #3
- Berichten
- 1.174
- Lid sinds
- 16 Jaar
Plaatje wordt niet geladen. <imgheight="175px" width="175px" style="border: none;" alt="featured article" src="" /></a>
Maak je gebruik van een plug in? Zo ja welke.
<img height="175px" width="175px" style="border: none;" alt="featured article" src="<?php echo get_post_meta($post->ID, "Featured", true); ?>" /></a>
Ik denk dat wat onderstreept is, niet de juiste code is om een plaatje te laden wat bij dat artikel hoort.
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic