Forums

Category problems (10 posts)

  1. grinch007
    Member
    Posted 3 years ago #

    When I right a new post in the other news category it shows up fine but, when I click on the read more section it takes me to the last post I entered. Need help please. View the test site here: http://www.shannonwheelerdesign.com

    All the posts in the section take me to the same post

  2. Xamataca
    Member
    Posted 3 years ago #

    Post your loop code, it seems you handcoded that in your theme index.php and forgot to delete it.
    <?php the_content('more_link_text', strip_teaser, 'more_file'); ?>
    http://codex.wordpress.org/Template_Tags/the_content

  3. grinch007
    Member
    Posted 3 years ago #

    I didnt code this I had psd2html do it and cannot get support from them, where would I put this line of code at?

  4. Xamataca
    Member
    Posted 3 years ago #

    It is usually at:
    wp-content/themes/"yourtheme"/index.php
    look for the_content() tag.
    Should put <?php the_content('Read more'); ?>

    Btw, are you using a plugin called recent-post in your blog?

  5. Anonymous
    Unregistered
    Posted 3 years ago #

    Dear client,

    we are sorry for our delay with the reply.
    There were technical problems with our ISP preventing us to communicate with you using the Client Area of psd2html.com today. The problems are almost resolved now and we will make sure to assist you first thing tomorrow according to our working schedule: 10:00am - 6:00pm GMT / 5:00am - 1:00pm EST

    Thanks,
    PSD2HTML Support

  6. grinch007
    Member
    Posted 3 years ago #

    no im not using that plug-in do i need it?

  7. Xamataca
    Member
    Posted 3 years ago #

    No, I asked it because plugins usually add more templates so it could be one of them... just paste here the line where it is <?php the_content('Read more'); ?> in your theme index.php

  8. grinch007
    Member
    Posted 3 years ago #

    Here is my index file code, what do I need to take out and what do I need to add?
    Thanks.

    <?php get_header(); ?>
    <?php //category variables
    $cat1 = 1;
    $cat2 = 5;
    $cat3 = 4;

    $post_cat1 = get_posts(array('numberposts' => 1,'category' => $cat1));
    $descr_cat1 = get_the_category_by_ID($cat1);
    $post_cat2 = get_posts(array('numberposts' => 1,'category' => $cat2));
    $descr_cat2 = get_the_category_by_ID($cat2);
    $post_cat3 = get_posts(array('numberposts' => 3,'category' => $cat3));
    $descr_cat3 = get_the_category_by_ID($cat3);

    ?>
    <div id="main">
    <div class="column">
    <?php get_sidebar(); ?>
    </div>
    <div class="content">
    <div class="top">
    <div class="inner">
    <h3><span><?php echo $descr_cat1 ?></span></h3>
    </div>
    <div class="inner-column">
    <h3><span><?php echo $descr_cat3 ?></span></h3>
    </div>
    </div>
    <div class="inner-content">
    <div class="inner">
    <div class="block">
    <?php print $post_cat1[0]->post_content; ?>
    </div>
    <div class="block">
    <h3 class="bord"><span><?php echo $descr_cat2 ?></span></h3>
    <?php print $post_cat2[0]->post_content; ?>
    </div>
    </div>
    <div class="inner-column">
    <?php if(!empty($post_cat3))
    {
    foreach($post_cat3 as $col_post)
    {
    setup_postdata($col_post);
    $exc = get_the_excerpt();
    echo '<p>'.$exc.'guid.'">Read more.</p>';
    }
    }
    ?>
    </div>
    </div>
    </div>
    </div>
    <?php get_footer(); ?>

  9. Xamataca
    Member
    Posted 3 years ago #

    ops, it seems a heavy php modified theme :/
    I can't help you here, maybe someone with a strong knowledge of php and wp could help you...

  10. grinch007
    Member
    Posted 3 years ago #

    Thanks for all your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags