Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cosmozara

    (@cosmozara)

    And here is my content .php file and it seems all is ok:

    <?php
    /**
    * The default template for displaying content. Used for both single and index/archive/search.
    *
    * @package
    * @subpackage Template
    */

    if(is_single()) {

    do_action(‘before_single_content’);

    echo ‘<!– Post Content –>’;
    echo ‘<article class=”single-inner”>’;

    // Post Content
    echo ‘<div class=”inner-content”>’;

    the_content();

    echo ‘</div>’;
    echo ‘<!– //Post Content –>’;

    do_action(‘after_single_content’);

    } else {

    get_template_part(‘layouts/blog-large’);

    }

    //wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘contempo’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) ); ?>

    Plugin Author WPSight

    (@wpsight)

    Hi cosmozara,

    Hard to say what the problem is. You may also want to contact with the theme author. What we do in WPCasa to display the single listing content is hooking into loop_start and loop_end to implement the single listing template of WPCasa there.

    You would need to look one level higher than content.php. The corresponding file is probably single.php (depends on your theme).

    <?php while ( have_posts() ) : the_post(); ?>
    
    	<!-- WPCasa places single lisiting template here -->
    
    <?php endwhile; // end of the loop. ?>

    Hope this helps.

    Best regards,
    Simon [WPCasa]

    Thread Starter cosmozara

    (@cosmozara)

    Thx Simon i did it…..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single layout’ is closed to new replies.