Viewing 2 replies - 1 through 2 (of 2 total)
  • An easy way to find out would be to switch to the default theme 2012 and see what happens then. If your post show up (which I’m 99% will) then the theme is responsible and you’ll need to look at your theme files.

    Thread Starter bobbyandbaby

    (@bobbyandbaby)

    @christine Rondeau: Thank you, I do find my post content showing up in the default theme. I wonder if it’s something to do with my single.php.

    <?php
    /**
     * @package WordPress
     * @subpackage U-Design
     */
    
    global $udesign_options;
    
    // construct an array of portfolio categories
    $portfolio_categories_array = explode( ',', $udesign_options['portfolio_categories'] );
    
    if ( $portfolio_categories_array != "" && post_is_in_category_or_descendants( $portfolio_categories_array ) ) :
        // Test if this Post is assigned to the Portfolio category or any descendant and switch the single's template accordingly
        include 'single-Portfolio.php';
    else : // Continue with normal Loop (Blog category)
    
        get_header();
    
        $content_position = ( $udesign_options['blog_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16';
        if ( $udesign_options['remove_single_sidebar'] == 'yes' ) $content_position = 'grid_24';
    ?>
        <div id="content-container" class="container_24">
    	<div id="main-content" class="<?php echo $content_position; ?>">
    	    <div class="main-content-padding">
    <?php           do_action('udesign_above_page_content'); ?>
    <?php		if (have_posts()) :
    		    while (have_posts()) : the_post(); ?>
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			    <div class="entry">
    <?php                           // Post Image
                                    if( $udesign_options['display_post_image_in_single_post'] == 'yes' ) display_post_image_fn( $post->ID, false );
    				the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>', 'udesign'));
    				wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                                    <?php echo do_shortcode('[divider]'); ?>
                                    <div class="postmetadata">
                                        <span>
    <?php                                   if( $udesign_options['show_postmetadata_author'] == 'yes' ) :
                                                printf( __('By %1$s on %2$s ', 'udesign'), '</span>'.udesign_get_the_author_page_link().'<span>', get_the_date() );
                                            else :
                                                printf( __('On %1$s ', 'udesign'), get_the_date() );
                                            endif; ?>
                                        </span> &nbsp; / &nbsp; <span><?php the_category(', '); ?></span> &nbsp; / &nbsp; <?php comments_popup_link( __( 'Leave a comment', 'udesign' ), __( '1 Comment', 'udesign' ), __( '% Comments', 'udesign' ) ); ?> <?php edit_post_link(__('Edit', 'udesign'), '<div style="float:right;margin:0 10px;">', '</div>'); ?>
    <?php                               echo ( $udesign_options['show_postmetadata_tags'] == 'yes' ) ? the_tags('<div class="post-tags-wrapper">'.__('Tags: ', 'udesign'), ', ', '</div>') : ''; ?>
                                    </div>
                                    <?php echo do_shortcode('[divider]'); ?>
    			    </div>
    			</div>
    <?php			comments_template();
    		    endwhile; else: ?>
    			<p><?php esc_html_e("Sorry, no posts matched your criteria.", 'udesign'); ?></p>
    <?php		endif; ?>
    	    </div><!-- end main-content-padding -->
    	</div><!-- end main-content -->
    <?php
    	if( ( !$udesign_options['remove_single_sidebar'] == 'yes' ) && sidebar_exist('BlogSidebar') ) { get_sidebar('BlogSidebar'); }
    ?>
        </div><!-- end content-container -->
    <?php
    endif; // end normal Loop ?>
    
    <div class="clear"></div>
    
    <?php
    
    get_footer();
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All posts don't show (Comments are shown)’ is closed to new replies.