Support » Fixing WordPress » How can I hide post titles from status format posts

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    You put this code at the bottom in your theme’s stylesheet style.css.

    Thread Starter harryts

    (@harryts)

    No, nothing changes
    I tried

    .format-status .post-title {
    display:none;
    }

    and for example

    .format-aside .post-title {
    display:none;
    }

    I guess,I have to add something more 🙂

    Moderator keesiemeijer

    (@keesiemeijer)

    Does your theme use the post_class in the loop.

    Thread Starter harryts

    (@harryts)

    I guess, no. Could you please give me an example. Since I don’t understand where to put
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    from link you provided. Thanks

    Moderator keesiemeijer

    (@keesiemeijer)

    What theme are you using?

    You use it inside the the loop

    a very basic loop looks like this:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    Depending on your theme you can alter it like this:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php the_title(); ?>
    <?php the_content(); ?>
    </div> <!-- closing the post class div -->
    
    <?php endwhile; ?>
    <?php endif; ?>

    Try it on your theme’s index.php.

    For other pages look what theme template file is used to show the posts: http://codex.wordpress.org/Template_Hierarchy#The_Template_Hierarchy_In_Detail

    Thread Starter harryts

    (@harryts)

    twenty eleven (child, of course).

    I added

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

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php the_title(); ?>
    <?php the_content(); ?>
    </div> <!– closing the post class div –>

    <?php endwhile; ?>
    <?php endif; ?>

    at the bottom of my index.php – file. Nothing changes. BTW in functions.php I declared only aside, gallery and image view posts. Standard – by default.

    Moderator keesiemeijer

    (@keesiemeijer)

    In twenty eleven you can remove the title from content-status.php:
    remove this:

    <hgroup>
    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    				<h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3>
    </hgroup>

    Thread Starter harryts

    (@harryts)

    still doesn’t work. How can I get rid of this Home post? I need only pages. I’d like to use Home page instead. But by default site opens on the Home post. If I remove this post I see on my homepage “Nothing found or so”? Is this possible to get the site open on the Home page, not post?

    Thread Starter harryts

    (@harryts)

    For example on my localhost if I press Home button I get to
    http://127.0.0.1:81/wordpress/?page_id=43 This is homepage and everything looks OK

    But the site opens on
    http://127.0.0.1:81/wordpress
    which is post.

    Thread Starter harryts

    (@harryts)

    Shortly, I’d like my site opens on “About me” page. I want no posts. About me page is ready and I want it to appear at http://127.0.0.1:81/wordpress, not only at http://127.0.0.1:81/wordpress/?page_id=43

    Thread Starter harryts

    (@harryts)

    By now, I put attention, if I remove (I did this) Home button and put as the first button let’s say “About me” button. And I have About me post and About me page.
    On http://127.0.0.1:81/wordpress I can see them twice ! If I delete page or post I get troubles: if I delete post, “Nothing found” on my site (http://127.0.0.1:81/wordpress). If I delete page I cannot press on “About me” button 🙂

    Thread Starter harryts

    (@harryts)

    What a mess. If a create post, on the front page I can see it twice. Upper and below. Why so? If I remove post – Nothing found. Could you please advice how can I copy (link) http://127.0.0.1:81/wordpress/?page_id=43 to
    http://127.0.0.1:81/wordpress/ That will be OK. Thanks

    Thread Starter harryts

    (@harryts)

    Strictly speaking, “the first post” appears where it should be, and “the second” – below, on the fields. These are probably some wordpress settings I can easily change. Maybe I should start a new discussion about this? Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How can I hide post titles from status format posts’ is closed to new replies.