• Resolved wpfiend

    (@wpfiend)


    Hello experts:

    Relatively new to all this.

    The code for displaying the Categories are present as I can see it in the original core code but the Category names themselves are not showing up. This is true for the main index page, the individual posts, etc.

    Any help will be greatly appreciated.

    –wpf.

Viewing 8 replies - 1 through 8 (of 8 total)
  • a link to your site would help.

    maybe the category output is suppressed by some css styles;
    check if the output is in the html code in the browser.

    what core code – do you mean the theme files index.php and single.php etc ?
    theme?

    Thread Starter wpfiend

    (@wpfiend)

    alchymyth,

    Thanx for your response.

    I checked and the output is not in the HTML code in the browser.

    When I mentioned core files, I meant any and all the files that make up the blog.

    I can see the line of code that pulls the category names on the main index page but when it displays it is as if that line of code is being skipped. The categories are not showing up on any of the pages, the main index page, the single post page, the category listings page, etc.

    Any ideas?

    Thanx,

    –wpf.

    a link to your site would help.

    to check, if a plugin might be causing this, disable all plugins, and when this solves the problem, re-activate them one after the other to see which one is causing it.

    also, switch to the default theme, to see if this is a theme related issue.

    Thread Starter wpfiend

    (@wpfiend)

    Hello:

    Disable all plugins (I had 2) and went back to default theme. Still nothing.

    Below is the code for my Main Index Page.:

    <?php get_header(); ?>
    
    <div id="content">
    
    <h2 class="title">Latest Ramblings</h2>
    
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    			<small>by <?php the_author() ?> ~ <?php the_time('F jS, Y') ?> <?php edit_post_link('(edit)'); ?></small>
    
    			<div class="entry">
    				<?php the_content('Continue reading &raquo;'); ?>
    			</div>
    
    			<p class="postmetadata">Filed under: <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    			<div class="navigation">
    				<div class="alignleft"><?php next_posts_link('&larr; Previous Entries') ?></div>
    				<div class="alignright"><?php previous_posts_link('Next Entries &rarr;') ?></div>
    			</div>
    
    		<?php else : ?>
    
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    </div>
    
    <?php include(TEMPLATEPATH."/left.php");?>
    <?php include(TEMPLATEPATH."/right.php");?>
    
    <?php get_footer(); ?>

    Seems like the Categories SHOULD be pulled but it is not happening.

    –wpf.

    Thread Starter wpfiend

    (@wpfiend)

    Hi:

    Here is the address to the blog: https://tinyurl.com/2ady3j8

    It does not show the Category, or the person who is made the post.

    Any help will be greatly appreciated.

    Regards,

    –wpf.

    thanks for the link – at least it gave me the name of the theme; it also made it clear that the code you posted did not display the front page.
    i downloaded the theme; and contrary and confusingly to the file the you posted (index.php), both single.php and home.php (the template that actually shows the front page) both have no code to show categories;

    check for yourself, and maybe edit the files and add the code that you found in index.php.

    single.php for instance:

    <?php get_header(); ?>
    
    	<div id="content">	
    
    	<h2 class="title"><?php the_title(); ?></h2>
    
      	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    			<h3>by <?php the_author() ?> | <?php the_time('F jS, Y') ?></h3>
    
    			<div class="entry">
    				<?php the_content('<p>Continue reading &raquo;</p>'); ?>
    			</div>
    		</div>
    
    		<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    	<p>Sorry, no posts matched your criteria.</p>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php include(TEMPLATEPATH."/left.php");?>
    <?php include(TEMPLATEPATH."/right.php");?>
    
    <?php get_footer(); ?>

    Thread Starter wpfiend

    (@wpfiend)

    alchymyth:

    Thanx for your help. That was indeed it. Since I am relatively new to this I thought Main Index Page was indeed that…..[:0)

    It works perfectly now.

    So what is the purpose of the Main Index Page template??

    Thanx again,

    –wpf

    So what is the purpose of the Main Index Page template??

    it is the requirement for a theme to have an index.php; however, i have no idea, why this one was fully programmed and so different; particular, as the theme had most, if not all of the most common template files.

    sometimes themes use home.php, but they have a virtually empty index.php, which at least makes things more transparent.

    main thing is – problem solved – time to find a new one ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Categories are not showing up under the posts’ is closed to new replies.