i am not sure what I have done but I am very very new to php I was able to get the thumbnails to show up on my home page . but I wanted to create a landing page that has all of the same categories post on them which is not a problem I was able to create the page but now the thumbnails wont show up. here is the link to the homepage.... http://www.focusedmag.com and here is the link to one of the landing pages ... http://wwww.focusedmag.com/?page_id=9 I have posted the PHP code that used below If anyone can answer this that would be the greatly appreciated
<!--p $recent = new WP_Query("cat=7&showposts=10"); while($recen-->have_posts()) : $recent->the_post();?>
<!--p if( get_post_meta($pos-->ID, "thumbnail", true) ): ?>
<a rel="bookmark" href="http://focusedmag.com/wp-admin/%3C?php the_permalink() ?>"><img style="float:left;margin:0px 10px 0px 0px;" alt="" />ID, "thumbnail", true);?>" /> alt="<!--p the_title();-->" /></a>
<!--p else:-->
<a rel="bookmark" href="http://focusedmag.com/wp-admin/%3C?php the_permalink() ?>"><img style="float:left;margin:0px 10px 0px 0px;" src="http://focusedmag.com/wp-admin/%3C?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<!--p endif;-->
<strong><a rel="bookmark" href="http://focusedmag.com/wp-admin/%3C?php the_permalink() ?>"><!--p the_title();--></a></strong>
<!--p the_content_limit(80, "");-->
<!--p endwhile;-->
<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
<strong><a rel="bookmark" href="http://focusedmag.com/?page_id=9">Read More Posts From This Category</a></strong>
New to PHP PLEASE HELP!!!!!!!
Moderator: General Moderators
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: New to PHP PLEASE HELP!!!!!!!
Code: Select all
<?php
/*
this is what PHP code looks like
*/
?>- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: New to PHP PLEASE HELP!!!!!!!
My first post with BB code disabled...
[syntax=php]<?php
/*
this is what PHP code looks like
*/
?>[/syntax]
[syntax=php]<?php
/*
this is what PHP code looks like
*/
?>[/syntax]