WordPress.org

Ready to get started?Download WordPress

Forums

Desk Mess Mirrored
Excerpt for postings not working? (6 posts)

  1. another-webmaster
    Member
    Posted 11 months ago #

    Am I correct that excerpt is not working for postings as soon the settings are:
    Frontpage displays = Your latest posts.

    (Switched theme back to Twenty Twelve and it works?!)
    What should I add/change to make it possible? Using child-theme. (sandbox)

    Thanks in advance for time and effort.

  2. Sridhar Katakam
    Member
    Posted 11 months ago #

    Is this the theme being used? -> http://wordpress.org/extend/themes/sandbox

  3. another-webmaster
    Member
    Posted 11 months ago #

    @Sridhar , a sandbox is in this case a testing environment.

  4. Sridhar Katakam
    Member
    Posted 11 months ago #

    So the problem is when active theme is a child of 2012, correct?

  5. another-webmaster
    Member
    Posted 11 months ago #

    Having here:

    WordPress v3.51 , theme Desk Mess Mirrored v2.2 with child theme Multi v2.1.1. (is child theme of Desk Mess Mirrored)
    It all is in a protected work envirement. (In a sandbox, here in vmware with wamp setup, so it is not a live situation but it simulates it)
    The issue I have, it seems that Desk Mess Mirrored theme allows not the option to use excerpt in postings on the frontpage. Although it shows the excerpt as soon you click an archive.

    I thought that I made some mistake in re-coding but as soon I switch back to the Twenty Twelve theme excerpt works, so it is missing for the frontpage in Desk Mess Mirrored theme.
    This file: desk-mess-mirrored.php is "responsible" for it and already changed some code and it seems to work but not in a way as it has to be :) Now it shows(forces) nicely the excerpt on the frontpage but it even seems to overrule the --more-- option when we don't want to use the excerpt.

    Org code:

    if ( is_home() || is_front_page() || is_single() || is_page() || ( is_author() && ( $count == 1 ) ) ) {
    the_content( __( 'Read more... ', 'desk-mess-mirrored' ) ); ?>
    <div class="clear"><!-- For inserted media at the end of the post --></div>
    <?php wp_link_pages( array( 'before' => '<p id="wp-link-pages"><strong>' . __( 'Pages:', 'desk-mess-mirrored' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) );
    } else {
    the_excerpt(); ?>
    <div class="clear"><!-- For inserted media at the end of the post --></div>
    <?php } /** End if - is home */

    Changed it to following:

    if ( is_home() || is_archive() ||  is_search()  || is_category() )
    the_excerpt(); ?>
    <div class="clear"><!-- For inserted media at the end of the post --></div>
    <?php } else { ?>
    <?php the_content( __( 'Read more... ', 'desk-mess-mirrored' ) ); ?>
    <div class="clear"><!-- For inserted media at the end of the post --></div>
    <?php wp_link_pages( array( 'before' => '<p id="wp-link-pages"><strong>' . __( 'Pages:', 'desk-mess-mirrored' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
    <?php } /** End if - is home */

    I hope the theme author has a solution which is better then my temporarily solution.

  6. Edward Caissie
    Theme Review Admin
    Theme Author

    Posted 11 months ago #

    The theme is written to show the full post (using the_content) when displaying a "full" page view. The settings you are describing are used to change which page you are using to show first (read: site landing page) and in that case the theme will show the entire "page".

    Your changes be they via the Parent-Theme or added a Child-Theme are changing the core display ideas behind the theme. I do not see this as an issue and would likely recommend adding a front-page.php template to the Child-Theme as a more correct solution than editing the core files of Desk Mess Mirrored or Multi as those edits will be over-written with new updates to those themes.

Reply

You must log in to post.

About this Theme

About this Topic