• Resolved Jeewan

    (@jeewan)


    1. Deleted the ,htaccess file by mistake
    2. The home page would come but not any other link from the home page
    3. Read support topics and updated the permalinks from settings
    4. Now it goes one step further, posts open but only with the title, no content…

    Please Help

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    If this is your site:
    https://www.yeeeeee.com/

    Then the single post pages stop early for some reason. I’d say you have some kind of broken PHP code in your theme.

    Thread Starter Jeewan

    (@jeewan)

    Then the single post pages stop early for some reason. I'd say you have some kind of broken PHP code in your theme.

    Thanks, anything that I can do myself…please suggest if known

    Thread Starter Jeewan

    (@jeewan)

    Anyone who can help me please…

    Bumping will not get you help, for sure.
    And being able to see only a big “Maintenance Mode” announcement… nobody has an idea what are you complianing about.

    Did you try switching to another theme, like the default or classic?

    Thread Starter Jeewan

    (@jeewan)

    I am sorry I was desperate, yes i tried switching themes, once i switch, the posts open the first time, then if i try it again i can only see the title of the post. Deleted and uploaded theme, doesn’t work…I have also removed maintenance mode…

    I can see all your posts on the index page – there is something wrong with your single.php template file. It just stops displaying the content: there must be some bad code in it.

    Thread Starter Jeewan

    (@jeewan)

    thank you…is there anyway i can rectify that…replace it or…

    Thread Starter Jeewan

    (@jeewan)

    I deleted the theme and switched to classic, but doesn’t help, there is no single.php file now

    Thread Starter Jeewan

    (@jeewan)

    reinstalled the theme, this is the code in my single post.php…

    <?php get_header(); ?>

    <div id=”centercol” class=”grid_10″>

    <?php if (have_posts()) : ?>

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

    <div class=”post box” id=”post-<?php the_ID(); ?>”>

    <h2 class=”singleh2″>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></h2>
    <div class=”date-comments”>
    <p class=”fl”><?php the_time(‘D, M j, Y’); ?></p>
    <p class=”fr”><?php the_category(‘, ‘) ?></p>
    </div>

    <div class=”entry”>
    <?php if ( get_post_meta($post->ID,’image’, true) ) { ?> <!– DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD –>

    ” href=”<?php echo get_post_meta($post->ID, “image”, $single = true); ?>” rel=”bookmark”>
    <img src=”<?php echo bloginfo(‘template_url’); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, “image”, $single = true); ?>&h=100&w=100&zc=1&q=80″ alt=”<?php the_title(); ?>” class=”fl” style=”margin-top:5px;” />

    <?php } ?>

    <?php the_content(‘<span class=”continue”>Continue Reading</span>’); ?>
    </div>

    <?php the_tags(‘<span class=”tags”>’, ‘, ‘, ‘</span>’); ?>

    <div class=”author_info”>
    <h3>This post was written by:</h3>

    <?php
    // Determine which gravatar to use for the user
    $email = get_the_author_email();
    $grav_url = “https://www.gravatar.com/avatar.php?gravatar_id=&#8221;.md5($email). “&default=”.urlencode($GLOBALS[‘defaultgravatar’] ).”&size=48″;
    $usegravatar = get_option(‘premiumnews_gravatar’);
    ?>

    <?php if ( $usegravatar ) { ?><span class=”author_photo”><img src=”<?php echo $grav_url; ?>” width=”48″ height=”48″ alt=”” /></span><?php } ?>
    <p><?php the_author_posts_link(); ?> – who has written <?php the_author_posts(); ?> posts on /”><?php bloginfo(‘name’); ?>.</p>
    <p><?php the_author_description(); ?> <br style=”clear:both;” /></p>
    <p class=”author_email”>“>Contact the author</p>
    </div>

    </div><!–/post–>

    <div id=”comments” class=”box2″>
    <?php comments_template(); ?>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
    </div>

    <?php endif; ?>

    </div><!–/centercol–>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘.htaccess problem not getting sorted’ is closed to new replies.