go41

Re: why does the read more link of one post go to another! :: Reply by omerkhan01

von Joern am 20. Mai. 2010 | Keine Kommentare

http://wp-themes.der-prinz.com/wyntonmagazine/ is what the theme is supposed to look like with the posts showing on the frontpage of some categories selected.
On our blog, it is not coming up.
Here is the index.php file that the client has. It is so different than the one you get from the theme. That is after this.
Code:

<?php get_header(); ?>

<div id="spacer">
</div>

<div id="homecontent-top">

  <div id="homecontent-topleft" class="left">

    <div id="leadcontainer">

      <!-- LEAD ARTICLE -->

      <?php

        if ( function_exists( 'get_smooth_slider' ) ) {

     get_smooth_slider(); }

     ?>
        <?php while (have_posts()) : the_post(); ?>
        <?php endwhile; ?>

    </div><!--end leadcontainer-->

    <div id="homebottom"></div>

  </div><!--end homecontent-topleft-->

  <div id="homecontent-topright" class="right"><script type="text/javascript"><!--

google_ad_client = "pub-xyz8316778";

/* 200x200, created 5/17/10 */

google_ad_slot = "xyz529900";

google_ad_width = 200;

google_ad_height = 200;

//-->

</script>

<b />

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script><script type="text/javascript"><!--

google_ad_client = "pub-xyz316778";

/* 200x200, created 5/17/10 */

google_ad_slot = "xyz9900";

google_ad_width = 200;

google_ad_height = 200;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>
    <div id="hometop-rightcol"> </div>

  </div><!--end homecontent-topright-->

</div><!--end homecontent-top-->

<div class="clear"></div>
<div class="bottom-featured-wrapper">

<img src="http://ammazingseries.com/images/1266588720_twitter.png" alt="Follow us on Twitter" />

<td><img src="http://ammazingseries.com/images/1266588705_facebook.png" alt="Find us on Facebook" />

</div><!--END bottom-featured-wrapper-->
    <div class="bottom-left">
    <?php

   /*  if ( is_sidebar_active('region-bottom-left') || true ) { */

    if (true ) {

    echo '<div id="box-bottom-left">
' ;

    dynamic_sidebar('region-bottom-left');

    echo '
</div>' ;

    }

 ?>

    </div><!--end bottom-left-->

    <div class="bottom-middle">
        <?php

        if (true ) {

    echo '<div id="box-bottom-left">
' ;

    dynamic_sidebar('region-bottom-middle');

    echo '
</div>' ;

    }

   ?>

    </div><!--end bottom-middle-->

    <div class="bottom-right">
        <?php

        if (true ) {

    echo '<div id="box-bottom-left">
' ;

    dynamic_sidebar('region-bottom-right');

    echo '
</div>' ;

    }

   ?>

    </div><!--end bottom-right-->
<div style="clear:both;"> </div>

  <!--END CONTENT-->

<?php get_footer(); ?>

Actual index.php file.
Code:

<?php get_header(); ?>

<div id="homecontent-top">

  <div id="homecontent-topleft" class="left">

    <div id="leadcontainer">

      <!-- LEAD ARTICLE -->

      <div id="lead">

          <?php

// this is where the Lead Story module begins

   query_posts('showposts=1&cat=1'); //selects 1 article of the category with ID 1 ?>

          <?php while (have_posts()) : the_post(); ?>

          <div id="leadheader">

            <h3>

              <?php

   // this is where the name of the Lead Story category gets printed

   wp_list_categories('include=1&title_li=&style=none'); ?>

            </h3>

            <span class="leadmeta">

            <?php the_time(__('M jS, Y','wyntonmagazine')); ?>

            <?php _e('By','wyntonmagazine'); ?>

            <?php the_author_posts_link('namefl'); ?>

            </span> " rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title">

            <?php

// this is where the title of the Lead Story gets printed

   the_title(); ?>

             </div>

          " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';

// this is where the Lead Story image gets printed

   $values = get_post_custom_values("Leadimage"); echo $values[0]; ?>" alt="image" id="leadpic" />

          <?php

// this is where the excerpt of the Lead Story gets printed. It´s reccomended you use the optional excerpt in the write post panel.

   the_excerpt() ; ?>

          <div class="read-on"> " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">

            <?php _e('[ Continue reading... ]','wyntonmagazine'); ?>

             </div>

          <?php endwhile; ?>
       
      </div>

    </div>

    <div id="homebottom"></div>

  </div>

  <div id="homecontent-topright" class="right">

    <div id="hometop-rightcol">

      <?php

// "Featured articles" module begins

   query_posts('showposts=3&cat=1&offset=1'); ?>

      <?php while (have_posts()) : the_post(); ?>

      <div class="feature"> " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';

// this is where the custom field prints images for each Feature

   $values = get_post_custom_values("featured-article-image"); echo $values[0]; ?>" alt="image" /> " rel="bookmark" class="title">

        <?php

// title of the "featured articles"

     the_title(); ?>

         </div>

      <?php endwhile; ?>

    </div>

  </div>

</div>

<div class="clear"></div>



<div class="adsense-banner"> <img src="<?php bloginfo('template_url'); ?>/images/adverts/728x90.gif" alt="advert" /> </div>



<div id="homecontent-bottom">

  <div id="homeleftcol">

    <?php

// enter the IDs of which categories you want to display

$display_categories = array(3,4,);

foreach ($display_categories as $category) { ?>

    <div class="clearfloat">

      <?php query_posts("showposts=1&cat=$category");

       $wp_query->is_category = false;

      $wp_query->is_archive = false;

      $wp_query->is_home = true;

       ?>

      <div class="cat-head">

        <h3>">

          <?php

   // name of each category gets printed

     single_cat_title(); ?>

          </h3>

      </div>

      <?php while (have_posts()) : the_post(); ?>

      <?php

// this grabs the image filename

   $values = get_post_custom_values("home-category-image");

// this checks to see if an image file exists

   if (isset($values[0])) {

?>

      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="home-cat-img" src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("home-category-image"); echo $values[0]; ?>" alt="image" />

      <?php } ?>

      " rel="bookmark" class="title">

      <?php

// this is where title of the article gets printed

     the_title(); ?>

     

      <?php the_content_rss('', TRUE, '', 35); ?>

      <?php endwhile; ?>

    </div>

    <?php } ?>

  </div>

  <!--END LEFTCOL-->

  <div id="homemidcol">

    <?php

// enter the IDs of which categories you want to display

$display_categories = array(5,9);

foreach ($display_categories as $category) { ?>

    <div class="clearfloat">

      <?php query_posts("showposts=1&cat=$category");

       $wp_query->is_category = false;

      $wp_query->is_archive = false;

      $wp_query->is_home = true;

       ?>

      <div class="cat-head">

        <h3>">

          <?php

   // name of each category gets printed

     single_cat_title(); ?>

          </h3>

      </div>

      <?php while (have_posts()) : the_post(); ?>

      <?php

// this grabs the image filename

   $values = get_post_custom_values("home-category-image");

// this checks to see if an image file exists

   if (isset($values[0])) {

?>

      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="home-cat-img" src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("home-category-image"); echo $values[0]; ?>" alt="image" />

      <?php } ?>

      " rel="bookmark" class="title">

      <?php

// this is where title of the article gets printed

     the_title(); ?>

     

      <?php the_content_rss('', TRUE, '', 35); ?>

      <?php endwhile; ?>

    </div>

    <?php } ?>

  </div>

  <!--END MIDCOL-->

  <div id="homerightcol">

    <?php

// enter the IDs of which categories you want to display

$display_categories = array(6,8);

foreach ($display_categories as $category) { ?>

    <div class="clearfloat">

      <?php query_posts("showposts=1&cat=$category");

       $wp_query->is_category = false;

      $wp_query->is_archive = false;

      $wp_query->is_home = true;

       ?>

      <div class="cat-head">

        <h3>">

          <?php

   // name of each category gets printed

     single_cat_title(); ?>

          </h3>

      </div>

      <?php while (have_posts()) : the_post(); ?>

      <?php

// this grabs the image filename

   $values = get_post_custom_values("home-category-image");

// this checks to see if an image file exists

   if (isset($values[0])) {

?>

      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="home-cat-img" src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("home-category-image"); echo $values[0]; ?>" alt="image" />

      <?php } ?>

      " rel="bookmark" class="title">

      <?php

// this is where title of the article gets printed

     the_title(); ?>

     

      <?php the_content_rss('', TRUE, '', 35); ?>

      <?php endwhile; ?>

    </div>

    <?php } ?>

  </div>

  <!--END RIGHTCOL-->

  <!--END CONTENT-->

</div>

<?php get_footer(); ?>

How can I make the posts appear on the frontpage and categories show. I have tried everything and nothing works?
Also, if you click on About, and click on the recent posts links, you will see that they do not properly link to their corresponding pages. I tried everything from reinstalling the index.php/header.php files and no luck.
This is a tough one for me and I need your help partner.
Omar

(von: omerkhan01)

Hier noch 4 weitere Ergebnisse dieses Threads:

why does the read more link of one post go to another

20. Mai. 2010 (von: omerkhan01)

Just wondering if you can take a look at this siteThere are three categoriesarchiveseverybody talking aboutammazing reviewsarchivesWhen you click on an individual post within the category it goes to the top one always.It is not going to the right post…

Re: why does the read more link of one post go to another! :: Reply by master

20. Mai. 2010 (von: master)

hi Omar, this is Joern, after your first post I looked at that site but even didn't find the three categories you mention. you list archives twice up there, is that a name for a category? It might be WordPress…

Re: why does the read more link of one post go to another! :: Reply by omerkhan01

20. Mai. 2010 (von: omerkhan01)

Joern quick help, I can't change the bg color on my blog. I tried putting in the body divin CSS background-color:black;and it doesn't workI also tried putting in the index.php file<body bgcolor="black"> and it won't work.Can you advise!Omar Weiterlesen →

Re: why does the read more link of one post go to another! :: Reply by Joern

21. Mai. 2010 (von: Joern)

in your maaximum seduction blog the background is black? Where should be more black?____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: